From e7b932c4e1da96f0031ee18a64240a9202cc993c Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 25 Aug 2023 14:56:56 +0800 Subject: [PATCH] [mgmt] apimanagement release (#26720) https://github.com/Azure/sdk-release-request/issues/4372 swagger pr:https://github.com/Azure/azure-rest-api-specs/pull/25490 --- common/config/rush/pnpm-lock.yaml | 6 +- .../arm-apimanagement/CHANGELOG.md | 828 +- .../arm-apimanagement/_meta.json | 8 +- .../arm-apimanagement/assets.json | 2 +- .../arm-apimanagement/package.json | 12 +- .../review/arm-apimanagement.api.md | 1267 ++- .../samples-dev/apiCreateOrUpdateSample.ts | 148 +- .../samples-dev/apiDeleteSample.ts | 2 +- .../apiDiagnosticCreateOrUpdateSample.ts | 2 +- .../samples-dev/apiDiagnosticDeleteSample.ts | 2 +- .../apiDiagnosticGetEntityTagSample.ts | 2 +- .../samples-dev/apiDiagnosticGetSample.ts | 2 +- .../apiDiagnosticListByServiceSample.ts | 2 +- .../samples-dev/apiDiagnosticUpdateSample.ts | 2 +- .../samples-dev/apiExportGetSample.ts | 4 +- .../samples-dev/apiGetEntityTagSample.ts | 2 +- .../samples-dev/apiGetSample.ts | 4 +- .../apiIssueAttachmentCreateOrUpdateSample.ts | 2 +- .../apiIssueAttachmentDeleteSample.ts | 2 +- .../apiIssueAttachmentGetEntityTagSample.ts | 2 +- .../apiIssueAttachmentGetSample.ts | 2 +- .../apiIssueAttachmentListByServiceSample.ts | 2 +- .../apiIssueCommentCreateOrUpdateSample.ts | 2 +- .../apiIssueCommentDeleteSample.ts | 2 +- .../apiIssueCommentGetEntityTagSample.ts | 2 +- .../samples-dev/apiIssueCommentGetSample.ts | 2 +- .../apiIssueCommentListByServiceSample.ts | 2 +- .../apiIssueCreateOrUpdateSample.ts | 2 +- .../samples-dev/apiIssueDeleteSample.ts | 2 +- .../samples-dev/apiIssueGetEntityTagSample.ts | 2 +- .../samples-dev/apiIssueGetSample.ts | 2 +- .../apiIssueListByServiceSample.ts | 2 +- .../samples-dev/apiIssueUpdateSample.ts | 2 +- .../samples-dev/apiListByServiceSample.ts | 2 +- .../samples-dev/apiListByTagsSample.ts | 2 +- .../apiManagementOperationsListSample.ts | 7 +- ...eApplyNetworkConfigurationUpdatesSample.ts | 2 +- .../apiManagementServiceBackupSample.ts | 6 +- ...ementServiceCheckNameAvailabilitySample.ts | 2 +- ...piManagementServiceCreateOrUpdateSample.ts | 49 +- .../apiManagementServiceDeleteSample.ts | 2 +- ...rviceGetDomainOwnershipIdentifierSample.ts | 2 +- .../apiManagementServiceGetSample.ts | 6 +- .../apiManagementServiceGetSsoTokenSample.ts | 2 +- ...agementServiceListByResourceGroupSample.ts | 2 +- .../apiManagementServiceListSample.ts | 2 +- ...apiManagementServiceMigrateToStv2Sample.ts | 42 + .../apiManagementServiceRestoreSample.ts | 2 +- ...rviceSkusListAvailableServiceSkusSample.ts | 4 +- .../apiManagementServiceUpdateSample.ts | 6 +- .../apiManagementSkusListSample.ts | 2 +- .../apiOperationCreateOrUpdateSample.ts | 2 +- .../samples-dev/apiOperationDeleteSample.ts | 2 +- .../apiOperationGetEntityTagSample.ts | 2 +- .../samples-dev/apiOperationGetSample.ts | 4 +- .../apiOperationListByApiSample.ts | 2 +- .../apiOperationPolicyCreateOrUpdateSample.ts | 2 +- .../apiOperationPolicyDeleteSample.ts | 2 +- .../apiOperationPolicyGetEntityTagSample.ts | 2 +- .../apiOperationPolicyGetSample.ts | 2 +- ...apiOperationPolicyListByOperationSample.ts | 2 +- .../samples-dev/apiOperationUpdateSample.ts | 2 +- .../apiPolicyCreateOrUpdateSample.ts | 4 +- .../samples-dev/apiPolicyDeleteSample.ts | 2 +- .../apiPolicyGetEntityTagSample.ts | 2 +- .../samples-dev/apiPolicyGetSample.ts | 2 +- .../samples-dev/apiPolicyListByApiSample.ts | 2 +- .../samples-dev/apiProductListByApisSample.ts | 2 +- .../apiReleaseCreateOrUpdateSample.ts | 2 +- .../samples-dev/apiReleaseDeleteSample.ts | 2 +- .../apiReleaseGetEntityTagSample.ts | 2 +- .../samples-dev/apiReleaseGetSample.ts | 2 +- .../apiReleaseListByServiceSample.ts | 2 +- .../samples-dev/apiReleaseUpdateSample.ts | 2 +- .../apiRevisionListByServiceSample.ts | 2 +- .../apiSchemaCreateOrUpdateSample.ts | 2 +- .../samples-dev/apiSchemaDeleteSample.ts | 2 +- .../apiSchemaGetEntityTagSample.ts | 2 +- .../samples-dev/apiSchemaGetSample.ts | 2 +- .../samples-dev/apiSchemaListByApiSample.ts | 2 +- .../apiTagDescriptionCreateOrUpdateSample.ts | 2 +- .../apiTagDescriptionDeleteSample.ts | 2 +- .../apiTagDescriptionGetEntityTagSample.ts | 2 +- .../samples-dev/apiTagDescriptionGetSample.ts | 2 +- .../apiTagDescriptionListByServiceSample.ts | 2 +- .../samples-dev/apiUpdateSample.ts | 2 +- .../apiVersionSetCreateOrUpdateSample.ts | 2 +- .../samples-dev/apiVersionSetDeleteSample.ts | 2 +- .../apiVersionSetGetEntityTagSample.ts | 2 +- .../samples-dev/apiVersionSetGetSample.ts | 2 +- .../apiVersionSetListByServiceSample.ts | 2 +- .../samples-dev/apiVersionSetUpdateSample.ts | 2 +- .../apiWikiCreateOrUpdateSample.ts | 48 + .../samples-dev/apiWikiDeleteSample.ts | 46 + .../samples-dev/apiWikiGetEntityTagSample.ts | 44 + .../samples-dev/apiWikiGetSample.ts | 44 + .../samples-dev/apiWikiUpdateSample.ts | 53 + .../samples-dev/apiWikisListSample.ts | 47 + ...izationAccessPolicyCreateOrUpdateSample.ts | 56 + .../authorizationAccessPolicyDeleteSample.ts | 50 + .../authorizationAccessPolicyGetSample.ts | 48 + ...onAccessPolicyListByAuthorizationSample.ts | 49 + .../authorizationConfirmConsentCodeSample.ts | 53 + .../authorizationCreateOrUpdateSample.ts | 89 + .../samples-dev/authorizationDeleteSample.ts | 48 + .../samples-dev/authorizationGetSample.ts | 46 + ...zationListByAuthorizationProviderSample.ts | 74 + .../authorizationLoginLinksPostSample.ts | 53 + ...thorizationProviderCreateOrUpdateSample.ts | 187 + .../authorizationProviderDeleteSample.ts | 46 + .../authorizationProviderGetSample.ts | 44 + ...uthorizationProviderListByServiceSample.ts | 45 + ...authorizationServerCreateOrUpdateSample.ts | 6 +- .../authorizationServerDeleteSample.ts | 2 +- .../authorizationServerGetEntityTagSample.ts | 2 +- .../authorizationServerGetSample.ts | 2 +- .../authorizationServerListByServiceSample.ts | 2 +- .../authorizationServerListSecretsSample.ts | 2 +- .../authorizationServerUpdateSample.ts | 6 +- .../backendCreateOrUpdateSample.ts | 4 +- .../samples-dev/backendDeleteSample.ts | 2 +- .../samples-dev/backendGetEntityTagSample.ts | 2 +- .../samples-dev/backendGetSample.ts | 2 +- .../samples-dev/backendListByServiceSample.ts | 2 +- .../samples-dev/backendReconnectSample.ts | 6 +- .../samples-dev/backendUpdateSample.ts | 2 +- .../samples-dev/cacheCreateOrUpdateSample.ts | 2 +- .../samples-dev/cacheDeleteSample.ts | 2 +- .../samples-dev/cacheGetEntityTagSample.ts | 2 +- .../samples-dev/cacheGetSample.ts | 2 +- .../samples-dev/cacheListByServiceSample.ts | 2 +- .../samples-dev/cacheUpdateSample.ts | 2 +- .../certificateCreateOrUpdateSample.ts | 4 +- .../samples-dev/certificateDeleteSample.ts | 2 +- .../certificateGetEntityTagSample.ts | 2 +- .../samples-dev/certificateGetSample.ts | 4 +- .../certificateListByServiceSample.ts | 2 +- .../certificateRefreshSecretSample.ts | 2 +- .../contentItemCreateOrUpdateSample.ts | 2 +- .../samples-dev/contentItemDeleteSample.ts | 2 +- .../contentItemGetEntityTagSample.ts | 2 +- .../samples-dev/contentItemGetSample.ts | 2 +- .../contentItemListByServiceSample.ts | 2 +- .../contentTypeCreateOrUpdateSample.ts | 2 +- .../samples-dev/contentTypeDeleteSample.ts | 2 +- .../samples-dev/contentTypeGetSample.ts | 2 +- .../contentTypeListByServiceSample.ts | 2 +- .../delegationSettingsCreateOrUpdateSample.ts | 2 +- .../delegationSettingsGetEntityTagSample.ts | 2 +- .../delegationSettingsGetSample.ts | 2 +- .../delegationSettingsListSecretsSample.ts | 2 +- .../delegationSettingsUpdateSample.ts | 2 +- .../deletedServicesGetByNameSample.ts | 2 +- ...deletedServicesListBySubscriptionSample.ts | 2 +- .../samples-dev/deletedServicesPurgeSample.ts | 2 +- .../diagnosticCreateOrUpdateSample.ts | 2 +- .../samples-dev/diagnosticDeleteSample.ts | 2 +- .../diagnosticGetEntityTagSample.ts | 2 +- .../samples-dev/diagnosticGetSample.ts | 2 +- .../diagnosticListByServiceSample.ts | 2 +- .../samples-dev/diagnosticUpdateSample.ts | 2 +- .../documentationCreateOrUpdateSample.ts | 52 + .../samples-dev/documentationDeleteSample.ts | 46 + .../documentationGetEntityTagSample.ts | 44 + .../samples-dev/documentationGetSample.ts | 44 + .../documentationListByServiceSample.ts | 45 + .../samples-dev/documentationUpdateSample.ts | 54 + .../emailTemplateCreateOrUpdateSample.ts | 2 +- .../samples-dev/emailTemplateDeleteSample.ts | 2 +- .../emailTemplateGetEntityTagSample.ts | 2 +- .../samples-dev/emailTemplateGetSample.ts | 2 +- .../emailTemplateListByServiceSample.ts | 2 +- .../samples-dev/emailTemplateUpdateSample.ts | 2 +- .../gatewayApiCreateOrUpdateSample.ts | 2 +- .../samples-dev/gatewayApiDeleteSample.ts | 2 +- .../gatewayApiGetEntityTagSample.ts | 2 +- .../gatewayApiListByServiceSample.ts | 2 +- ...ertificateAuthorityCreateOrUpdateSample.ts | 2 +- ...gatewayCertificateAuthorityDeleteSample.ts | 2 +- ...yCertificateAuthorityGetEntityTagSample.ts | 2 +- .../gatewayCertificateAuthorityGetSample.ts | 2 +- ...CertificateAuthorityListByServiceSample.ts | 2 +- .../gatewayCreateOrUpdateSample.ts | 2 +- .../samples-dev/gatewayDeleteSample.ts | 2 +- .../samples-dev/gatewayGenerateTokenSample.ts | 2 +- .../samples-dev/gatewayGetEntityTagSample.ts | 2 +- .../samples-dev/gatewayGetSample.ts | 2 +- ...stnameConfigurationCreateOrUpdateSample.ts | 2 +- ...atewayHostnameConfigurationDeleteSample.ts | 2 +- ...HostnameConfigurationGetEntityTagSample.ts | 2 +- .../gatewayHostnameConfigurationGetSample.ts | 2 +- ...ostnameConfigurationListByServiceSample.ts | 2 +- .../samples-dev/gatewayListByServiceSample.ts | 2 +- .../samples-dev/gatewayListKeysSample.ts | 2 +- .../samples-dev/gatewayRegenerateKeySample.ts | 2 +- .../samples-dev/gatewayUpdateSample.ts | 2 +- .../globalSchemaCreateOrUpdateSample.ts | 4 +- .../samples-dev/globalSchemaDeleteSample.ts | 2 +- .../globalSchemaGetEntityTagSample.ts | 2 +- .../samples-dev/globalSchemaGetSample.ts | 4 +- .../globalSchemaListByServiceSample.ts | 2 +- .../graphQlApiResolverCreateOrUpdateSample.ts | 55 + .../graphQlApiResolverDeleteSample.ts | 48 + .../graphQlApiResolverGetEntityTagSample.ts | 46 + .../graphQlApiResolverGetSample.ts | 46 + .../graphQlApiResolverListByApiSample.ts | 47 + ...QlApiResolverPolicyCreateOrUpdateSample.ts | 63 + .../graphQlApiResolverPolicyDeleteSample.ts | 50 + ...phQlApiResolverPolicyGetEntityTagSample.ts | 48 + .../graphQlApiResolverPolicyGetSample.ts | 48 + ...QlApiResolverPolicyListByResolverSample.ts | 49 + .../graphQlApiResolverUpdateSample.ts | 57 + .../samples-dev/groupCreateOrUpdateSample.ts | 4 +- .../samples-dev/groupDeleteSample.ts | 2 +- .../samples-dev/groupGetEntityTagSample.ts | 2 +- .../samples-dev/groupGetSample.ts | 2 +- .../samples-dev/groupListByServiceSample.ts | 2 +- .../samples-dev/groupUpdateSample.ts | 2 +- .../groupUserCheckEntityExistsSample.ts | 2 +- .../samples-dev/groupUserCreateSample.ts | 2 +- .../samples-dev/groupUserDeleteSample.ts | 2 +- .../samples-dev/groupUserListSample.ts | 2 +- .../identityProviderCreateOrUpdateSample.ts | 2 +- .../identityProviderDeleteSample.ts | 2 +- .../identityProviderGetEntityTagSample.ts | 2 +- .../samples-dev/identityProviderGetSample.ts | 2 +- .../identityProviderListByServiceSample.ts | 2 +- .../identityProviderListSecretsSample.ts | 2 +- .../identityProviderUpdateSample.ts | 2 +- .../samples-dev/issueGetSample.ts | 2 +- .../samples-dev/issueListByServiceSample.ts | 2 +- .../samples-dev/loggerCreateOrUpdateSample.ts | 4 +- .../samples-dev/loggerDeleteSample.ts | 2 +- .../samples-dev/loggerGetEntityTagSample.ts | 2 +- .../samples-dev/loggerGetSample.ts | 2 +- .../samples-dev/loggerListByServiceSample.ts | 2 +- .../samples-dev/loggerUpdateSample.ts | 2 +- .../namedValueCreateOrUpdateSample.ts | 4 +- .../samples-dev/namedValueDeleteSample.ts | 2 +- .../namedValueGetEntityTagSample.ts | 2 +- .../samples-dev/namedValueGetSample.ts | 4 +- .../namedValueListByServiceSample.ts | 2 +- .../samples-dev/namedValueListValueSample.ts | 2 +- .../namedValueRefreshSecretSample.ts | 2 +- .../samples-dev/namedValueUpdateSample.ts | 2 +- .../networkStatusListByLocationSample.ts | 2 +- .../networkStatusListByServiceSample.ts | 2 +- .../notificationCreateOrUpdateSample.ts | 2 +- .../samples-dev/notificationGetSample.ts | 2 +- .../notificationListByServiceSample.ts | 2 +- ...onRecipientEmailCheckEntityExistsSample.ts | 2 +- ...ationRecipientEmailCreateOrUpdateSample.ts | 2 +- .../notificationRecipientEmailDeleteSample.ts | 2 +- ...nRecipientEmailListByNotificationSample.ts | 2 +- ...ionRecipientUserCheckEntityExistsSample.ts | 2 +- ...cationRecipientUserCreateOrUpdateSample.ts | 2 +- .../notificationRecipientUserDeleteSample.ts | 2 +- ...onRecipientUserListByNotificationSample.ts | 2 +- ...enIdConnectProviderCreateOrUpdateSample.ts | 6 +- .../openIdConnectProviderDeleteSample.ts | 2 +- ...openIdConnectProviderGetEntityTagSample.ts | 2 +- .../openIdConnectProviderGetSample.ts | 2 +- ...penIdConnectProviderListByServiceSample.ts | 2 +- .../openIdConnectProviderListSecretsSample.ts | 2 +- .../openIdConnectProviderUpdateSample.ts | 6 +- .../samples-dev/operationListByTagsSample.ts | 2 +- ...ependenciesEndpointsListByServiceSample.ts | 2 +- .../performConnectivityCheckAsyncSample.ts | 4 +- .../samples-dev/policyCreateOrUpdateSample.ts | 2 +- .../samples-dev/policyDeleteSample.ts | 2 +- .../policyDescriptionListByServiceSample.ts | 2 +- .../policyFragmentCreateOrUpdateSample.ts | 54 + .../samples-dev/policyFragmentDeleteSample.ts | 46 + .../policyFragmentGetEntityTagSample.ts | 44 + .../samples-dev/policyFragmentGetSample.ts | 74 + .../policyFragmentListByServiceSample.ts | 42 + .../policyFragmentListReferencesSample.ts | 44 + .../samples-dev/policyGetEntityTagSample.ts | 2 +- .../samples-dev/policyGetSample.ts | 4 +- .../samples-dev/policyListByServiceSample.ts | 2 +- .../portalConfigCreateOrUpdateSample.ts | 72 + .../portalConfigGetEntityTagSample.ts | 44 + .../samples-dev/portalConfigGetSample.ts | 44 + .../portalConfigListByServiceSample.ts | 42 + .../samples-dev/portalConfigUpdateSample.ts | 72 + .../portalRevisionCreateOrUpdateSample.ts | 2 +- .../portalRevisionGetEntityTagSample.ts | 2 +- .../samples-dev/portalRevisionGetSample.ts | 2 +- .../portalRevisionListByServiceSample.ts | 2 +- .../samples-dev/portalRevisionUpdateSample.ts | 2 +- .../portalSettingsListByServiceSample.ts | 2 +- ...eEndpointConnectionCreateOrUpdateSample.ts | 2 +- .../privateEndpointConnectionDeleteSample.ts | 2 +- ...rivateEndpointConnectionGetByNameSample.ts | 2 +- ...tConnectionGetPrivateLinkResourceSample.ts | 2 +- ...teEndpointConnectionListByServiceSample.ts | 2 +- ...onnectionListPrivateLinkResourcesSample.ts | 2 +- .../productApiCheckEntityExistsSample.ts | 2 +- .../productApiCreateOrUpdateSample.ts | 2 +- .../samples-dev/productApiDeleteSample.ts | 2 +- .../productApiListByProductSample.ts | 2 +- .../productCreateOrUpdateSample.ts | 2 +- .../samples-dev/productDeleteSample.ts | 2 +- .../samples-dev/productGetEntityTagSample.ts | 2 +- .../samples-dev/productGetSample.ts | 2 +- .../productGroupCheckEntityExistsSample.ts | 2 +- .../productGroupCreateOrUpdateSample.ts | 2 +- .../samples-dev/productGroupDeleteSample.ts | 2 +- .../productGroupListByProductSample.ts | 2 +- .../samples-dev/productListByServiceSample.ts | 2 +- .../samples-dev/productListByTagsSample.ts | 2 +- .../productPolicyCreateOrUpdateSample.ts | 2 +- .../samples-dev/productPolicyDeleteSample.ts | 2 +- .../productPolicyGetEntityTagSample.ts | 2 +- .../samples-dev/productPolicyGetSample.ts | 2 +- .../productPolicyListByProductSample.ts | 2 +- .../productSubscriptionsListSample.ts | 2 +- .../samples-dev/productUpdateSample.ts | 2 +- .../productWikiCreateOrUpdateSample.ts | 48 + .../samples-dev/productWikiDeleteSample.ts | 46 + .../productWikiGetEntityTagSample.ts | 44 + .../samples-dev/productWikiGetSample.ts | 44 + .../samples-dev/productWikiUpdateSample.ts | 53 + .../samples-dev/productWikisListSample.ts | 47 + .../quotaByCounterKeysListByServiceSample.ts | 2 +- .../quotaByCounterKeysUpdateSample.ts | 2 +- .../samples-dev/quotaByPeriodKeysGetSample.ts | 2 +- .../quotaByPeriodKeysUpdateSample.ts | 2 +- .../samples-dev/regionListByServiceSample.ts | 2 +- .../samples-dev/reportsListByApiSample.ts | 2 +- .../samples-dev/reportsListByGeoSample.ts | 2 +- .../reportsListByOperationSample.ts | 2 +- .../samples-dev/reportsListByProductSample.ts | 2 +- .../samples-dev/reportsListByRequestSample.ts | 2 +- .../reportsListBySubscriptionSample.ts | 2 +- .../samples-dev/reportsListByTimeSample.ts | 2 +- .../samples-dev/reportsListByUserSample.ts | 2 +- .../signInSettingsCreateOrUpdateSample.ts | 2 +- .../signInSettingsGetEntityTagSample.ts | 2 +- .../samples-dev/signInSettingsGetSample.ts | 2 +- .../samples-dev/signInSettingsUpdateSample.ts | 2 +- .../signUpSettingsCreateOrUpdateSample.ts | 2 +- .../signUpSettingsGetEntityTagSample.ts | 2 +- .../samples-dev/signUpSettingsGetSample.ts | 2 +- .../samples-dev/signUpSettingsUpdateSample.ts | 2 +- .../subscriptionCreateOrUpdateSample.ts | 2 +- .../samples-dev/subscriptionDeleteSample.ts | 2 +- .../subscriptionGetEntityTagSample.ts | 2 +- .../samples-dev/subscriptionGetSample.ts | 2 +- .../samples-dev/subscriptionListSample.ts | 2 +- .../subscriptionListSecretsSample.ts | 2 +- .../subscriptionRegeneratePrimaryKeySample.ts | 2 +- ...ubscriptionRegenerateSecondaryKeySample.ts | 2 +- .../samples-dev/subscriptionUpdateSample.ts | 2 +- .../samples-dev/tagAssignToApiSample.ts | 2 +- .../samples-dev/tagAssignToOperationSample.ts | 2 +- .../samples-dev/tagAssignToProductSample.ts | 2 +- .../samples-dev/tagCreateOrUpdateSample.ts | 2 +- .../samples-dev/tagDeleteSample.ts | 2 +- .../samples-dev/tagDetachFromApiSample.ts | 2 +- .../tagDetachFromOperationSample.ts | 2 +- .../samples-dev/tagDetachFromProductSample.ts | 2 +- .../samples-dev/tagGetByApiSample.ts | 2 +- .../samples-dev/tagGetByOperationSample.ts | 2 +- .../samples-dev/tagGetByProductSample.ts | 2 +- .../tagGetEntityStateByApiSample.ts | 2 +- .../tagGetEntityStateByOperationSample.ts | 2 +- .../tagGetEntityStateByProductSample.ts | 2 +- .../samples-dev/tagGetEntityStateSample.ts | 2 +- .../samples-dev/tagGetSample.ts | 2 +- .../samples-dev/tagListByApiSample.ts | 2 +- .../samples-dev/tagListByOperationSample.ts | 2 +- .../samples-dev/tagListByProductSample.ts | 2 +- .../samples-dev/tagListByServiceSample.ts | 2 +- .../tagResourceListByServiceSample.ts | 2 +- .../samples-dev/tagUpdateSample.ts | 2 +- .../samples-dev/tenantAccessCreateSample.ts | 2 +- .../tenantAccessGetEntityTagSample.ts | 2 +- .../samples-dev/tenantAccessGetSample.ts | 4 +- ...nantAccessGitRegeneratePrimaryKeySample.ts | 2 +- ...ntAccessGitRegenerateSecondaryKeySample.ts | 2 +- .../tenantAccessListByServiceSample.ts | 2 +- .../tenantAccessListSecretsSample.ts | 2 +- .../tenantAccessRegeneratePrimaryKeySample.ts | 2 +- ...enantAccessRegenerateSecondaryKeySample.ts | 2 +- .../samples-dev/tenantAccessUpdateSample.ts | 2 +- .../tenantConfigurationDeploySample.ts | 2 +- .../tenantConfigurationGetSyncStateSample.ts | 2 +- .../tenantConfigurationSaveSample.ts | 2 +- .../tenantConfigurationValidateSample.ts | 2 +- .../samples-dev/tenantSettingsGetSample.ts | 2 +- .../tenantSettingsListByServiceSample.ts | 2 +- .../userConfirmationPasswordSendSample.ts | 2 +- .../samples-dev/userCreateOrUpdateSample.ts | 2 +- .../samples-dev/userDeleteSample.ts | 2 +- .../samples-dev/userGenerateSsoUrlSample.ts | 2 +- .../samples-dev/userGetEntityTagSample.ts | 2 +- .../samples-dev/userGetSample.ts | 2 +- .../userGetSharedAccessTokenSample.ts | 2 +- .../samples-dev/userGroupListSample.ts | 2 +- .../samples-dev/userIdentitiesListSample.ts | 2 +- .../samples-dev/userListByServiceSample.ts | 2 +- .../samples-dev/userSubscriptionGetSample.ts | 2 +- .../samples-dev/userSubscriptionListSample.ts | 2 +- .../samples-dev/userUpdateSample.ts | 2 +- .../samples/v9/javascript/README.md | 800 +- .../v9/javascript/apiCreateOrUpdateSample.js | 142 +- .../samples/v9/javascript/apiDeleteSample.js | 2 +- .../apiDiagnosticCreateOrUpdateSample.js | 2 +- .../javascript/apiDiagnosticDeleteSample.js | 2 +- .../apiDiagnosticGetEntityTagSample.js | 2 +- .../v9/javascript/apiDiagnosticGetSample.js | 2 +- .../apiDiagnosticListByServiceSample.js | 2 +- .../javascript/apiDiagnosticUpdateSample.js | 2 +- .../v9/javascript/apiExportGetSample.js | 4 +- .../v9/javascript/apiGetEntityTagSample.js | 2 +- .../samples/v9/javascript/apiGetSample.js | 4 +- .../apiIssueAttachmentCreateOrUpdateSample.js | 2 +- .../apiIssueAttachmentDeleteSample.js | 2 +- .../apiIssueAttachmentGetEntityTagSample.js | 2 +- .../javascript/apiIssueAttachmentGetSample.js | 2 +- .../apiIssueAttachmentListByServiceSample.js | 2 +- .../apiIssueCommentCreateOrUpdateSample.js | 2 +- .../javascript/apiIssueCommentDeleteSample.js | 2 +- .../apiIssueCommentGetEntityTagSample.js | 2 +- .../v9/javascript/apiIssueCommentGetSample.js | 2 +- .../apiIssueCommentListByServiceSample.js | 2 +- .../apiIssueCreateOrUpdateSample.js | 2 +- .../v9/javascript/apiIssueDeleteSample.js | 2 +- .../javascript/apiIssueGetEntityTagSample.js | 2 +- .../v9/javascript/apiIssueGetSample.js | 2 +- .../javascript/apiIssueListByServiceSample.js | 2 +- .../v9/javascript/apiIssueUpdateSample.js | 2 +- .../v9/javascript/apiListByServiceSample.js | 2 +- .../v9/javascript/apiListByTagsSample.js | 2 +- .../apiManagementOperationsListSample.js | 6 +- ...eApplyNetworkConfigurationUpdatesSample.js | 2 +- .../apiManagementServiceBackupSample.js | 6 +- ...ementServiceCheckNameAvailabilitySample.js | 2 +- ...piManagementServiceCreateOrUpdateSample.js | 47 +- .../apiManagementServiceDeleteSample.js | 2 +- ...rviceGetDomainOwnershipIdentifierSample.js | 2 +- .../apiManagementServiceGetSample.js | 6 +- .../apiManagementServiceGetSsoTokenSample.js | 2 +- ...agementServiceListByResourceGroupSample.js | 2 +- .../apiManagementServiceListSample.js | 2 +- ...apiManagementServiceMigrateToStv2Sample.js | 38 + .../apiManagementServiceRestoreSample.js | 2 +- ...rviceSkusListAvailableServiceSkusSample.js | 4 +- .../apiManagementServiceUpdateSample.js | 6 +- .../javascript/apiManagementSkusListSample.js | 2 +- .../apiOperationCreateOrUpdateSample.js | 2 +- .../v9/javascript/apiOperationDeleteSample.js | 2 +- .../apiOperationGetEntityTagSample.js | 2 +- .../v9/javascript/apiOperationGetSample.js | 4 +- .../javascript/apiOperationListByApiSample.js | 2 +- .../apiOperationPolicyCreateOrUpdateSample.js | 2 +- .../apiOperationPolicyDeleteSample.js | 2 +- .../apiOperationPolicyGetEntityTagSample.js | 2 +- .../javascript/apiOperationPolicyGetSample.js | 2 +- ...apiOperationPolicyListByOperationSample.js | 2 +- .../v9/javascript/apiOperationUpdateSample.js | 2 +- .../apiPolicyCreateOrUpdateSample.js | 4 +- .../v9/javascript/apiPolicyDeleteSample.js | 2 +- .../javascript/apiPolicyGetEntityTagSample.js | 2 +- .../v9/javascript/apiPolicyGetSample.js | 2 +- .../v9/javascript/apiPolicyListByApiSample.js | 2 +- .../javascript/apiProductListByApisSample.js | 2 +- .../apiReleaseCreateOrUpdateSample.js | 2 +- .../v9/javascript/apiReleaseDeleteSample.js | 2 +- .../apiReleaseGetEntityTagSample.js | 2 +- .../v9/javascript/apiReleaseGetSample.js | 2 +- .../apiReleaseListByServiceSample.js | 2 +- .../v9/javascript/apiReleaseUpdateSample.js | 2 +- .../apiRevisionListByServiceSample.js | 2 +- .../apiSchemaCreateOrUpdateSample.js | 2 +- .../v9/javascript/apiSchemaDeleteSample.js | 2 +- .../javascript/apiSchemaGetEntityTagSample.js | 2 +- .../v9/javascript/apiSchemaGetSample.js | 2 +- .../v9/javascript/apiSchemaListByApiSample.js | 2 +- .../apiTagDescriptionCreateOrUpdateSample.js | 2 +- .../apiTagDescriptionDeleteSample.js | 2 +- .../apiTagDescriptionGetEntityTagSample.js | 2 +- .../javascript/apiTagDescriptionGetSample.js | 2 +- .../apiTagDescriptionListByServiceSample.js | 2 +- .../samples/v9/javascript/apiUpdateSample.js | 2 +- .../apiVersionSetCreateOrUpdateSample.js | 2 +- .../javascript/apiVersionSetDeleteSample.js | 2 +- .../apiVersionSetGetEntityTagSample.js | 2 +- .../v9/javascript/apiVersionSetGetSample.js | 2 +- .../apiVersionSetListByServiceSample.js | 2 +- .../javascript/apiVersionSetUpdateSample.js | 2 +- .../javascript/apiWikiCreateOrUpdateSample.js | 44 + .../v9/javascript/apiWikiDeleteSample.js | 37 + .../javascript/apiWikiGetEntityTagSample.js | 36 + .../samples/v9/javascript/apiWikiGetSample.js | 36 + .../v9/javascript/apiWikiUpdateSample.js | 46 + .../v9/javascript/apiWikisListSample.js | 39 + ...izationAccessPolicyCreateOrUpdateSample.js | 49 + .../authorizationAccessPolicyDeleteSample.js | 46 + .../authorizationAccessPolicyGetSample.js | 44 + ...onAccessPolicyListByAuthorizationSample.js | 45 + .../authorizationConfirmConsentCodeSample.js | 46 + .../authorizationCreateOrUpdateSample.js | 80 + .../javascript/authorizationDeleteSample.js | 44 + .../v9/javascript/authorizationGetSample.js | 42 + ...zationListByAuthorizationProviderSample.js | 68 + .../authorizationLoginLinksPostSample.js | 46 + ...thorizationProviderCreateOrUpdateSample.js | 174 + .../authorizationProviderDeleteSample.js | 42 + .../authorizationProviderGetSample.js | 40 + ...uthorizationProviderListByServiceSample.js | 41 + ...authorizationServerCreateOrUpdateSample.js | 4 +- .../authorizationServerDeleteSample.js | 2 +- .../authorizationServerGetEntityTagSample.js | 2 +- .../authorizationServerGetSample.js | 2 +- .../authorizationServerListByServiceSample.js | 2 +- .../authorizationServerListSecretsSample.js | 2 +- .../authorizationServerUpdateSample.js | 4 +- .../javascript/backendCreateOrUpdateSample.js | 4 +- .../v9/javascript/backendDeleteSample.js | 2 +- .../javascript/backendGetEntityTagSample.js | 2 +- .../samples/v9/javascript/backendGetSample.js | 2 +- .../javascript/backendListByServiceSample.js | 2 +- .../v9/javascript/backendReconnectSample.js | 6 +- .../v9/javascript/backendUpdateSample.js | 2 +- .../javascript/cacheCreateOrUpdateSample.js | 2 +- .../v9/javascript/cacheDeleteSample.js | 2 +- .../v9/javascript/cacheGetEntityTagSample.js | 2 +- .../samples/v9/javascript/cacheGetSample.js | 2 +- .../v9/javascript/cacheListByServiceSample.js | 2 +- .../v9/javascript/cacheUpdateSample.js | 2 +- .../certificateCreateOrUpdateSample.js | 4 +- .../v9/javascript/certificateDeleteSample.js | 2 +- .../certificateGetEntityTagSample.js | 2 +- .../v9/javascript/certificateGetSample.js | 4 +- .../certificateListByServiceSample.js | 2 +- .../certificateRefreshSecretSample.js | 2 +- .../contentItemCreateOrUpdateSample.js | 2 +- .../v9/javascript/contentItemDeleteSample.js | 2 +- .../contentItemGetEntityTagSample.js | 2 +- .../v9/javascript/contentItemGetSample.js | 2 +- .../contentItemListByServiceSample.js | 2 +- .../contentTypeCreateOrUpdateSample.js | 2 +- .../v9/javascript/contentTypeDeleteSample.js | 2 +- .../v9/javascript/contentTypeGetSample.js | 2 +- .../contentTypeListByServiceSample.js | 2 +- .../delegationSettingsCreateOrUpdateSample.js | 2 +- .../delegationSettingsGetEntityTagSample.js | 2 +- .../javascript/delegationSettingsGetSample.js | 2 +- .../delegationSettingsListSecretsSample.js | 2 +- .../delegationSettingsUpdateSample.js | 2 +- .../deletedServicesGetByNameSample.js | 2 +- ...deletedServicesListBySubscriptionSample.js | 2 +- .../javascript/deletedServicesPurgeSample.js | 2 +- .../diagnosticCreateOrUpdateSample.js | 2 +- .../v9/javascript/diagnosticDeleteSample.js | 2 +- .../diagnosticGetEntityTagSample.js | 2 +- .../v9/javascript/diagnosticGetSample.js | 2 +- .../diagnosticListByServiceSample.js | 2 +- .../v9/javascript/diagnosticUpdateSample.js | 2 +- .../documentationCreateOrUpdateSample.js | 45 + .../javascript/documentationDeleteSample.js | 42 + .../documentationGetEntityTagSample.js | 40 + .../v9/javascript/documentationGetSample.js | 36 + .../documentationListByServiceSample.js | 38 + .../javascript/documentationUpdateSample.js | 47 + .../emailTemplateCreateOrUpdateSample.js | 2 +- .../javascript/emailTemplateDeleteSample.js | 2 +- .../emailTemplateGetEntityTagSample.js | 2 +- .../v9/javascript/emailTemplateGetSample.js | 2 +- .../emailTemplateListByServiceSample.js | 2 +- .../javascript/emailTemplateUpdateSample.js | 2 +- .../gatewayApiCreateOrUpdateSample.js | 2 +- .../v9/javascript/gatewayApiDeleteSample.js | 2 +- .../gatewayApiGetEntityTagSample.js | 2 +- .../gatewayApiListByServiceSample.js | 2 +- ...ertificateAuthorityCreateOrUpdateSample.js | 2 +- ...gatewayCertificateAuthorityDeleteSample.js | 2 +- ...yCertificateAuthorityGetEntityTagSample.js | 2 +- .../gatewayCertificateAuthorityGetSample.js | 2 +- ...CertificateAuthorityListByServiceSample.js | 2 +- .../javascript/gatewayCreateOrUpdateSample.js | 2 +- .../v9/javascript/gatewayDeleteSample.js | 2 +- .../javascript/gatewayGenerateTokenSample.js | 2 +- .../javascript/gatewayGetEntityTagSample.js | 2 +- .../samples/v9/javascript/gatewayGetSample.js | 2 +- ...stnameConfigurationCreateOrUpdateSample.js | 2 +- ...atewayHostnameConfigurationDeleteSample.js | 2 +- ...HostnameConfigurationGetEntityTagSample.js | 2 +- .../gatewayHostnameConfigurationGetSample.js | 2 +- ...ostnameConfigurationListByServiceSample.js | 2 +- .../javascript/gatewayListByServiceSample.js | 2 +- .../v9/javascript/gatewayListKeysSample.js | 2 +- .../javascript/gatewayRegenerateKeySample.js | 2 +- .../v9/javascript/gatewayUpdateSample.js | 2 +- .../globalSchemaCreateOrUpdateSample.js | 4 +- .../v9/javascript/globalSchemaDeleteSample.js | 2 +- .../globalSchemaGetEntityTagSample.js | 2 +- .../v9/javascript/globalSchemaGetSample.js | 4 +- .../globalSchemaListByServiceSample.js | 2 +- .../graphQlApiResolverCreateOrUpdateSample.js | 48 + .../graphQlApiResolverDeleteSample.js | 44 + .../graphQlApiResolverGetEntityTagSample.js | 42 + .../javascript/graphQlApiResolverGetSample.js | 42 + .../graphQlApiResolverListByApiSample.js | 43 + ...QlApiResolverPolicyCreateOrUpdateSample.js | 55 + .../graphQlApiResolverPolicyDeleteSample.js | 46 + ...phQlApiResolverPolicyGetEntityTagSample.js | 44 + .../graphQlApiResolverPolicyGetSample.js | 44 + ...QlApiResolverPolicyListByResolverSample.js | 45 + .../graphQlApiResolverUpdateSample.js | 50 + .../javascript/groupCreateOrUpdateSample.js | 4 +- .../v9/javascript/groupDeleteSample.js | 2 +- .../v9/javascript/groupGetEntityTagSample.js | 2 +- .../samples/v9/javascript/groupGetSample.js | 2 +- .../v9/javascript/groupListByServiceSample.js | 2 +- .../v9/javascript/groupUpdateSample.js | 2 +- .../groupUserCheckEntityExistsSample.js | 2 +- .../v9/javascript/groupUserCreateSample.js | 2 +- .../v9/javascript/groupUserDeleteSample.js | 2 +- .../v9/javascript/groupUserListSample.js | 2 +- .../identityProviderCreateOrUpdateSample.js | 2 +- .../identityProviderDeleteSample.js | 2 +- .../identityProviderGetEntityTagSample.js | 2 +- .../javascript/identityProviderGetSample.js | 2 +- .../identityProviderListByServiceSample.js | 2 +- .../identityProviderListSecretsSample.js | 2 +- .../identityProviderUpdateSample.js | 2 +- .../samples/v9/javascript/issueGetSample.js | 2 +- .../v9/javascript/issueListByServiceSample.js | 2 +- .../javascript/loggerCreateOrUpdateSample.js | 4 +- .../v9/javascript/loggerDeleteSample.js | 2 +- .../v9/javascript/loggerGetEntityTagSample.js | 2 +- .../samples/v9/javascript/loggerGetSample.js | 2 +- .../javascript/loggerListByServiceSample.js | 2 +- .../v9/javascript/loggerUpdateSample.js | 2 +- .../namedValueCreateOrUpdateSample.js | 4 +- .../v9/javascript/namedValueDeleteSample.js | 2 +- .../namedValueGetEntityTagSample.js | 2 +- .../v9/javascript/namedValueGetSample.js | 4 +- .../namedValueListByServiceSample.js | 2 +- .../javascript/namedValueListValueSample.js | 2 +- .../namedValueRefreshSecretSample.js | 2 +- .../v9/javascript/namedValueUpdateSample.js | 2 +- .../networkStatusListByLocationSample.js | 2 +- .../networkStatusListByServiceSample.js | 2 +- .../notificationCreateOrUpdateSample.js | 2 +- .../v9/javascript/notificationGetSample.js | 2 +- .../notificationListByServiceSample.js | 2 +- ...onRecipientEmailCheckEntityExistsSample.js | 2 +- ...ationRecipientEmailCreateOrUpdateSample.js | 2 +- .../notificationRecipientEmailDeleteSample.js | 2 +- ...nRecipientEmailListByNotificationSample.js | 2 +- ...ionRecipientUserCheckEntityExistsSample.js | 2 +- ...cationRecipientUserCreateOrUpdateSample.js | 2 +- .../notificationRecipientUserDeleteSample.js | 2 +- ...onRecipientUserListByNotificationSample.js | 2 +- ...enIdConnectProviderCreateOrUpdateSample.js | 4 +- .../openIdConnectProviderDeleteSample.js | 2 +- ...openIdConnectProviderGetEntityTagSample.js | 2 +- .../openIdConnectProviderGetSample.js | 2 +- ...penIdConnectProviderListByServiceSample.js | 2 +- .../openIdConnectProviderListSecretsSample.js | 2 +- .../openIdConnectProviderUpdateSample.js | 4 +- .../javascript/operationListByTagsSample.js | 2 +- ...ependenciesEndpointsListByServiceSample.js | 2 +- .../performConnectivityCheckAsyncSample.js | 4 +- .../javascript/policyCreateOrUpdateSample.js | 2 +- .../v9/javascript/policyDeleteSample.js | 2 +- .../policyDescriptionListByServiceSample.js | 2 +- .../policyFragmentCreateOrUpdateSample.js | 46 + .../javascript/policyFragmentDeleteSample.js | 37 + .../policyFragmentGetEntityTagSample.js | 36 + .../v9/javascript/policyFragmentGetSample.js | 56 + .../policyFragmentListByServiceSample.js | 35 + .../policyFragmentListReferencesSample.js | 36 + .../v9/javascript/policyGetEntityTagSample.js | 2 +- .../samples/v9/javascript/policyGetSample.js | 4 +- .../javascript/policyListByServiceSample.js | 2 +- .../portalConfigCreateOrUpdateSample.js | 65 + .../portalConfigGetEntityTagSample.js | 40 + .../v9/javascript/portalConfigGetSample.js | 36 + .../portalConfigListByServiceSample.js | 35 + .../v9/javascript/portalConfigUpdateSample.js | 65 + .../portalRevisionCreateOrUpdateSample.js | 2 +- .../portalRevisionGetEntityTagSample.js | 2 +- .../v9/javascript/portalRevisionGetSample.js | 2 +- .../portalRevisionListByServiceSample.js | 2 +- .../javascript/portalRevisionUpdateSample.js | 2 +- .../portalSettingsListByServiceSample.js | 2 +- ...eEndpointConnectionCreateOrUpdateSample.js | 2 +- .../privateEndpointConnectionDeleteSample.js | 2 +- ...rivateEndpointConnectionGetByNameSample.js | 2 +- ...tConnectionGetPrivateLinkResourceSample.js | 2 +- ...teEndpointConnectionListByServiceSample.js | 2 +- ...onnectionListPrivateLinkResourcesSample.js | 2 +- .../productApiCheckEntityExistsSample.js | 2 +- .../productApiCreateOrUpdateSample.js | 2 +- .../v9/javascript/productApiDeleteSample.js | 2 +- .../productApiListByProductSample.js | 2 +- .../javascript/productCreateOrUpdateSample.js | 2 +- .../v9/javascript/productDeleteSample.js | 2 +- .../javascript/productGetEntityTagSample.js | 2 +- .../samples/v9/javascript/productGetSample.js | 2 +- .../productGroupCheckEntityExistsSample.js | 2 +- .../productGroupCreateOrUpdateSample.js | 2 +- .../v9/javascript/productGroupDeleteSample.js | 2 +- .../productGroupListByProductSample.js | 2 +- .../javascript/productListByServiceSample.js | 2 +- .../v9/javascript/productListByTagsSample.js | 2 +- .../productPolicyCreateOrUpdateSample.js | 2 +- .../javascript/productPolicyDeleteSample.js | 2 +- .../productPolicyGetEntityTagSample.js | 2 +- .../v9/javascript/productPolicyGetSample.js | 2 +- .../productPolicyListByProductSample.js | 2 +- .../productSubscriptionsListSample.js | 2 +- .../v9/javascript/productUpdateSample.js | 2 +- .../productWikiCreateOrUpdateSample.js | 44 + .../v9/javascript/productWikiDeleteSample.js | 42 + .../productWikiGetEntityTagSample.js | 36 + .../v9/javascript/productWikiGetSample.js | 36 + .../v9/javascript/productWikiUpdateSample.js | 46 + .../v9/javascript/productWikisListSample.js | 39 + .../quotaByCounterKeysListByServiceSample.js | 2 +- .../quotaByCounterKeysUpdateSample.js | 2 +- .../javascript/quotaByPeriodKeysGetSample.js | 2 +- .../quotaByPeriodKeysUpdateSample.js | 2 +- .../javascript/regionListByServiceSample.js | 2 +- .../v9/javascript/reportsListByApiSample.js | 2 +- .../v9/javascript/reportsListByGeoSample.js | 2 +- .../reportsListByOperationSample.js | 2 +- .../javascript/reportsListByProductSample.js | 2 +- .../javascript/reportsListByRequestSample.js | 2 +- .../reportsListBySubscriptionSample.js | 2 +- .../v9/javascript/reportsListByTimeSample.js | 2 +- .../v9/javascript/reportsListByUserSample.js | 2 +- .../signInSettingsCreateOrUpdateSample.js | 2 +- .../signInSettingsGetEntityTagSample.js | 2 +- .../v9/javascript/signInSettingsGetSample.js | 2 +- .../javascript/signInSettingsUpdateSample.js | 2 +- .../signUpSettingsCreateOrUpdateSample.js | 2 +- .../signUpSettingsGetEntityTagSample.js | 2 +- .../v9/javascript/signUpSettingsGetSample.js | 2 +- .../javascript/signUpSettingsUpdateSample.js | 2 +- .../subscriptionCreateOrUpdateSample.js | 2 +- .../v9/javascript/subscriptionDeleteSample.js | 2 +- .../subscriptionGetEntityTagSample.js | 2 +- .../v9/javascript/subscriptionGetSample.js | 2 +- .../v9/javascript/subscriptionListSample.js | 2 +- .../subscriptionListSecretsSample.js | 2 +- .../subscriptionRegeneratePrimaryKeySample.js | 2 +- ...ubscriptionRegenerateSecondaryKeySample.js | 2 +- .../v9/javascript/subscriptionUpdateSample.js | 2 +- .../v9/javascript/tagAssignToApiSample.js | 2 +- .../javascript/tagAssignToOperationSample.js | 2 +- .../v9/javascript/tagAssignToProductSample.js | 2 +- .../v9/javascript/tagCreateOrUpdateSample.js | 2 +- .../samples/v9/javascript/tagDeleteSample.js | 2 +- .../v9/javascript/tagDetachFromApiSample.js | 2 +- .../tagDetachFromOperationSample.js | 2 +- .../javascript/tagDetachFromProductSample.js | 2 +- .../v9/javascript/tagGetByApiSample.js | 2 +- .../v9/javascript/tagGetByOperationSample.js | 2 +- .../v9/javascript/tagGetByProductSample.js | 2 +- .../tagGetEntityStateByApiSample.js | 2 +- .../tagGetEntityStateByOperationSample.js | 2 +- .../tagGetEntityStateByProductSample.js | 2 +- .../v9/javascript/tagGetEntityStateSample.js | 2 +- .../samples/v9/javascript/tagGetSample.js | 2 +- .../v9/javascript/tagListByApiSample.js | 2 +- .../v9/javascript/tagListByOperationSample.js | 2 +- .../v9/javascript/tagListByProductSample.js | 2 +- .../v9/javascript/tagListByServiceSample.js | 2 +- .../tagResourceListByServiceSample.js | 2 +- .../samples/v9/javascript/tagUpdateSample.js | 2 +- .../v9/javascript/tenantAccessCreateSample.js | 2 +- .../tenantAccessGetEntityTagSample.js | 2 +- .../v9/javascript/tenantAccessGetSample.js | 4 +- ...nantAccessGitRegeneratePrimaryKeySample.js | 2 +- ...ntAccessGitRegenerateSecondaryKeySample.js | 2 +- .../tenantAccessListByServiceSample.js | 2 +- .../tenantAccessListSecretsSample.js | 2 +- .../tenantAccessRegeneratePrimaryKeySample.js | 2 +- ...enantAccessRegenerateSecondaryKeySample.js | 2 +- .../v9/javascript/tenantAccessUpdateSample.js | 2 +- .../tenantConfigurationDeploySample.js | 2 +- .../tenantConfigurationGetSyncStateSample.js | 2 +- .../tenantConfigurationSaveSample.js | 2 +- .../tenantConfigurationValidateSample.js | 2 +- .../v9/javascript/tenantSettingsGetSample.js | 2 +- .../tenantSettingsListByServiceSample.js | 2 +- .../userConfirmationPasswordSendSample.js | 2 +- .../v9/javascript/userCreateOrUpdateSample.js | 2 +- .../samples/v9/javascript/userDeleteSample.js | 2 +- .../v9/javascript/userGenerateSsoUrlSample.js | 2 +- .../v9/javascript/userGetEntityTagSample.js | 2 +- .../samples/v9/javascript/userGetSample.js | 2 +- .../userGetSharedAccessTokenSample.js | 2 +- .../v9/javascript/userGroupListSample.js | 2 +- .../v9/javascript/userIdentitiesListSample.js | 2 +- .../v9/javascript/userListByServiceSample.js | 2 +- .../javascript/userSubscriptionGetSample.js | 2 +- .../javascript/userSubscriptionListSample.js | 2 +- .../samples/v9/javascript/userUpdateSample.js | 2 +- .../samples/v9/typescript/README.md | 800 +- .../typescript/src/apiCreateOrUpdateSample.ts | 148 +- .../v9/typescript/src/apiDeleteSample.ts | 2 +- .../src/apiDiagnosticCreateOrUpdateSample.ts | 2 +- .../src/apiDiagnosticDeleteSample.ts | 2 +- .../src/apiDiagnosticGetEntityTagSample.ts | 2 +- .../typescript/src/apiDiagnosticGetSample.ts | 2 +- .../src/apiDiagnosticListByServiceSample.ts | 2 +- .../src/apiDiagnosticUpdateSample.ts | 2 +- .../v9/typescript/src/apiExportGetSample.ts | 4 +- .../typescript/src/apiGetEntityTagSample.ts | 2 +- .../samples/v9/typescript/src/apiGetSample.ts | 4 +- .../apiIssueAttachmentCreateOrUpdateSample.ts | 2 +- .../src/apiIssueAttachmentDeleteSample.ts | 2 +- .../apiIssueAttachmentGetEntityTagSample.ts | 2 +- .../src/apiIssueAttachmentGetSample.ts | 2 +- .../apiIssueAttachmentListByServiceSample.ts | 2 +- .../apiIssueCommentCreateOrUpdateSample.ts | 2 +- .../src/apiIssueCommentDeleteSample.ts | 2 +- .../src/apiIssueCommentGetEntityTagSample.ts | 2 +- .../src/apiIssueCommentGetSample.ts | 2 +- .../src/apiIssueCommentListByServiceSample.ts | 2 +- .../src/apiIssueCreateOrUpdateSample.ts | 2 +- .../v9/typescript/src/apiIssueDeleteSample.ts | 2 +- .../src/apiIssueGetEntityTagSample.ts | 2 +- .../v9/typescript/src/apiIssueGetSample.ts | 2 +- .../src/apiIssueListByServiceSample.ts | 2 +- .../v9/typescript/src/apiIssueUpdateSample.ts | 2 +- .../typescript/src/apiListByServiceSample.ts | 2 +- .../v9/typescript/src/apiListByTagsSample.ts | 2 +- .../src/apiManagementOperationsListSample.ts | 7 +- ...eApplyNetworkConfigurationUpdatesSample.ts | 2 +- .../src/apiManagementServiceBackupSample.ts | 6 +- ...ementServiceCheckNameAvailabilitySample.ts | 2 +- ...piManagementServiceCreateOrUpdateSample.ts | 49 +- .../src/apiManagementServiceDeleteSample.ts | 2 +- ...rviceGetDomainOwnershipIdentifierSample.ts | 2 +- .../src/apiManagementServiceGetSample.ts | 6 +- .../apiManagementServiceGetSsoTokenSample.ts | 2 +- ...agementServiceListByResourceGroupSample.ts | 2 +- .../src/apiManagementServiceListSample.ts | 2 +- ...apiManagementServiceMigrateToStv2Sample.ts | 42 + .../src/apiManagementServiceRestoreSample.ts | 2 +- ...rviceSkusListAvailableServiceSkusSample.ts | 4 +- .../src/apiManagementServiceUpdateSample.ts | 6 +- .../src/apiManagementSkusListSample.ts | 2 +- .../src/apiOperationCreateOrUpdateSample.ts | 2 +- .../src/apiOperationDeleteSample.ts | 2 +- .../src/apiOperationGetEntityTagSample.ts | 2 +- .../typescript/src/apiOperationGetSample.ts | 4 +- .../src/apiOperationListByApiSample.ts | 2 +- .../apiOperationPolicyCreateOrUpdateSample.ts | 2 +- .../src/apiOperationPolicyDeleteSample.ts | 2 +- .../apiOperationPolicyGetEntityTagSample.ts | 2 +- .../src/apiOperationPolicyGetSample.ts | 2 +- ...apiOperationPolicyListByOperationSample.ts | 2 +- .../src/apiOperationUpdateSample.ts | 2 +- .../src/apiPolicyCreateOrUpdateSample.ts | 4 +- .../typescript/src/apiPolicyDeleteSample.ts | 2 +- .../src/apiPolicyGetEntityTagSample.ts | 2 +- .../v9/typescript/src/apiPolicyGetSample.ts | 2 +- .../src/apiPolicyListByApiSample.ts | 2 +- .../src/apiProductListByApisSample.ts | 2 +- .../src/apiReleaseCreateOrUpdateSample.ts | 2 +- .../typescript/src/apiReleaseDeleteSample.ts | 2 +- .../src/apiReleaseGetEntityTagSample.ts | 2 +- .../v9/typescript/src/apiReleaseGetSample.ts | 2 +- .../src/apiReleaseListByServiceSample.ts | 2 +- .../typescript/src/apiReleaseUpdateSample.ts | 2 +- .../src/apiRevisionListByServiceSample.ts | 2 +- .../src/apiSchemaCreateOrUpdateSample.ts | 2 +- .../typescript/src/apiSchemaDeleteSample.ts | 2 +- .../src/apiSchemaGetEntityTagSample.ts | 2 +- .../v9/typescript/src/apiSchemaGetSample.ts | 2 +- .../src/apiSchemaListByApiSample.ts | 2 +- .../apiTagDescriptionCreateOrUpdateSample.ts | 2 +- .../src/apiTagDescriptionDeleteSample.ts | 2 +- .../apiTagDescriptionGetEntityTagSample.ts | 2 +- .../src/apiTagDescriptionGetSample.ts | 2 +- .../apiTagDescriptionListByServiceSample.ts | 2 +- .../v9/typescript/src/apiUpdateSample.ts | 2 +- .../src/apiVersionSetCreateOrUpdateSample.ts | 2 +- .../src/apiVersionSetDeleteSample.ts | 2 +- .../src/apiVersionSetGetEntityTagSample.ts | 2 +- .../typescript/src/apiVersionSetGetSample.ts | 2 +- .../src/apiVersionSetListByServiceSample.ts | 2 +- .../src/apiVersionSetUpdateSample.ts | 2 +- .../src/apiWikiCreateOrUpdateSample.ts | 48 + .../v9/typescript/src/apiWikiDeleteSample.ts | 46 + .../src/apiWikiGetEntityTagSample.ts | 44 + .../v9/typescript/src/apiWikiGetSample.ts | 44 + .../v9/typescript/src/apiWikiUpdateSample.ts | 53 + .../v9/typescript/src/apiWikisListSample.ts | 47 + ...izationAccessPolicyCreateOrUpdateSample.ts | 56 + .../authorizationAccessPolicyDeleteSample.ts | 50 + .../src/authorizationAccessPolicyGetSample.ts | 48 + ...onAccessPolicyListByAuthorizationSample.ts | 49 + .../authorizationConfirmConsentCodeSample.ts | 53 + .../src/authorizationCreateOrUpdateSample.ts | 89 + .../src/authorizationDeleteSample.ts | 48 + .../typescript/src/authorizationGetSample.ts | 46 + ...zationListByAuthorizationProviderSample.ts | 74 + .../src/authorizationLoginLinksPostSample.ts | 53 + ...thorizationProviderCreateOrUpdateSample.ts | 187 + .../src/authorizationProviderDeleteSample.ts | 46 + .../src/authorizationProviderGetSample.ts | 44 + ...uthorizationProviderListByServiceSample.ts | 45 + ...authorizationServerCreateOrUpdateSample.ts | 6 +- .../src/authorizationServerDeleteSample.ts | 2 +- .../authorizationServerGetEntityTagSample.ts | 2 +- .../src/authorizationServerGetSample.ts | 2 +- .../authorizationServerListByServiceSample.ts | 2 +- .../authorizationServerListSecretsSample.ts | 2 +- .../src/authorizationServerUpdateSample.ts | 6 +- .../src/backendCreateOrUpdateSample.ts | 4 +- .../v9/typescript/src/backendDeleteSample.ts | 2 +- .../src/backendGetEntityTagSample.ts | 2 +- .../v9/typescript/src/backendGetSample.ts | 2 +- .../src/backendListByServiceSample.ts | 2 +- .../typescript/src/backendReconnectSample.ts | 6 +- .../v9/typescript/src/backendUpdateSample.ts | 2 +- .../src/cacheCreateOrUpdateSample.ts | 2 +- .../v9/typescript/src/cacheDeleteSample.ts | 2 +- .../typescript/src/cacheGetEntityTagSample.ts | 2 +- .../v9/typescript/src/cacheGetSample.ts | 2 +- .../src/cacheListByServiceSample.ts | 2 +- .../v9/typescript/src/cacheUpdateSample.ts | 2 +- .../src/certificateCreateOrUpdateSample.ts | 4 +- .../typescript/src/certificateDeleteSample.ts | 2 +- .../src/certificateGetEntityTagSample.ts | 2 +- .../v9/typescript/src/certificateGetSample.ts | 4 +- .../src/certificateListByServiceSample.ts | 2 +- .../src/certificateRefreshSecretSample.ts | 2 +- .../src/contentItemCreateOrUpdateSample.ts | 2 +- .../typescript/src/contentItemDeleteSample.ts | 2 +- .../src/contentItemGetEntityTagSample.ts | 2 +- .../v9/typescript/src/contentItemGetSample.ts | 2 +- .../src/contentItemListByServiceSample.ts | 2 +- .../src/contentTypeCreateOrUpdateSample.ts | 2 +- .../typescript/src/contentTypeDeleteSample.ts | 2 +- .../v9/typescript/src/contentTypeGetSample.ts | 2 +- .../src/contentTypeListByServiceSample.ts | 2 +- .../delegationSettingsCreateOrUpdateSample.ts | 2 +- .../delegationSettingsGetEntityTagSample.ts | 2 +- .../src/delegationSettingsGetSample.ts | 2 +- .../delegationSettingsListSecretsSample.ts | 2 +- .../src/delegationSettingsUpdateSample.ts | 2 +- .../src/deletedServicesGetByNameSample.ts | 2 +- ...deletedServicesListBySubscriptionSample.ts | 2 +- .../src/deletedServicesPurgeSample.ts | 2 +- .../src/diagnosticCreateOrUpdateSample.ts | 2 +- .../typescript/src/diagnosticDeleteSample.ts | 2 +- .../src/diagnosticGetEntityTagSample.ts | 2 +- .../v9/typescript/src/diagnosticGetSample.ts | 2 +- .../src/diagnosticListByServiceSample.ts | 2 +- .../typescript/src/diagnosticUpdateSample.ts | 2 +- .../src/documentationCreateOrUpdateSample.ts | 52 + .../src/documentationDeleteSample.ts | 46 + .../src/documentationGetEntityTagSample.ts | 44 + .../typescript/src/documentationGetSample.ts | 44 + .../src/documentationListByServiceSample.ts | 45 + .../src/documentationUpdateSample.ts | 54 + .../src/emailTemplateCreateOrUpdateSample.ts | 2 +- .../src/emailTemplateDeleteSample.ts | 2 +- .../src/emailTemplateGetEntityTagSample.ts | 2 +- .../typescript/src/emailTemplateGetSample.ts | 2 +- .../src/emailTemplateListByServiceSample.ts | 2 +- .../src/emailTemplateUpdateSample.ts | 2 +- .../src/gatewayApiCreateOrUpdateSample.ts | 2 +- .../typescript/src/gatewayApiDeleteSample.ts | 2 +- .../src/gatewayApiGetEntityTagSample.ts | 2 +- .../src/gatewayApiListByServiceSample.ts | 2 +- ...ertificateAuthorityCreateOrUpdateSample.ts | 2 +- ...gatewayCertificateAuthorityDeleteSample.ts | 2 +- ...yCertificateAuthorityGetEntityTagSample.ts | 2 +- .../gatewayCertificateAuthorityGetSample.ts | 2 +- ...CertificateAuthorityListByServiceSample.ts | 2 +- .../src/gatewayCreateOrUpdateSample.ts | 2 +- .../v9/typescript/src/gatewayDeleteSample.ts | 2 +- .../src/gatewayGenerateTokenSample.ts | 2 +- .../src/gatewayGetEntityTagSample.ts | 2 +- .../v9/typescript/src/gatewayGetSample.ts | 2 +- ...stnameConfigurationCreateOrUpdateSample.ts | 2 +- ...atewayHostnameConfigurationDeleteSample.ts | 2 +- ...HostnameConfigurationGetEntityTagSample.ts | 2 +- .../gatewayHostnameConfigurationGetSample.ts | 2 +- ...ostnameConfigurationListByServiceSample.ts | 2 +- .../src/gatewayListByServiceSample.ts | 2 +- .../typescript/src/gatewayListKeysSample.ts | 2 +- .../src/gatewayRegenerateKeySample.ts | 2 +- .../v9/typescript/src/gatewayUpdateSample.ts | 2 +- .../src/globalSchemaCreateOrUpdateSample.ts | 4 +- .../src/globalSchemaDeleteSample.ts | 2 +- .../src/globalSchemaGetEntityTagSample.ts | 2 +- .../typescript/src/globalSchemaGetSample.ts | 4 +- .../src/globalSchemaListByServiceSample.ts | 2 +- .../graphQlApiResolverCreateOrUpdateSample.ts | 55 + .../src/graphQlApiResolverDeleteSample.ts | 48 + .../graphQlApiResolverGetEntityTagSample.ts | 46 + .../src/graphQlApiResolverGetSample.ts | 46 + .../src/graphQlApiResolverListByApiSample.ts | 47 + ...QlApiResolverPolicyCreateOrUpdateSample.ts | 63 + .../graphQlApiResolverPolicyDeleteSample.ts | 50 + ...phQlApiResolverPolicyGetEntityTagSample.ts | 48 + .../src/graphQlApiResolverPolicyGetSample.ts | 48 + ...QlApiResolverPolicyListByResolverSample.ts | 49 + .../src/graphQlApiResolverUpdateSample.ts | 57 + .../src/groupCreateOrUpdateSample.ts | 4 +- .../v9/typescript/src/groupDeleteSample.ts | 2 +- .../typescript/src/groupGetEntityTagSample.ts | 2 +- .../v9/typescript/src/groupGetSample.ts | 2 +- .../src/groupListByServiceSample.ts | 2 +- .../v9/typescript/src/groupUpdateSample.ts | 2 +- .../src/groupUserCheckEntityExistsSample.ts | 2 +- .../typescript/src/groupUserCreateSample.ts | 2 +- .../typescript/src/groupUserDeleteSample.ts | 2 +- .../v9/typescript/src/groupUserListSample.ts | 2 +- .../identityProviderCreateOrUpdateSample.ts | 2 +- .../src/identityProviderDeleteSample.ts | 2 +- .../src/identityProviderGetEntityTagSample.ts | 2 +- .../src/identityProviderGetSample.ts | 2 +- .../identityProviderListByServiceSample.ts | 2 +- .../src/identityProviderListSecretsSample.ts | 2 +- .../src/identityProviderUpdateSample.ts | 2 +- .../v9/typescript/src/issueGetSample.ts | 2 +- .../src/issueListByServiceSample.ts | 2 +- .../src/loggerCreateOrUpdateSample.ts | 4 +- .../v9/typescript/src/loggerDeleteSample.ts | 2 +- .../src/loggerGetEntityTagSample.ts | 2 +- .../v9/typescript/src/loggerGetSample.ts | 2 +- .../src/loggerListByServiceSample.ts | 2 +- .../v9/typescript/src/loggerUpdateSample.ts | 2 +- .../src/namedValueCreateOrUpdateSample.ts | 4 +- .../typescript/src/namedValueDeleteSample.ts | 2 +- .../src/namedValueGetEntityTagSample.ts | 2 +- .../v9/typescript/src/namedValueGetSample.ts | 4 +- .../src/namedValueListByServiceSample.ts | 2 +- .../src/namedValueListValueSample.ts | 2 +- .../src/namedValueRefreshSecretSample.ts | 2 +- .../typescript/src/namedValueUpdateSample.ts | 2 +- .../src/networkStatusListByLocationSample.ts | 2 +- .../src/networkStatusListByServiceSample.ts | 2 +- .../src/notificationCreateOrUpdateSample.ts | 2 +- .../typescript/src/notificationGetSample.ts | 2 +- .../src/notificationListByServiceSample.ts | 2 +- ...onRecipientEmailCheckEntityExistsSample.ts | 2 +- ...ationRecipientEmailCreateOrUpdateSample.ts | 2 +- .../notificationRecipientEmailDeleteSample.ts | 2 +- ...nRecipientEmailListByNotificationSample.ts | 2 +- ...ionRecipientUserCheckEntityExistsSample.ts | 2 +- ...cationRecipientUserCreateOrUpdateSample.ts | 2 +- .../notificationRecipientUserDeleteSample.ts | 2 +- ...onRecipientUserListByNotificationSample.ts | 2 +- ...enIdConnectProviderCreateOrUpdateSample.ts | 6 +- .../src/openIdConnectProviderDeleteSample.ts | 2 +- ...openIdConnectProviderGetEntityTagSample.ts | 2 +- .../src/openIdConnectProviderGetSample.ts | 2 +- ...penIdConnectProviderListByServiceSample.ts | 2 +- .../openIdConnectProviderListSecretsSample.ts | 2 +- .../src/openIdConnectProviderUpdateSample.ts | 6 +- .../src/operationListByTagsSample.ts | 2 +- ...ependenciesEndpointsListByServiceSample.ts | 2 +- .../performConnectivityCheckAsyncSample.ts | 4 +- .../src/policyCreateOrUpdateSample.ts | 2 +- .../v9/typescript/src/policyDeleteSample.ts | 2 +- .../policyDescriptionListByServiceSample.ts | 2 +- .../src/policyFragmentCreateOrUpdateSample.ts | 54 + .../src/policyFragmentDeleteSample.ts | 46 + .../src/policyFragmentGetEntityTagSample.ts | 44 + .../typescript/src/policyFragmentGetSample.ts | 74 + .../src/policyFragmentListByServiceSample.ts | 42 + .../src/policyFragmentListReferencesSample.ts | 44 + .../src/policyGetEntityTagSample.ts | 2 +- .../v9/typescript/src/policyGetSample.ts | 4 +- .../src/policyListByServiceSample.ts | 2 +- .../src/portalConfigCreateOrUpdateSample.ts | 72 + .../src/portalConfigGetEntityTagSample.ts | 44 + .../typescript/src/portalConfigGetSample.ts | 44 + .../src/portalConfigListByServiceSample.ts | 42 + .../src/portalConfigUpdateSample.ts | 72 + .../src/portalRevisionCreateOrUpdateSample.ts | 2 +- .../src/portalRevisionGetEntityTagSample.ts | 2 +- .../typescript/src/portalRevisionGetSample.ts | 2 +- .../src/portalRevisionListByServiceSample.ts | 2 +- .../src/portalRevisionUpdateSample.ts | 2 +- .../src/portalSettingsListByServiceSample.ts | 2 +- ...eEndpointConnectionCreateOrUpdateSample.ts | 2 +- .../privateEndpointConnectionDeleteSample.ts | 2 +- ...rivateEndpointConnectionGetByNameSample.ts | 2 +- ...tConnectionGetPrivateLinkResourceSample.ts | 2 +- ...teEndpointConnectionListByServiceSample.ts | 2 +- ...onnectionListPrivateLinkResourcesSample.ts | 2 +- .../src/productApiCheckEntityExistsSample.ts | 2 +- .../src/productApiCreateOrUpdateSample.ts | 2 +- .../typescript/src/productApiDeleteSample.ts | 2 +- .../src/productApiListByProductSample.ts | 2 +- .../src/productCreateOrUpdateSample.ts | 2 +- .../v9/typescript/src/productDeleteSample.ts | 2 +- .../src/productGetEntityTagSample.ts | 2 +- .../v9/typescript/src/productGetSample.ts | 2 +- .../productGroupCheckEntityExistsSample.ts | 2 +- .../src/productGroupCreateOrUpdateSample.ts | 2 +- .../src/productGroupDeleteSample.ts | 2 +- .../src/productGroupListByProductSample.ts | 2 +- .../src/productListByServiceSample.ts | 2 +- .../typescript/src/productListByTagsSample.ts | 2 +- .../src/productPolicyCreateOrUpdateSample.ts | 2 +- .../src/productPolicyDeleteSample.ts | 2 +- .../src/productPolicyGetEntityTagSample.ts | 2 +- .../typescript/src/productPolicyGetSample.ts | 2 +- .../src/productPolicyListByProductSample.ts | 2 +- .../src/productSubscriptionsListSample.ts | 2 +- .../v9/typescript/src/productUpdateSample.ts | 2 +- .../src/productWikiCreateOrUpdateSample.ts | 48 + .../typescript/src/productWikiDeleteSample.ts | 46 + .../src/productWikiGetEntityTagSample.ts | 44 + .../v9/typescript/src/productWikiGetSample.ts | 44 + .../typescript/src/productWikiUpdateSample.ts | 53 + .../typescript/src/productWikisListSample.ts | 47 + .../quotaByCounterKeysListByServiceSample.ts | 2 +- .../src/quotaByCounterKeysUpdateSample.ts | 2 +- .../src/quotaByPeriodKeysGetSample.ts | 2 +- .../src/quotaByPeriodKeysUpdateSample.ts | 2 +- .../src/regionListByServiceSample.ts | 2 +- .../typescript/src/reportsListByApiSample.ts | 2 +- .../typescript/src/reportsListByGeoSample.ts | 2 +- .../src/reportsListByOperationSample.ts | 2 +- .../src/reportsListByProductSample.ts | 2 +- .../src/reportsListByRequestSample.ts | 2 +- .../src/reportsListBySubscriptionSample.ts | 2 +- .../typescript/src/reportsListByTimeSample.ts | 2 +- .../typescript/src/reportsListByUserSample.ts | 2 +- .../src/signInSettingsCreateOrUpdateSample.ts | 2 +- .../src/signInSettingsGetEntityTagSample.ts | 2 +- .../typescript/src/signInSettingsGetSample.ts | 2 +- .../src/signInSettingsUpdateSample.ts | 2 +- .../src/signUpSettingsCreateOrUpdateSample.ts | 2 +- .../src/signUpSettingsGetEntityTagSample.ts | 2 +- .../typescript/src/signUpSettingsGetSample.ts | 2 +- .../src/signUpSettingsUpdateSample.ts | 2 +- .../src/subscriptionCreateOrUpdateSample.ts | 2 +- .../src/subscriptionDeleteSample.ts | 2 +- .../src/subscriptionGetEntityTagSample.ts | 2 +- .../typescript/src/subscriptionGetSample.ts | 2 +- .../typescript/src/subscriptionListSample.ts | 2 +- .../src/subscriptionListSecretsSample.ts | 2 +- .../subscriptionRegeneratePrimaryKeySample.ts | 2 +- ...ubscriptionRegenerateSecondaryKeySample.ts | 2 +- .../src/subscriptionUpdateSample.ts | 2 +- .../v9/typescript/src/tagAssignToApiSample.ts | 2 +- .../src/tagAssignToOperationSample.ts | 2 +- .../src/tagAssignToProductSample.ts | 2 +- .../typescript/src/tagCreateOrUpdateSample.ts | 2 +- .../v9/typescript/src/tagDeleteSample.ts | 2 +- .../typescript/src/tagDetachFromApiSample.ts | 2 +- .../src/tagDetachFromOperationSample.ts | 2 +- .../src/tagDetachFromProductSample.ts | 2 +- .../v9/typescript/src/tagGetByApiSample.ts | 2 +- .../typescript/src/tagGetByOperationSample.ts | 2 +- .../typescript/src/tagGetByProductSample.ts | 2 +- .../src/tagGetEntityStateByApiSample.ts | 2 +- .../src/tagGetEntityStateByOperationSample.ts | 2 +- .../src/tagGetEntityStateByProductSample.ts | 2 +- .../typescript/src/tagGetEntityStateSample.ts | 2 +- .../samples/v9/typescript/src/tagGetSample.ts | 2 +- .../v9/typescript/src/tagListByApiSample.ts | 2 +- .../src/tagListByOperationSample.ts | 2 +- .../typescript/src/tagListByProductSample.ts | 2 +- .../typescript/src/tagListByServiceSample.ts | 2 +- .../src/tagResourceListByServiceSample.ts | 2 +- .../v9/typescript/src/tagUpdateSample.ts | 2 +- .../src/tenantAccessCreateSample.ts | 2 +- .../src/tenantAccessGetEntityTagSample.ts | 2 +- .../typescript/src/tenantAccessGetSample.ts | 4 +- ...nantAccessGitRegeneratePrimaryKeySample.ts | 2 +- ...ntAccessGitRegenerateSecondaryKeySample.ts | 2 +- .../src/tenantAccessListByServiceSample.ts | 2 +- .../src/tenantAccessListSecretsSample.ts | 2 +- .../tenantAccessRegeneratePrimaryKeySample.ts | 2 +- ...enantAccessRegenerateSecondaryKeySample.ts | 2 +- .../src/tenantAccessUpdateSample.ts | 2 +- .../src/tenantConfigurationDeploySample.ts | 2 +- .../tenantConfigurationGetSyncStateSample.ts | 2 +- .../src/tenantConfigurationSaveSample.ts | 2 +- .../src/tenantConfigurationValidateSample.ts | 2 +- .../typescript/src/tenantSettingsGetSample.ts | 2 +- .../src/tenantSettingsListByServiceSample.ts | 2 +- .../src/userConfirmationPasswordSendSample.ts | 2 +- .../src/userCreateOrUpdateSample.ts | 2 +- .../v9/typescript/src/userDeleteSample.ts | 2 +- .../src/userGenerateSsoUrlSample.ts | 2 +- .../typescript/src/userGetEntityTagSample.ts | 2 +- .../v9/typescript/src/userGetSample.ts | 2 +- .../src/userGetSharedAccessTokenSample.ts | 2 +- .../v9/typescript/src/userGroupListSample.ts | 2 +- .../src/userIdentitiesListSample.ts | 2 +- .../typescript/src/userListByServiceSample.ts | 2 +- .../src/userSubscriptionGetSample.ts | 2 +- .../src/userSubscriptionListSample.ts | 2 +- .../v9/typescript/src/userUpdateSample.ts | 2 +- .../src/apiManagementClient.ts | 120 +- .../arm-apimanagement/src/lroImpl.ts | 54 +- .../arm-apimanagement/src/models/index.ts | 3796 +++++--- .../arm-apimanagement/src/models/mappers.ts | 7833 +++++++++++------ .../src/models/parameters.ts | 355 +- .../arm-apimanagement/src/operations/api.ts | 57 +- .../src/operations/apiDiagnostic.ts | 20 +- .../src/operations/apiExport.ts | 2 +- .../src/operations/apiIssue.ts | 20 +- .../src/operations/apiIssueAttachment.ts | 16 +- .../src/operations/apiIssueComment.ts | 16 +- .../src/operations/apiManagementService.ts | 323 +- .../operations/apiManagementServiceSkus.ts | 6 +- .../src/operations/apiOperation.ts | 16 +- .../src/operations/apiOperationPolicy.ts | 10 +- .../src/operations/apiPolicy.ts | 10 +- .../src/operations/apiProduct.ts | 6 +- .../src/operations/apiRelease.ts | 16 +- .../src/operations/apiRevision.ts | 6 +- .../src/operations/apiSchema.ts | 58 +- .../src/operations/apiTagDescription.ts | 16 +- .../src/operations/apiVersionSet.ts | 20 +- .../src/operations/apiWiki.ts | 280 + .../src/operations/apiWikis.ts | 217 + .../src/operations/authorization.ts | 464 + .../operations/authorizationAccessPolicy.ts | 439 + .../src/operations/authorizationLoginLinks.ts | 91 + .../src/operations/authorizationProvider.ts | 366 + .../src/operations/authorizationServer.ts | 22 +- .../src/operations/backend.ts | 28 +- .../arm-apimanagement/src/operations/cache.ts | 20 +- .../src/operations/certificate.ts | 18 +- .../src/operations/contentItem.ts | 16 +- .../src/operations/contentType.ts | 14 +- .../src/operations/delegationSettings.ts | 14 +- .../src/operations/deletedServices.ts | 28 +- .../src/operations/diagnostic.ts | 20 +- .../src/operations/documentation.ts | 467 + .../src/operations/emailTemplate.ts | 20 +- .../src/operations/gateway.ts | 30 +- .../src/operations/gatewayApi.ts | 14 +- .../operations/gatewayCertificateAuthority.ts | 16 +- .../gatewayHostnameConfiguration.ts | 16 +- .../src/operations/globalSchema.ts | 51 +- .../src/operations/graphQLApiResolver.ts | 513 ++ .../operations/graphQLApiResolverPolicy.ts | 478 + .../arm-apimanagement/src/operations/group.ts | 20 +- .../src/operations/groupUser.ts | 12 +- .../src/operations/identityProvider.ts | 22 +- .../arm-apimanagement/src/operations/index.ts | 13 + .../arm-apimanagement/src/operations/issue.ts | 8 +- .../src/operations/logger.ts | 20 +- .../src/operations/namedValue.ts | 119 +- .../src/operations/networkStatus.ts | 4 +- .../src/operations/notification.ts | 10 +- .../operations/notificationRecipientEmail.ts | 8 +- .../operations/notificationRecipientUser.ts | 8 +- .../src/operations/openIdConnectProvider.ts | 22 +- .../src/operations/operationOperations.ts | 6 +- .../outboundNetworkDependenciesEndpoints.ts | 2 +- .../src/operations/policy.ts | 10 +- .../src/operations/policyDescription.ts | 2 +- .../src/operations/policyFragment.ts | 408 + .../src/operations/portalConfig.ts | 286 + .../src/operations/portalRevision.ts | 86 +- .../src/operations/portalSettings.ts | 2 +- .../privateEndpointConnectionOperations.ts | 67 +- .../src/operations/product.ts | 26 +- .../src/operations/productApi.ts | 12 +- .../src/operations/productGroup.ts | 12 +- .../src/operations/productPolicy.ts | 10 +- .../src/operations/productSubscriptions.ts | 6 +- .../src/operations/productWiki.ts | 287 + .../src/operations/productWikis.ts | 224 + .../src/operations/quotaByCounterKeys.ts | 6 +- .../src/operations/quotaByPeriodKeys.ts | 6 +- .../src/operations/region.ts | 6 +- .../src/operations/reports.ts | 68 +- .../src/operations/signInSettings.ts | 12 +- .../src/operations/signUpSettings.ts | 12 +- .../src/operations/subscription.ts | 26 +- .../arm-apimanagement/src/operations/tag.ts | 58 +- .../src/operations/tagResource.ts | 6 +- .../src/operations/tenantAccess.ts | 24 +- .../src/operations/tenantAccessGit.ts | 4 +- .../src/operations/tenantConfiguration.ts | 103 +- .../src/operations/tenantSettings.ts | 8 +- .../arm-apimanagement/src/operations/user.ts | 26 +- .../operations/userConfirmationPassword.ts | 2 +- .../src/operations/userGroup.ts | 6 +- .../src/operations/userIdentities.ts | 6 +- .../src/operations/userSubscription.ts | 8 +- .../src/operationsInterfaces/api.ts | 22 +- .../src/operationsInterfaces/apiDiagnostic.ts | 12 +- .../src/operationsInterfaces/apiExport.ts | 2 +- .../src/operationsInterfaces/apiIssue.ts | 12 +- .../apiIssueAttachment.ts | 10 +- .../operationsInterfaces/apiIssueComment.ts | 10 +- .../apiManagementService.ts | 87 +- .../apiManagementServiceSkus.ts | 2 +- .../src/operationsInterfaces/apiOperation.ts | 12 +- .../apiOperationPolicy.ts | 10 +- .../src/operationsInterfaces/apiPolicy.ts | 10 +- .../src/operationsInterfaces/apiProduct.ts | 2 +- .../src/operationsInterfaces/apiRelease.ts | 12 +- .../src/operationsInterfaces/apiRevision.ts | 2 +- .../src/operationsInterfaces/apiSchema.ts | 18 +- .../operationsInterfaces/apiTagDescription.ts | 10 +- .../src/operationsInterfaces/apiVersionSet.ts | 12 +- .../src/operationsInterfaces/apiWiki.ts | 100 + .../src/operationsInterfaces/apiWikis.ts | 28 + .../src/operationsInterfaces/authorization.ts | 106 + .../authorizationAccessPolicy.ts | 94 + .../authorizationLoginLinks.ts | 34 + .../authorizationProvider.ts | 78 + .../authorizationServer.ts | 14 +- .../src/operationsInterfaces/backend.ts | 18 +- .../src/operationsInterfaces/cache.ts | 12 +- .../src/operationsInterfaces/certificate.ts | 12 +- .../src/operationsInterfaces/contentItem.ts | 10 +- .../src/operationsInterfaces/contentType.ts | 8 +- .../delegationSettings.ts | 10 +- .../operationsInterfaces/deletedServices.ts | 4 +- .../src/operationsInterfaces/diagnostic.ts | 12 +- .../src/operationsInterfaces/documentation.ts | 119 + .../src/operationsInterfaces/emailTemplate.ts | 12 +- .../src/operationsInterfaces/gateway.ts | 18 +- .../src/operationsInterfaces/gatewayApi.ts | 8 +- .../gatewayCertificateAuthority.ts | 10 +- .../gatewayHostnameConfiguration.ts | 10 +- .../src/operationsInterfaces/globalSchema.ts | 18 +- .../graphQLApiResolver.ts | 137 + .../graphQLApiResolverPolicy.ts | 124 + .../src/operationsInterfaces/group.ts | 12 +- .../src/operationsInterfaces/groupUser.ts | 8 +- .../operationsInterfaces/identityProvider.ts | 14 +- .../src/operationsInterfaces/index.ts | 13 + .../src/operationsInterfaces/issue.ts | 4 +- .../src/operationsInterfaces/logger.ts | 12 +- .../src/operationsInterfaces/namedValue.ts | 36 +- .../src/operationsInterfaces/networkStatus.ts | 4 +- .../src/operationsInterfaces/notification.ts | 6 +- .../notificationRecipientEmail.ts | 8 +- .../notificationRecipientUser.ts | 8 +- .../openIdConnectProvider.ts | 14 +- .../operationOperations.ts | 2 +- .../outboundNetworkDependenciesEndpoints.ts | 2 +- .../src/operationsInterfaces/policy.ts | 10 +- .../operationsInterfaces/policyDescription.ts | 2 +- .../operationsInterfaces/policyFragment.ts | 128 + .../src/operationsInterfaces/portalConfig.ts | 98 + .../operationsInterfaces/portalRevision.ts | 24 +- .../operationsInterfaces/portalSettings.ts | 2 +- .../privateEndpointConnectionOperations.ts | 24 +- .../src/operationsInterfaces/product.ts | 14 +- .../src/operationsInterfaces/productApi.ts | 8 +- .../src/operationsInterfaces/productGroup.ts | 8 +- .../src/operationsInterfaces/productPolicy.ts | 10 +- .../productSubscriptions.ts | 2 +- .../src/operationsInterfaces/productWiki.ts | 100 + .../src/operationsInterfaces/productWikis.ts | 28 + .../quotaByCounterKeys.ts | 4 +- .../operationsInterfaces/quotaByPeriodKeys.ts | 4 +- .../src/operationsInterfaces/region.ts | 2 +- .../src/operationsInterfaces/reports.ts | 16 +- .../operationsInterfaces/signInSettings.ts | 8 +- .../operationsInterfaces/signUpSettings.ts | 8 +- .../src/operationsInterfaces/subscription.ts | 18 +- .../src/operationsInterfaces/tag.ts | 42 +- .../src/operationsInterfaces/tagResource.ts | 2 +- .../src/operationsInterfaces/tenantAccess.ts | 16 +- .../operationsInterfaces/tenantAccessGit.ts | 4 +- .../tenantConfiguration.ts | 28 +- .../operationsInterfaces/tenantSettings.ts | 4 +- .../src/operationsInterfaces/user.ts | 16 +- .../userConfirmationPassword.ts | 2 +- .../src/operationsInterfaces/userGroup.ts | 2 +- .../operationsInterfaces/userIdentities.ts | 2 +- .../operationsInterfaces/userSubscription.ts | 4 +- 1384 files changed, 27785 insertions(+), 7710 deletions(-) create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceMigrateToStv2Sample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/apiWikisListSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyListByAuthorizationSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationConfirmConsentCodeSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationListByAuthorizationProviderSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationLoginLinksPostSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderListByServiceSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/documentationCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/documentationDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/documentationGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/documentationGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/documentationListByServiceSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/documentationUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverListByApiSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyListByResolverSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentListByServiceSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentListReferencesSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigListByServiceSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/productWikiCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/productWikiDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/productWikiGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/productWikiGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/productWikiUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples-dev/productWikisListSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceMigrateToStv2Sample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiDeleteSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetEntityTagSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikisListSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyDeleteSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyListByAuthorizationSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationConfirmConsentCodeSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationDeleteSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationListByAuthorizationProviderSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationLoginLinksPostSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderDeleteSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderListByServiceSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationDeleteSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetEntityTagSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationListByServiceSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverDeleteSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetEntityTagSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverListByApiSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyDeleteSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetEntityTagSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyListByResolverSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentDeleteSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetEntityTagSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListByServiceSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListReferencesSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetEntityTagSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigListByServiceSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiCreateOrUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiDeleteSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetEntityTagSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiUpdateSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikisListSample.js create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceMigrateToStv2Sample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikisListSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyListByAuthorizationSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationConfirmConsentCodeSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationListByAuthorizationProviderSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationLoginLinksPostSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderListByServiceSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationListByServiceSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverListByApiSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyListByResolverSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListByServiceSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListReferencesSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigListByServiceSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiCreateOrUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiDeleteSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetEntityTagSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiUpdateSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikisListSample.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index eae96791f74b..07b7b96cb284 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -9929,7 +9929,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-KoQydpxiBGI+d+QRthuqUgWdLncUqVtWhlzHOEzhwQQ+wDhhdFjF+Ghyw351FQmLnMYS0yBwd1ItDx5yLfRGlQ==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-gciAJMeJ94SRKgBGb0vLm1dXYMEL6aRIum2vBLyLWhs4xNdH5Z8oJAmC8Klxf4y4JSY6giayGc9pCdjhUrAAyQ==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -9943,8 +9943,8 @@ packages: '@types/node': 14.18.54 chai: 4.3.7 cross-env: 7.0.3 - dotenv: 8.6.0 - mkdirp: 1.0.4 + dotenv: 16.3.1 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 diff --git a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index 8403a1a309c5..25a24201b112 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,323 +1,567 @@ # Release History -## 9.0.1 (Unreleased) +## 9.1.0 (2023-08-23) -### Features Added - -### Breaking Changes - -### Bugs Fixed +**Features** -### Other Changes +- Added operation group ApiWiki +- Added operation group ApiWikis +- Added operation group Authorization +- Added operation group AuthorizationAccessPolicy +- Added operation group AuthorizationLoginLinks +- Added operation group AuthorizationProvider +- Added operation group Documentation +- Added operation group GraphQLApiResolver +- Added operation group GraphQLApiResolverPolicy +- Added operation group PolicyFragment +- Added operation group PortalConfig +- Added operation group ProductWiki +- Added operation group ProductWikis +- Added operation ApiManagementService.beginMigrateToStv2 +- Added operation ApiManagementService.beginMigrateToStv2AndWait +- Added Interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders +- Added Interface ApiManagementServiceBackupHeaders +- Added Interface ApiManagementServiceMigrateToStv2Headers +- Added Interface ApiManagementServiceMigrateToStv2OptionalParams +- Added Interface ApiManagementServiceRestoreHeaders +- Added Interface ApiWikiCreateOrUpdateHeaders +- Added Interface ApiWikiCreateOrUpdateOptionalParams +- Added Interface ApiWikiDeleteOptionalParams +- Added Interface ApiWikiGetEntityTagHeaders +- Added Interface ApiWikiGetEntityTagOptionalParams +- Added Interface ApiWikiGetHeaders +- Added Interface ApiWikiGetOptionalParams +- Added Interface ApiWikisListNextOptionalParams +- Added Interface ApiWikisListOptionalParams +- Added Interface ApiWikiUpdateHeaders +- Added Interface ApiWikiUpdateOptionalParams +- Added Interface AuthorizationAccessPolicyCollection +- Added Interface AuthorizationAccessPolicyContract +- Added Interface AuthorizationAccessPolicyCreateOrUpdateHeaders +- Added Interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams +- Added Interface AuthorizationAccessPolicyDeleteOptionalParams +- Added Interface AuthorizationAccessPolicyGetHeaders +- Added Interface AuthorizationAccessPolicyGetOptionalParams +- Added Interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams +- Added Interface AuthorizationAccessPolicyListByAuthorizationOptionalParams +- Added Interface AuthorizationCollection +- Added Interface AuthorizationConfirmConsentCodeHeaders +- Added Interface AuthorizationConfirmConsentCodeOptionalParams +- Added Interface AuthorizationConfirmConsentCodeRequestContract +- Added Interface AuthorizationContract +- Added Interface AuthorizationCreateOrUpdateHeaders +- Added Interface AuthorizationCreateOrUpdateOptionalParams +- Added Interface AuthorizationDeleteOptionalParams +- Added Interface AuthorizationError +- Added Interface AuthorizationGetHeaders +- Added Interface AuthorizationGetOptionalParams +- Added Interface AuthorizationListByAuthorizationProviderNextOptionalParams +- Added Interface AuthorizationListByAuthorizationProviderOptionalParams +- Added Interface AuthorizationLoginLinksPostHeaders +- Added Interface AuthorizationLoginLinksPostOptionalParams +- Added Interface AuthorizationLoginRequestContract +- Added Interface AuthorizationLoginResponseContract +- Added Interface AuthorizationProviderCollection +- Added Interface AuthorizationProviderContract +- Added Interface AuthorizationProviderCreateOrUpdateHeaders +- Added Interface AuthorizationProviderCreateOrUpdateOptionalParams +- Added Interface AuthorizationProviderDeleteOptionalParams +- Added Interface AuthorizationProviderGetHeaders +- Added Interface AuthorizationProviderGetOptionalParams +- Added Interface AuthorizationProviderListByServiceNextOptionalParams +- Added Interface AuthorizationProviderListByServiceOptionalParams +- Added Interface AuthorizationProviderOAuth2GrantTypes +- Added Interface AuthorizationProviderOAuth2Settings +- Added Interface DeletedServicesPurgeHeaders +- Added Interface DocumentationCollection +- Added Interface DocumentationContract +- Added Interface DocumentationCreateOrUpdateHeaders +- Added Interface DocumentationCreateOrUpdateOptionalParams +- Added Interface DocumentationDeleteOptionalParams +- Added Interface DocumentationGetEntityTagHeaders +- Added Interface DocumentationGetEntityTagOptionalParams +- Added Interface DocumentationGetHeaders +- Added Interface DocumentationGetOptionalParams +- Added Interface DocumentationListByServiceNextOptionalParams +- Added Interface DocumentationListByServiceOptionalParams +- Added Interface DocumentationUpdateContract +- Added Interface DocumentationUpdateHeaders +- Added Interface DocumentationUpdateOptionalParams +- Added Interface GraphQLApiResolverCreateOrUpdateHeaders +- Added Interface GraphQLApiResolverCreateOrUpdateOptionalParams +- Added Interface GraphQLApiResolverDeleteOptionalParams +- Added Interface GraphQLApiResolverGetEntityTagHeaders +- Added Interface GraphQLApiResolverGetEntityTagOptionalParams +- Added Interface GraphQLApiResolverGetHeaders +- Added Interface GraphQLApiResolverGetOptionalParams +- Added Interface GraphQLApiResolverListByApiNextOptionalParams +- Added Interface GraphQLApiResolverListByApiOptionalParams +- Added Interface GraphQLApiResolverPolicyCreateOrUpdateHeaders +- Added Interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams +- Added Interface GraphQLApiResolverPolicyDeleteOptionalParams +- Added Interface GraphQLApiResolverPolicyGetEntityTagHeaders +- Added Interface GraphQLApiResolverPolicyGetEntityTagOptionalParams +- Added Interface GraphQLApiResolverPolicyGetHeaders +- Added Interface GraphQLApiResolverPolicyGetOptionalParams +- Added Interface GraphQLApiResolverPolicyListByResolverNextOptionalParams +- Added Interface GraphQLApiResolverPolicyListByResolverOptionalParams +- Added Interface GraphQLApiResolverUpdateHeaders +- Added Interface GraphQLApiResolverUpdateOptionalParams +- Added Interface PolicyFragmentCollection +- Added Interface PolicyFragmentContract +- Added Interface PolicyFragmentCreateOrUpdateHeaders +- Added Interface PolicyFragmentCreateOrUpdateOptionalParams +- Added Interface PolicyFragmentDeleteOptionalParams +- Added Interface PolicyFragmentGetEntityTagHeaders +- Added Interface PolicyFragmentGetEntityTagOptionalParams +- Added Interface PolicyFragmentGetHeaders +- Added Interface PolicyFragmentGetOptionalParams +- Added Interface PolicyFragmentListByServiceOptionalParams +- Added Interface PolicyFragmentListReferencesOptionalParams +- Added Interface PortalConfigCollection +- Added Interface PortalConfigContract +- Added Interface PortalConfigCorsProperties +- Added Interface PortalConfigCreateOrUpdateOptionalParams +- Added Interface PortalConfigCspProperties +- Added Interface PortalConfigDelegationProperties +- Added Interface PortalConfigGetEntityTagHeaders +- Added Interface PortalConfigGetEntityTagOptionalParams +- Added Interface PortalConfigGetHeaders +- Added Interface PortalConfigGetOptionalParams +- Added Interface PortalConfigListByServiceOptionalParams +- Added Interface PortalConfigPropertiesSignin +- Added Interface PortalConfigPropertiesSignup +- Added Interface PortalConfigTermsOfServiceProperties +- Added Interface PortalConfigUpdateOptionalParams +- Added Interface ProductWikiCreateOrUpdateHeaders +- Added Interface ProductWikiCreateOrUpdateOptionalParams +- Added Interface ProductWikiDeleteOptionalParams +- Added Interface ProductWikiGetEntityTagHeaders +- Added Interface ProductWikiGetEntityTagOptionalParams +- Added Interface ProductWikiGetHeaders +- Added Interface ProductWikiGetOptionalParams +- Added Interface ProductWikisListHeaders +- Added Interface ProductWikisListNextHeaders +- Added Interface ProductWikisListNextOptionalParams +- Added Interface ProductWikisListOptionalParams +- Added Interface ProductWikiUpdateHeaders +- Added Interface ProductWikiUpdateOptionalParams +- Added Interface ProxyResource +- Added Interface ResolverCollection +- Added Interface ResolverContract +- Added Interface ResolverResultContract +- Added Interface ResolverResultLogItemContract +- Added Interface ResolverUpdateContract +- Added Interface ResourceCollection +- Added Interface ResourceCollectionValueItem +- Added Interface WikiCollection +- Added Interface WikiContract +- Added Interface WikiDocumentationContract +- Added Interface WikiUpdateContract +- Added Type Alias ApiManagementServiceMigrateToStv2Response +- Added Type Alias ApiWikiCreateOrUpdateResponse +- Added Type Alias ApiWikiGetEntityTagResponse +- Added Type Alias ApiWikiGetResponse +- Added Type Alias ApiWikisListNextResponse +- Added Type Alias ApiWikisListResponse +- Added Type Alias ApiWikiUpdateResponse +- Added Type Alias AsyncResolverStatus +- Added Type Alias AuthorizationAccessPolicyCreateOrUpdateResponse +- Added Type Alias AuthorizationAccessPolicyGetResponse +- Added Type Alias AuthorizationAccessPolicyListByAuthorizationNextResponse +- Added Type Alias AuthorizationAccessPolicyListByAuthorizationResponse +- Added Type Alias AuthorizationConfirmConsentCodeResponse +- Added Type Alias AuthorizationCreateOrUpdateResponse +- Added Type Alias AuthorizationGetResponse +- Added Type Alias AuthorizationListByAuthorizationProviderNextResponse +- Added Type Alias AuthorizationListByAuthorizationProviderResponse +- Added Type Alias AuthorizationLoginLinksPostResponse +- Added Type Alias AuthorizationProviderCreateOrUpdateResponse +- Added Type Alias AuthorizationProviderGetResponse +- Added Type Alias AuthorizationProviderListByServiceNextResponse +- Added Type Alias AuthorizationProviderListByServiceResponse +- Added Type Alias AuthorizationType +- Added Type Alias DocumentationCreateOrUpdateResponse +- Added Type Alias DocumentationGetEntityTagResponse +- Added Type Alias DocumentationGetResponse +- Added Type Alias DocumentationListByServiceNextResponse +- Added Type Alias DocumentationListByServiceResponse +- Added Type Alias DocumentationUpdateResponse +- Added Type Alias GraphQLApiResolverCreateOrUpdateResponse +- Added Type Alias GraphQLApiResolverGetEntityTagResponse +- Added Type Alias GraphQLApiResolverGetResponse +- Added Type Alias GraphQLApiResolverListByApiNextResponse +- Added Type Alias GraphQLApiResolverListByApiResponse +- Added Type Alias GraphQLApiResolverPolicyCreateOrUpdateResponse +- Added Type Alias GraphQLApiResolverPolicyGetEntityTagResponse +- Added Type Alias GraphQLApiResolverPolicyGetResponse +- Added Type Alias GraphQLApiResolverPolicyListByResolverNextResponse +- Added Type Alias GraphQLApiResolverPolicyListByResolverResponse +- Added Type Alias GraphQLApiResolverUpdateResponse +- Added Type Alias NatGatewayState +- Added Type Alias OAuth2GrantType +- Added Type Alias PolicyFragmentContentFormat +- Added Type Alias PolicyFragmentCreateOrUpdateResponse +- Added Type Alias PolicyFragmentGetEntityTagResponse +- Added Type Alias PolicyFragmentGetResponse +- Added Type Alias PolicyFragmentListByServiceResponse +- Added Type Alias PolicyFragmentListReferencesResponse +- Added Type Alias PortalConfigCreateOrUpdateResponse +- Added Type Alias PortalConfigGetEntityTagResponse +- Added Type Alias PortalConfigGetResponse +- Added Type Alias PortalConfigListByServiceResponse +- Added Type Alias PortalConfigUpdateResponse +- Added Type Alias PortalSettingsCspMode +- Added Type Alias ProductWikiCreateOrUpdateResponse +- Added Type Alias ProductWikiGetEntityTagResponse +- Added Type Alias ProductWikiGetResponse +- Added Type Alias ProductWikisListNextResponse +- Added Type Alias ProductWikisListResponse +- Added Type Alias ProductWikiUpdateResponse +- Added Type Alias TranslateRequiredQueryParametersConduct +- Interface AdditionalLocation has a new optional parameter natGatewayState +- Interface AdditionalLocation has a new optional parameter outboundPublicIPAddresses +- Interface ApiCreateOrUpdateParameter has a new optional parameter translateRequiredQueryParametersConduct +- Interface ApiCreateOrUpdateProperties has a new optional parameter translateRequiredQueryParametersConduct +- Interface ApiManagementServiceBaseProperties has a new optional parameter natGatewayState +- Interface ApiManagementServiceBaseProperties has a new optional parameter outboundPublicIPAddresses +- Interface ApiManagementServiceResource has a new optional parameter natGatewayState +- Interface ApiManagementServiceResource has a new optional parameter outboundPublicIPAddresses +- Interface ApiManagementServiceUpdateParameters has a new optional parameter natGatewayState +- Interface ApiManagementServiceUpdateParameters has a new optional parameter outboundPublicIPAddresses +- Interface AuthenticationSettingsContract has a new optional parameter oAuth2AuthenticationSettings +- Interface AuthenticationSettingsContract has a new optional parameter openidAuthenticationSettings +- Interface AuthorizationServerContract has a new optional parameter useInApiDocumentation +- Interface AuthorizationServerContract has a new optional parameter useInTestConsole +- Interface AuthorizationServerContractProperties has a new optional parameter useInApiDocumentation +- Interface AuthorizationServerContractProperties has a new optional parameter useInTestConsole +- Interface AuthorizationServerUpdateContract has a new optional parameter useInApiDocumentation +- Interface AuthorizationServerUpdateContract has a new optional parameter useInTestConsole +- Interface AuthorizationServerUpdateContractProperties has a new optional parameter useInApiDocumentation +- Interface AuthorizationServerUpdateContractProperties has a new optional parameter useInTestConsole +- Interface IdentityProviderBaseParameters has a new optional parameter clientLibrary +- Interface IdentityProviderContract has a new optional parameter clientLibrary +- Interface IdentityProviderCreateContract has a new optional parameter clientLibrary +- Interface IdentityProviderUpdateParameters has a new optional parameter clientLibrary +- Interface OpenidConnectProviderContract has a new optional parameter useInApiDocumentation +- Interface OpenidConnectProviderContract has a new optional parameter useInTestConsole +- Interface OpenidConnectProviderUpdateContract has a new optional parameter useInApiDocumentation +- Interface OpenidConnectProviderUpdateContract has a new optional parameter useInTestConsole +- Added Enum KnownAuthorizationType +- Added Enum KnownNatGatewayState +- Added Enum KnownOAuth2GrantType +- Added Enum KnownPolicyFragmentContentFormat +- Added Enum KnownPortalSettingsCspMode +- Added Enum KnownTranslateRequiredQueryParametersConduct +- Class ApiManagementClient has a new signature ## 9.0.0 (2023-02-01) - + **Features** - - Added operation group GlobalSchema - - Added Interface GlobalSchemaCollection - - Added Interface GlobalSchemaContract - - Added Interface GlobalSchemaCreateOrUpdateHeaders - - Added Interface GlobalSchemaCreateOrUpdateOptionalParams - - Added Interface GlobalSchemaDeleteOptionalParams - - Added Interface GlobalSchemaGetEntityTagHeaders - - Added Interface GlobalSchemaGetEntityTagOptionalParams - - Added Interface GlobalSchemaGetHeaders - - Added Interface GlobalSchemaGetOptionalParams - - Added Interface GlobalSchemaListByServiceNextOptionalParams - - Added Interface GlobalSchemaListByServiceOptionalParams - - Added Type Alias GlobalSchemaCreateOrUpdateResponse - - Added Type Alias GlobalSchemaGetEntityTagResponse - - Added Type Alias GlobalSchemaGetResponse - - Added Type Alias GlobalSchemaListByServiceNextResponse - - Added Type Alias GlobalSchemaListByServiceResponse - - Added Type Alias SchemaType - - Interface DiagnosticContract has a new optional parameter metrics - - Added Enum KnownSchemaType - - Added function getContinuationToken - - Interface ApiDiagnosticListByServiceNextOptionalParams no longer has parameter filter - - Interface ApiDiagnosticListByServiceNextOptionalParams no longer has parameter skip - - Interface ApiDiagnosticListByServiceNextOptionalParams no longer has parameter top - - Interface ApiIssueAttachmentListByServiceNextOptionalParams no longer has parameter filter - - Interface ApiIssueAttachmentListByServiceNextOptionalParams no longer has parameter skip - - Interface ApiIssueAttachmentListByServiceNextOptionalParams no longer has parameter top - - Interface ApiIssueCommentListByServiceNextOptionalParams no longer has parameter filter - - Interface ApiIssueCommentListByServiceNextOptionalParams no longer has parameter skip - - Interface ApiIssueCommentListByServiceNextOptionalParams no longer has parameter top - - Interface ApiIssueListByServiceNextOptionalParams no longer has parameter expandCommentsAttachments - - Interface ApiIssueListByServiceNextOptionalParams no longer has parameter filter - - Interface ApiIssueListByServiceNextOptionalParams no longer has parameter skip - - Interface ApiIssueListByServiceNextOptionalParams no longer has parameter top - - Interface ApiListByServiceNextOptionalParams no longer has parameter expandApiVersionSet - - Interface ApiListByServiceNextOptionalParams no longer has parameter filter - - Interface ApiListByServiceNextOptionalParams no longer has parameter skip - - Interface ApiListByServiceNextOptionalParams no longer has parameter tags - - Interface ApiListByServiceNextOptionalParams no longer has parameter top - - Interface ApiListByTagsNextOptionalParams no longer has parameter filter - - Interface ApiListByTagsNextOptionalParams no longer has parameter includeNotTaggedApis - - Interface ApiListByTagsNextOptionalParams no longer has parameter skip - - Interface ApiListByTagsNextOptionalParams no longer has parameter top - - Interface ApiOperationListByApiNextOptionalParams no longer has parameter filter - - Interface ApiOperationListByApiNextOptionalParams no longer has parameter skip - - Interface ApiOperationListByApiNextOptionalParams no longer has parameter tags - - Interface ApiOperationListByApiNextOptionalParams no longer has parameter top - - Interface ApiProductListByApisNextOptionalParams no longer has parameter filter - - Interface ApiProductListByApisNextOptionalParams no longer has parameter skip - - Interface ApiProductListByApisNextOptionalParams no longer has parameter top - - Interface ApiReleaseListByServiceNextOptionalParams no longer has parameter filter - - Interface ApiReleaseListByServiceNextOptionalParams no longer has parameter skip - - Interface ApiReleaseListByServiceNextOptionalParams no longer has parameter top - - Interface ApiRevisionListByServiceNextOptionalParams no longer has parameter filter - - Interface ApiRevisionListByServiceNextOptionalParams no longer has parameter skip - - Interface ApiRevisionListByServiceNextOptionalParams no longer has parameter top - - Interface ApiSchemaListByApiNextOptionalParams no longer has parameter filter - - Interface ApiSchemaListByApiNextOptionalParams no longer has parameter skip - - Interface ApiSchemaListByApiNextOptionalParams no longer has parameter top - - Interface ApiTagDescriptionListByServiceNextOptionalParams no longer has parameter filter - - Interface ApiTagDescriptionListByServiceNextOptionalParams no longer has parameter skip - - Interface ApiTagDescriptionListByServiceNextOptionalParams no longer has parameter top - - Interface ApiVersionSetListByServiceNextOptionalParams no longer has parameter filter - - Interface ApiVersionSetListByServiceNextOptionalParams no longer has parameter skip - - Interface ApiVersionSetListByServiceNextOptionalParams no longer has parameter top - - Interface AuthorizationServerListByServiceNextOptionalParams no longer has parameter filter - - Interface AuthorizationServerListByServiceNextOptionalParams no longer has parameter skip - - Interface AuthorizationServerListByServiceNextOptionalParams no longer has parameter top - - Interface BackendListByServiceNextOptionalParams no longer has parameter filter - - Interface BackendListByServiceNextOptionalParams no longer has parameter skip - - Interface BackendListByServiceNextOptionalParams no longer has parameter top - - Interface CacheListByServiceNextOptionalParams no longer has parameter skip - - Interface CacheListByServiceNextOptionalParams no longer has parameter top - - Interface CertificateListByServiceNextOptionalParams no longer has parameter filter - - Interface CertificateListByServiceNextOptionalParams no longer has parameter isKeyVaultRefreshFailed - - Interface CertificateListByServiceNextOptionalParams no longer has parameter skip - - Interface CertificateListByServiceNextOptionalParams no longer has parameter top - - Interface DiagnosticListByServiceNextOptionalParams no longer has parameter filter - - Interface DiagnosticListByServiceNextOptionalParams no longer has parameter skip - - Interface DiagnosticListByServiceNextOptionalParams no longer has parameter top - - Interface EmailTemplateListByServiceNextOptionalParams no longer has parameter filter - - Interface EmailTemplateListByServiceNextOptionalParams no longer has parameter skip - - Interface EmailTemplateListByServiceNextOptionalParams no longer has parameter top - - Interface GatewayApiListByServiceNextOptionalParams no longer has parameter filter - - Interface GatewayApiListByServiceNextOptionalParams no longer has parameter skip - - Interface GatewayApiListByServiceNextOptionalParams no longer has parameter top - - Interface GatewayCertificateAuthorityListByServiceNextOptionalParams no longer has parameter filter - - Interface GatewayCertificateAuthorityListByServiceNextOptionalParams no longer has parameter skip - - Interface GatewayCertificateAuthorityListByServiceNextOptionalParams no longer has parameter top - - Interface GatewayHostnameConfigurationListByServiceNextOptionalParams no longer has parameter filter - - Interface GatewayHostnameConfigurationListByServiceNextOptionalParams no longer has parameter skip - - Interface GatewayHostnameConfigurationListByServiceNextOptionalParams no longer has parameter top - - Interface GatewayListByServiceNextOptionalParams no longer has parameter filter - - Interface GatewayListByServiceNextOptionalParams no longer has parameter skip - - Interface GatewayListByServiceNextOptionalParams no longer has parameter top - - Interface GroupListByServiceNextOptionalParams no longer has parameter filter - - Interface GroupListByServiceNextOptionalParams no longer has parameter skip - - Interface GroupListByServiceNextOptionalParams no longer has parameter top - - Interface GroupUserListNextOptionalParams no longer has parameter filter - - Interface GroupUserListNextOptionalParams no longer has parameter skip - - Interface GroupUserListNextOptionalParams no longer has parameter top - - Interface IssueListByServiceNextOptionalParams no longer has parameter filter - - Interface IssueListByServiceNextOptionalParams no longer has parameter skip - - Interface IssueListByServiceNextOptionalParams no longer has parameter top - - Interface LoggerListByServiceNextOptionalParams no longer has parameter filter - - Interface LoggerListByServiceNextOptionalParams no longer has parameter skip - - Interface LoggerListByServiceNextOptionalParams no longer has parameter top - - Interface NamedValueListByServiceNextOptionalParams no longer has parameter filter - - Interface NamedValueListByServiceNextOptionalParams no longer has parameter isKeyVaultRefreshFailed - - Interface NamedValueListByServiceNextOptionalParams no longer has parameter skip - - Interface NamedValueListByServiceNextOptionalParams no longer has parameter top - - Interface NotificationListByServiceNextOptionalParams no longer has parameter skip - - Interface NotificationListByServiceNextOptionalParams no longer has parameter top - - Interface OpenIdConnectProviderListByServiceNextOptionalParams no longer has parameter filter - - Interface OpenIdConnectProviderListByServiceNextOptionalParams no longer has parameter skip - - Interface OpenIdConnectProviderListByServiceNextOptionalParams no longer has parameter top - - Interface OperationListByTagsNextOptionalParams no longer has parameter filter - - Interface OperationListByTagsNextOptionalParams no longer has parameter includeNotTaggedOperations - - Interface OperationListByTagsNextOptionalParams no longer has parameter skip - - Interface OperationListByTagsNextOptionalParams no longer has parameter top - - Interface PortalRevisionListByServiceNextOptionalParams no longer has parameter filter - - Interface PortalRevisionListByServiceNextOptionalParams no longer has parameter skip - - Interface PortalRevisionListByServiceNextOptionalParams no longer has parameter top - - Interface ProductApiListByProductNextOptionalParams no longer has parameter filter - - Interface ProductApiListByProductNextOptionalParams no longer has parameter skip - - Interface ProductApiListByProductNextOptionalParams no longer has parameter top - - Interface ProductGroupListByProductNextOptionalParams no longer has parameter filter - - Interface ProductGroupListByProductNextOptionalParams no longer has parameter skip - - Interface ProductGroupListByProductNextOptionalParams no longer has parameter top - - Interface ProductListByServiceNextOptionalParams no longer has parameter expandGroups - - Interface ProductListByServiceNextOptionalParams no longer has parameter filter - - Interface ProductListByServiceNextOptionalParams no longer has parameter skip - - Interface ProductListByServiceNextOptionalParams no longer has parameter tags - - Interface ProductListByServiceNextOptionalParams no longer has parameter top - - Interface ProductListByTagsNextOptionalParams no longer has parameter filter - - Interface ProductListByTagsNextOptionalParams no longer has parameter includeNotTaggedProducts - - Interface ProductListByTagsNextOptionalParams no longer has parameter skip - - Interface ProductListByTagsNextOptionalParams no longer has parameter top - - Interface ProductSubscriptionsListNextOptionalParams no longer has parameter filter - - Interface ProductSubscriptionsListNextOptionalParams no longer has parameter skip - - Interface ProductSubscriptionsListNextOptionalParams no longer has parameter top - - Interface ReportsListByApiNextOptionalParams no longer has parameter orderby - - Interface ReportsListByApiNextOptionalParams no longer has parameter skip - - Interface ReportsListByApiNextOptionalParams no longer has parameter top - - Interface ReportsListByGeoNextOptionalParams no longer has parameter skip - - Interface ReportsListByGeoNextOptionalParams no longer has parameter top - - Interface ReportsListByOperationNextOptionalParams no longer has parameter orderby - - Interface ReportsListByOperationNextOptionalParams no longer has parameter skip - - Interface ReportsListByOperationNextOptionalParams no longer has parameter top - - Interface ReportsListByProductNextOptionalParams no longer has parameter orderby - - Interface ReportsListByProductNextOptionalParams no longer has parameter skip - - Interface ReportsListByProductNextOptionalParams no longer has parameter top - - Interface ReportsListBySubscriptionNextOptionalParams no longer has parameter orderby - - Interface ReportsListBySubscriptionNextOptionalParams no longer has parameter skip - - Interface ReportsListBySubscriptionNextOptionalParams no longer has parameter top - - Interface ReportsListByTimeNextOptionalParams no longer has parameter orderby - - Interface ReportsListByTimeNextOptionalParams no longer has parameter skip - - Interface ReportsListByTimeNextOptionalParams no longer has parameter top - - Interface ReportsListByUserNextOptionalParams no longer has parameter orderby - - Interface ReportsListByUserNextOptionalParams no longer has parameter skip - - Interface ReportsListByUserNextOptionalParams no longer has parameter top - - Interface SubscriptionListNextOptionalParams no longer has parameter filter - - Interface SubscriptionListNextOptionalParams no longer has parameter skip - - Interface SubscriptionListNextOptionalParams no longer has parameter top - - Interface TagListByApiNextOptionalParams no longer has parameter filter - - Interface TagListByApiNextOptionalParams no longer has parameter skip - - Interface TagListByApiNextOptionalParams no longer has parameter top - - Interface TagListByOperationNextOptionalParams no longer has parameter filter - - Interface TagListByOperationNextOptionalParams no longer has parameter skip - - Interface TagListByOperationNextOptionalParams no longer has parameter top - - Interface TagListByProductNextOptionalParams no longer has parameter filter - - Interface TagListByProductNextOptionalParams no longer has parameter skip - - Interface TagListByProductNextOptionalParams no longer has parameter top - - Interface TagListByServiceNextOptionalParams no longer has parameter filter - - Interface TagListByServiceNextOptionalParams no longer has parameter scope - - Interface TagListByServiceNextOptionalParams no longer has parameter skip - - Interface TagListByServiceNextOptionalParams no longer has parameter top - - Interface TagResourceListByServiceNextOptionalParams no longer has parameter filter - - Interface TagResourceListByServiceNextOptionalParams no longer has parameter skip - - Interface TagResourceListByServiceNextOptionalParams no longer has parameter top - - Interface TenantAccessListByServiceNextOptionalParams no longer has parameter filter - - Interface TenantSettingsListByServiceNextOptionalParams no longer has parameter filter - - Interface UserGroupListNextOptionalParams no longer has parameter filter - - Interface UserGroupListNextOptionalParams no longer has parameter skip - - Interface UserGroupListNextOptionalParams no longer has parameter top - - Interface UserListByServiceNextOptionalParams no longer has parameter expandGroups - - Interface UserListByServiceNextOptionalParams no longer has parameter filter - - Interface UserListByServiceNextOptionalParams no longer has parameter skip - - Interface UserListByServiceNextOptionalParams no longer has parameter top - - Interface UserSubscriptionListNextOptionalParams no longer has parameter filter - - Interface UserSubscriptionListNextOptionalParams no longer has parameter skip - - Interface UserSubscriptionListNextOptionalParams no longer has parameter top - +- Added operation group GlobalSchema +- Added Interface GlobalSchemaCollection +- Added Interface GlobalSchemaContract +- Added Interface GlobalSchemaCreateOrUpdateHeaders +- Added Interface GlobalSchemaCreateOrUpdateOptionalParams +- Added Interface GlobalSchemaDeleteOptionalParams +- Added Interface GlobalSchemaGetEntityTagHeaders +- Added Interface GlobalSchemaGetEntityTagOptionalParams +- Added Interface GlobalSchemaGetHeaders +- Added Interface GlobalSchemaGetOptionalParams +- Added Interface GlobalSchemaListByServiceNextOptionalParams +- Added Interface GlobalSchemaListByServiceOptionalParams +- Added Type Alias GlobalSchemaCreateOrUpdateResponse +- Added Type Alias GlobalSchemaGetEntityTagResponse +- Added Type Alias GlobalSchemaGetResponse +- Added Type Alias GlobalSchemaListByServiceNextResponse +- Added Type Alias GlobalSchemaListByServiceResponse +- Added Type Alias SchemaType +- Interface DiagnosticContract has a new optional parameter metrics +- Added Enum KnownSchemaType +- Added function getContinuationToken +- Interface ApiDiagnosticListByServiceNextOptionalParams no longer has parameter filter +- Interface ApiDiagnosticListByServiceNextOptionalParams no longer has parameter skip +- Interface ApiDiagnosticListByServiceNextOptionalParams no longer has parameter top +- Interface ApiIssueAttachmentListByServiceNextOptionalParams no longer has parameter filter +- Interface ApiIssueAttachmentListByServiceNextOptionalParams no longer has parameter skip +- Interface ApiIssueAttachmentListByServiceNextOptionalParams no longer has parameter top +- Interface ApiIssueCommentListByServiceNextOptionalParams no longer has parameter filter +- Interface ApiIssueCommentListByServiceNextOptionalParams no longer has parameter skip +- Interface ApiIssueCommentListByServiceNextOptionalParams no longer has parameter top +- Interface ApiIssueListByServiceNextOptionalParams no longer has parameter expandCommentsAttachments +- Interface ApiIssueListByServiceNextOptionalParams no longer has parameter filter +- Interface ApiIssueListByServiceNextOptionalParams no longer has parameter skip +- Interface ApiIssueListByServiceNextOptionalParams no longer has parameter top +- Interface ApiListByServiceNextOptionalParams no longer has parameter expandApiVersionSet +- Interface ApiListByServiceNextOptionalParams no longer has parameter filter +- Interface ApiListByServiceNextOptionalParams no longer has parameter skip +- Interface ApiListByServiceNextOptionalParams no longer has parameter tags +- Interface ApiListByServiceNextOptionalParams no longer has parameter top +- Interface ApiListByTagsNextOptionalParams no longer has parameter filter +- Interface ApiListByTagsNextOptionalParams no longer has parameter includeNotTaggedApis +- Interface ApiListByTagsNextOptionalParams no longer has parameter skip +- Interface ApiListByTagsNextOptionalParams no longer has parameter top +- Interface ApiOperationListByApiNextOptionalParams no longer has parameter filter +- Interface ApiOperationListByApiNextOptionalParams no longer has parameter skip +- Interface ApiOperationListByApiNextOptionalParams no longer has parameter tags +- Interface ApiOperationListByApiNextOptionalParams no longer has parameter top +- Interface ApiProductListByApisNextOptionalParams no longer has parameter filter +- Interface ApiProductListByApisNextOptionalParams no longer has parameter skip +- Interface ApiProductListByApisNextOptionalParams no longer has parameter top +- Interface ApiReleaseListByServiceNextOptionalParams no longer has parameter filter +- Interface ApiReleaseListByServiceNextOptionalParams no longer has parameter skip +- Interface ApiReleaseListByServiceNextOptionalParams no longer has parameter top +- Interface ApiRevisionListByServiceNextOptionalParams no longer has parameter filter +- Interface ApiRevisionListByServiceNextOptionalParams no longer has parameter skip +- Interface ApiRevisionListByServiceNextOptionalParams no longer has parameter top +- Interface ApiSchemaListByApiNextOptionalParams no longer has parameter filter +- Interface ApiSchemaListByApiNextOptionalParams no longer has parameter skip +- Interface ApiSchemaListByApiNextOptionalParams no longer has parameter top +- Interface ApiTagDescriptionListByServiceNextOptionalParams no longer has parameter filter +- Interface ApiTagDescriptionListByServiceNextOptionalParams no longer has parameter skip +- Interface ApiTagDescriptionListByServiceNextOptionalParams no longer has parameter top +- Interface ApiVersionSetListByServiceNextOptionalParams no longer has parameter filter +- Interface ApiVersionSetListByServiceNextOptionalParams no longer has parameter skip +- Interface ApiVersionSetListByServiceNextOptionalParams no longer has parameter top +- Interface AuthorizationServerListByServiceNextOptionalParams no longer has parameter filter +- Interface AuthorizationServerListByServiceNextOptionalParams no longer has parameter skip +- Interface AuthorizationServerListByServiceNextOptionalParams no longer has parameter top +- Interface BackendListByServiceNextOptionalParams no longer has parameter filter +- Interface BackendListByServiceNextOptionalParams no longer has parameter skip +- Interface BackendListByServiceNextOptionalParams no longer has parameter top +- Interface CacheListByServiceNextOptionalParams no longer has parameter skip +- Interface CacheListByServiceNextOptionalParams no longer has parameter top +- Interface CertificateListByServiceNextOptionalParams no longer has parameter filter +- Interface CertificateListByServiceNextOptionalParams no longer has parameter isKeyVaultRefreshFailed +- Interface CertificateListByServiceNextOptionalParams no longer has parameter skip +- Interface CertificateListByServiceNextOptionalParams no longer has parameter top +- Interface DiagnosticListByServiceNextOptionalParams no longer has parameter filter +- Interface DiagnosticListByServiceNextOptionalParams no longer has parameter skip +- Interface DiagnosticListByServiceNextOptionalParams no longer has parameter top +- Interface EmailTemplateListByServiceNextOptionalParams no longer has parameter filter +- Interface EmailTemplateListByServiceNextOptionalParams no longer has parameter skip +- Interface EmailTemplateListByServiceNextOptionalParams no longer has parameter top +- Interface GatewayApiListByServiceNextOptionalParams no longer has parameter filter +- Interface GatewayApiListByServiceNextOptionalParams no longer has parameter skip +- Interface GatewayApiListByServiceNextOptionalParams no longer has parameter top +- Interface GatewayCertificateAuthorityListByServiceNextOptionalParams no longer has parameter filter +- Interface GatewayCertificateAuthorityListByServiceNextOptionalParams no longer has parameter skip +- Interface GatewayCertificateAuthorityListByServiceNextOptionalParams no longer has parameter top +- Interface GatewayHostnameConfigurationListByServiceNextOptionalParams no longer has parameter filter +- Interface GatewayHostnameConfigurationListByServiceNextOptionalParams no longer has parameter skip +- Interface GatewayHostnameConfigurationListByServiceNextOptionalParams no longer has parameter top +- Interface GatewayListByServiceNextOptionalParams no longer has parameter filter +- Interface GatewayListByServiceNextOptionalParams no longer has parameter skip +- Interface GatewayListByServiceNextOptionalParams no longer has parameter top +- Interface GroupListByServiceNextOptionalParams no longer has parameter filter +- Interface GroupListByServiceNextOptionalParams no longer has parameter skip +- Interface GroupListByServiceNextOptionalParams no longer has parameter top +- Interface GroupUserListNextOptionalParams no longer has parameter filter +- Interface GroupUserListNextOptionalParams no longer has parameter skip +- Interface GroupUserListNextOptionalParams no longer has parameter top +- Interface IssueListByServiceNextOptionalParams no longer has parameter filter +- Interface IssueListByServiceNextOptionalParams no longer has parameter skip +- Interface IssueListByServiceNextOptionalParams no longer has parameter top +- Interface LoggerListByServiceNextOptionalParams no longer has parameter filter +- Interface LoggerListByServiceNextOptionalParams no longer has parameter skip +- Interface LoggerListByServiceNextOptionalParams no longer has parameter top +- Interface NamedValueListByServiceNextOptionalParams no longer has parameter filter +- Interface NamedValueListByServiceNextOptionalParams no longer has parameter isKeyVaultRefreshFailed +- Interface NamedValueListByServiceNextOptionalParams no longer has parameter skip +- Interface NamedValueListByServiceNextOptionalParams no longer has parameter top +- Interface NotificationListByServiceNextOptionalParams no longer has parameter skip +- Interface NotificationListByServiceNextOptionalParams no longer has parameter top +- Interface OpenIdConnectProviderListByServiceNextOptionalParams no longer has parameter filter +- Interface OpenIdConnectProviderListByServiceNextOptionalParams no longer has parameter skip +- Interface OpenIdConnectProviderListByServiceNextOptionalParams no longer has parameter top +- Interface OperationListByTagsNextOptionalParams no longer has parameter filter +- Interface OperationListByTagsNextOptionalParams no longer has parameter includeNotTaggedOperations +- Interface OperationListByTagsNextOptionalParams no longer has parameter skip +- Interface OperationListByTagsNextOptionalParams no longer has parameter top +- Interface PortalRevisionListByServiceNextOptionalParams no longer has parameter filter +- Interface PortalRevisionListByServiceNextOptionalParams no longer has parameter skip +- Interface PortalRevisionListByServiceNextOptionalParams no longer has parameter top +- Interface ProductApiListByProductNextOptionalParams no longer has parameter filter +- Interface ProductApiListByProductNextOptionalParams no longer has parameter skip +- Interface ProductApiListByProductNextOptionalParams no longer has parameter top +- Interface ProductGroupListByProductNextOptionalParams no longer has parameter filter +- Interface ProductGroupListByProductNextOptionalParams no longer has parameter skip +- Interface ProductGroupListByProductNextOptionalParams no longer has parameter top +- Interface ProductListByServiceNextOptionalParams no longer has parameter expandGroups +- Interface ProductListByServiceNextOptionalParams no longer has parameter filter +- Interface ProductListByServiceNextOptionalParams no longer has parameter skip +- Interface ProductListByServiceNextOptionalParams no longer has parameter tags +- Interface ProductListByServiceNextOptionalParams no longer has parameter top +- Interface ProductListByTagsNextOptionalParams no longer has parameter filter +- Interface ProductListByTagsNextOptionalParams no longer has parameter includeNotTaggedProducts +- Interface ProductListByTagsNextOptionalParams no longer has parameter skip +- Interface ProductListByTagsNextOptionalParams no longer has parameter top +- Interface ProductSubscriptionsListNextOptionalParams no longer has parameter filter +- Interface ProductSubscriptionsListNextOptionalParams no longer has parameter skip +- Interface ProductSubscriptionsListNextOptionalParams no longer has parameter top +- Interface ReportsListByApiNextOptionalParams no longer has parameter orderby +- Interface ReportsListByApiNextOptionalParams no longer has parameter skip +- Interface ReportsListByApiNextOptionalParams no longer has parameter top +- Interface ReportsListByGeoNextOptionalParams no longer has parameter skip +- Interface ReportsListByGeoNextOptionalParams no longer has parameter top +- Interface ReportsListByOperationNextOptionalParams no longer has parameter orderby +- Interface ReportsListByOperationNextOptionalParams no longer has parameter skip +- Interface ReportsListByOperationNextOptionalParams no longer has parameter top +- Interface ReportsListByProductNextOptionalParams no longer has parameter orderby +- Interface ReportsListByProductNextOptionalParams no longer has parameter skip +- Interface ReportsListByProductNextOptionalParams no longer has parameter top +- Interface ReportsListBySubscriptionNextOptionalParams no longer has parameter orderby +- Interface ReportsListBySubscriptionNextOptionalParams no longer has parameter skip +- Interface ReportsListBySubscriptionNextOptionalParams no longer has parameter top +- Interface ReportsListByTimeNextOptionalParams no longer has parameter orderby +- Interface ReportsListByTimeNextOptionalParams no longer has parameter skip +- Interface ReportsListByTimeNextOptionalParams no longer has parameter top +- Interface ReportsListByUserNextOptionalParams no longer has parameter orderby +- Interface ReportsListByUserNextOptionalParams no longer has parameter skip +- Interface ReportsListByUserNextOptionalParams no longer has parameter top +- Interface SubscriptionListNextOptionalParams no longer has parameter filter +- Interface SubscriptionListNextOptionalParams no longer has parameter skip +- Interface SubscriptionListNextOptionalParams no longer has parameter top +- Interface TagListByApiNextOptionalParams no longer has parameter filter +- Interface TagListByApiNextOptionalParams no longer has parameter skip +- Interface TagListByApiNextOptionalParams no longer has parameter top +- Interface TagListByOperationNextOptionalParams no longer has parameter filter +- Interface TagListByOperationNextOptionalParams no longer has parameter skip +- Interface TagListByOperationNextOptionalParams no longer has parameter top +- Interface TagListByProductNextOptionalParams no longer has parameter filter +- Interface TagListByProductNextOptionalParams no longer has parameter skip +- Interface TagListByProductNextOptionalParams no longer has parameter top +- Interface TagListByServiceNextOptionalParams no longer has parameter filter +- Interface TagListByServiceNextOptionalParams no longer has parameter scope +- Interface TagListByServiceNextOptionalParams no longer has parameter skip +- Interface TagListByServiceNextOptionalParams no longer has parameter top +- Interface TagResourceListByServiceNextOptionalParams no longer has parameter filter +- Interface TagResourceListByServiceNextOptionalParams no longer has parameter skip +- Interface TagResourceListByServiceNextOptionalParams no longer has parameter top +- Interface TenantAccessListByServiceNextOptionalParams no longer has parameter filter +- Interface TenantSettingsListByServiceNextOptionalParams no longer has parameter filter +- Interface UserGroupListNextOptionalParams no longer has parameter filter +- Interface UserGroupListNextOptionalParams no longer has parameter skip +- Interface UserGroupListNextOptionalParams no longer has parameter top +- Interface UserListByServiceNextOptionalParams no longer has parameter expandGroups +- Interface UserListByServiceNextOptionalParams no longer has parameter filter +- Interface UserListByServiceNextOptionalParams no longer has parameter skip +- Interface UserListByServiceNextOptionalParams no longer has parameter top +- Interface UserSubscriptionListNextOptionalParams no longer has parameter filter +- Interface UserSubscriptionListNextOptionalParams no longer has parameter skip +- Interface UserSubscriptionListNextOptionalParams no longer has parameter top + **Breaking Changes** - - Operation ContentItem.createOrUpdate has a new signature - - Operation ContentType.createOrUpdate has a new signature +- Operation ContentItem.createOrUpdate has a new signature +- Operation ContentType.createOrUpdate has a new signature - ## 8.1.2 (2022-10-08) **Bugs Fixed** - - revert credential scopes +- revert credential scopes ## 8.1.1 (2022-09-30) **Bugs Fixed** - - fix better user experience of credential scopes in government cloud +- fix better user experience of credential scopes in government cloud ## 8.1.0 (2022-08-03) - + **Features** - - Added Interface AccessInformationContract - - Added Interface ApiContract - - Added Interface ApiContractProperties - - Added Interface ApiContractUpdateProperties - - Added Interface ApiCreateOrUpdateProperties - - Added Interface ApiManagementServiceProperties - - Added Interface ApiManagementServiceResource - - Added Interface ApiManagementServiceUpdateParameters - - Added Interface ApiManagementServiceUpdateProperties - - Added Interface ApiReleaseContract - - Added Interface ApiTagResourceContractProperties - - Added Interface ApiVersionSetContract - - Added Interface ApiVersionSetContractProperties - - Added Interface ApiVersionSetUpdateParametersProperties - - Added Interface AssociationContract - - Added Interface AuthorizationServerContract - - Added Interface AuthorizationServerContractProperties - - Added Interface AuthorizationServerUpdateContract - - Added Interface AuthorizationServerUpdateContractProperties - - Added Interface BackendContract - - Added Interface BackendContractProperties - - Added Interface BackendReconnectContract - - Added Interface BackendUpdateParameterProperties - - Added Interface CacheContract - - Added Interface CertificateContract - - Added Interface ContentItemContract - - Added Interface ContentTypeContract - - Added Interface DeletedServiceContract - - Added Interface DiagnosticContract - - Added Interface EmailTemplateContract - - Added Interface GatewayCertificateAuthorityContract - - Added Interface GatewayContract - - Added Interface GatewayHostnameConfigurationContract - - Added Interface GroupContract - - Added Interface IdentityProviderContract - - Added Interface IdentityProviderContractProperties - - Added Interface IdentityProviderCreateContract - - Added Interface IdentityProviderCreateContractProperties - - Added Interface IdentityProviderUpdateProperties - - Added Interface IssueAttachmentContract - - Added Interface IssueCommentContract - - Added Interface IssueContract - - Added Interface IssueContractProperties - - Added Interface IssueUpdateContractProperties - - Added Interface KeyVaultContractProperties - - Added Interface LoggerContract - - Added Interface NamedValueContract - - Added Interface NamedValueContractProperties - - Added Interface NamedValueCreateContract - - Added Interface NamedValueCreateContractProperties - - Added Interface NamedValueUpdateParameterProperties - - Added Interface NotificationContract - - Added Interface OpenidConnectProviderContract - - Added Interface OperationContract - - Added Interface OperationContractProperties - - Added Interface OperationResultContract - - Added Interface OperationUpdateContractProperties - - Added Interface PolicyContract - - Added Interface PolicyDescriptionContract - - Added Interface PortalDelegationSettings - - Added Interface PortalRevisionContract - - Added Interface PortalSettingsContract - - Added Interface PortalSigninSettings - - Added Interface PortalSignupSettings - - Added Interface PrivateEndpointConnection - - Added Interface PrivateLinkResource - - Added Interface ProductContract - - Added Interface ProductContractProperties - - Added Interface ProductTagResourceContractProperties - - Added Interface ProductUpdateProperties - - Added Interface RecipientEmailContract - - Added Interface RecipientUserContract - - Added Interface SchemaContract - - Added Interface SubscriptionContract - - Added Interface TagContract - - Added Interface TagDescriptionContract - - Added Interface TagDescriptionContractProperties - - Added Interface TenantConfigurationSyncStateContract - - Added Interface TenantSettingsContract - - Added Interface UserContract - - Added Interface UserContractProperties - - Added Interface UserCreateParameterProperties - - Added Interface UserUpdateParametersProperties - +- Added Interface AccessInformationContract +- Added Interface ApiContract +- Added Interface ApiContractProperties +- Added Interface ApiContractUpdateProperties +- Added Interface ApiCreateOrUpdateProperties +- Added Interface ApiManagementServiceProperties +- Added Interface ApiManagementServiceResource +- Added Interface ApiManagementServiceUpdateParameters +- Added Interface ApiManagementServiceUpdateProperties +- Added Interface ApiReleaseContract +- Added Interface ApiTagResourceContractProperties +- Added Interface ApiVersionSetContract +- Added Interface ApiVersionSetContractProperties +- Added Interface ApiVersionSetUpdateParametersProperties +- Added Interface AssociationContract +- Added Interface AuthorizationServerContract +- Added Interface AuthorizationServerContractProperties +- Added Interface AuthorizationServerUpdateContract +- Added Interface AuthorizationServerUpdateContractProperties +- Added Interface BackendContract +- Added Interface BackendContractProperties +- Added Interface BackendReconnectContract +- Added Interface BackendUpdateParameterProperties +- Added Interface CacheContract +- Added Interface CertificateContract +- Added Interface ContentItemContract +- Added Interface ContentTypeContract +- Added Interface DeletedServiceContract +- Added Interface DiagnosticContract +- Added Interface EmailTemplateContract +- Added Interface GatewayCertificateAuthorityContract +- Added Interface GatewayContract +- Added Interface GatewayHostnameConfigurationContract +- Added Interface GroupContract +- Added Interface IdentityProviderContract +- Added Interface IdentityProviderContractProperties +- Added Interface IdentityProviderCreateContract +- Added Interface IdentityProviderCreateContractProperties +- Added Interface IdentityProviderUpdateProperties +- Added Interface IssueAttachmentContract +- Added Interface IssueCommentContract +- Added Interface IssueContract +- Added Interface IssueContractProperties +- Added Interface IssueUpdateContractProperties +- Added Interface KeyVaultContractProperties +- Added Interface LoggerContract +- Added Interface NamedValueContract +- Added Interface NamedValueContractProperties +- Added Interface NamedValueCreateContract +- Added Interface NamedValueCreateContractProperties +- Added Interface NamedValueUpdateParameterProperties +- Added Interface NotificationContract +- Added Interface OpenidConnectProviderContract +- Added Interface OperationContract +- Added Interface OperationContractProperties +- Added Interface OperationResultContract +- Added Interface OperationUpdateContractProperties +- Added Interface PolicyContract +- Added Interface PolicyDescriptionContract +- Added Interface PortalDelegationSettings +- Added Interface PortalRevisionContract +- Added Interface PortalSettingsContract +- Added Interface PortalSigninSettings +- Added Interface PortalSignupSettings +- Added Interface PrivateEndpointConnection +- Added Interface PrivateLinkResource +- Added Interface ProductContract +- Added Interface ProductContractProperties +- Added Interface ProductTagResourceContractProperties +- Added Interface ProductUpdateProperties +- Added Interface RecipientEmailContract +- Added Interface RecipientUserContract +- Added Interface SchemaContract +- Added Interface SubscriptionContract +- Added Interface TagContract +- Added Interface TagDescriptionContract +- Added Interface TagDescriptionContractProperties +- Added Interface TenantConfigurationSyncStateContract +- Added Interface TenantSettingsContract +- Added Interface UserContract +- Added Interface UserContractProperties +- Added Interface UserCreateParameterProperties +- Added Interface UserUpdateParametersProperties + ## 8.0.1 (2022-04-06) **features** - - Bug fix +- Bug fix ## 8.0.0 (2021-12-13) diff --git a/sdk/apimanagement/arm-apimanagement/_meta.json b/sdk/apimanagement/arm-apimanagement/_meta.json index d31dfe25fa38..2dd27e303209 100644 --- a/sdk/apimanagement/arm-apimanagement/_meta.json +++ b/sdk/apimanagement/arm-apimanagement/_meta.json @@ -1,8 +1,8 @@ { - "commit": "78ec1b99699a4bf44869bd13f1b0ed7d92a99c27", + "commit": "c2e836ccebb6a08245631ca1d68927abf8a79ba1", "readme": "specification/apimanagement/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", + "autorest_command": "autorest --version=3.9.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", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.0", - "use": "@autorest/typescript@6.0.0-rc.7" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@6.0.8" } \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/assets.json b/sdk/apimanagement/arm-apimanagement/assets.json index 956b1cf60079..815d5baf15fb 100644 --- a/sdk/apimanagement/arm-apimanagement/assets.json +++ b/sdk/apimanagement/arm-apimanagement/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/apimanagement/arm-apimanagement", - "Tag": "js/apimanagement/arm-apimanagement_6223f3e92d" + "Tag": "js/apimanagement/arm-apimanagement_acaf5d3f56" } diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index 7665baeef549..f4aa45056394 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", - "version": "9.0.1", + "version": "9.1.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -33,13 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", diff --git a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md index de73184b9c87..666a2a8cd093 100644 --- a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md +++ b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md @@ -6,9 +6,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export type AccessIdName = string; @@ -21,7 +21,7 @@ export interface AccessInformationCollection { } // @public -export interface AccessInformationContract extends Resource { +export interface AccessInformationContract extends ProxyResource { enabled?: boolean; idPropertiesId?: string; principalId?: string; @@ -57,6 +57,8 @@ export interface AdditionalLocation { disableGateway?: boolean; readonly gatewayRegionalUrl?: string; location: string; + natGatewayState?: NatGatewayState; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly privateIPAddresses?: string[]; readonly publicIPAddresses?: string[]; @@ -71,7 +73,7 @@ export type AlwaysLog = string; // @public export interface Api { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise, ApiCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise, ApiCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiGetOptionalParams): Promise; @@ -96,7 +98,7 @@ export interface ApiContactInformation { } // @public -export interface ApiContract extends Resource { +export interface ApiContract extends ProxyResource { apiRevision?: string; apiRevisionDescription?: string; apiType?: ApiType; @@ -175,6 +177,7 @@ export interface ApiCreateOrUpdateParameter { subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; subscriptionRequired?: boolean; termsOfServiceUrl?: string; + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; value?: string; wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; } @@ -183,6 +186,7 @@ export interface ApiCreateOrUpdateParameter { export interface ApiCreateOrUpdateProperties extends ApiContractProperties { format?: ContentFormat; soapApiType?: SoapApiType; + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; value?: string; wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; } @@ -612,6 +616,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApiManagementClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: ApiManagementClientOptionalParams); // (undocumented) api: Api; // (undocumented) @@ -653,10 +658,22 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersionSet: ApiVersionSet; // (undocumented) + apiWiki: ApiWiki; + // (undocumented) + apiWikis: ApiWikis; + // (undocumented) + authorization: Authorization; + // (undocumented) + authorizationAccessPolicy: AuthorizationAccessPolicy; + // (undocumented) + authorizationLoginLinks: AuthorizationLoginLinks; + // (undocumented) + authorizationProvider: AuthorizationProvider; + // (undocumented) authorizationServer: AuthorizationServer; // (undocumented) backend: Backend; - beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise, PerformConnectivityCheckAsyncResponse>>; + beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise, PerformConnectivityCheckAsyncResponse>>; beginPerformConnectivityCheckAsyncAndWait(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise; // (undocumented) cache: Cache_2; @@ -673,6 +690,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) diagnostic: Diagnostic; // (undocumented) + documentation: Documentation; + // (undocumented) emailTemplate: EmailTemplate; // (undocumented) gateway: Gateway; @@ -685,6 +704,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) globalSchema: GlobalSchema; // (undocumented) + graphQLApiResolver: GraphQLApiResolver; + // (undocumented) + graphQLApiResolverPolicy: GraphQLApiResolverPolicy; + // (undocumented) group: Group; // (undocumented) groupUser: GroupUser; @@ -715,6 +738,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) policyDescription: PolicyDescription; // (undocumented) + policyFragment: PolicyFragment; + // (undocumented) + portalConfig: PortalConfig; + // (undocumented) portalRevision: PortalRevision; // (undocumented) portalSettings: PortalSettings; @@ -731,6 +758,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) productSubscriptions: ProductSubscriptions; // (undocumented) + productWiki: ProductWiki; + // (undocumented) + productWikis: ProductWikis; + // (undocumented) quotaByCounterKeys: QuotaByCounterKeys; // (undocumented) quotaByPeriodKeys: QuotaByPeriodKeys; @@ -745,7 +776,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) subscription: Subscription; // (undocumented) - subscriptionId: string; + subscriptionId?: string; // (undocumented) tag: Tag; // (undocumented) @@ -798,17 +829,19 @@ export type ApiManagementOperationsListResponse = OperationListResult; // @public export interface ApiManagementService { - beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse>>; + beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse>>; beginApplyNetworkConfigurationUpdatesAndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise; - beginBackup(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams): Promise, ApiManagementServiceBackupResponse>>; + beginBackup(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams): Promise, ApiManagementServiceBackupResponse>>; beginBackupAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams): Promise; - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise, ApiManagementServiceCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise, ApiManagementServiceCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise; - beginRestore(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams): Promise, ApiManagementServiceRestoreResponse>>; + beginMigrateToStv2(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceMigrateToStv2OptionalParams): Promise, ApiManagementServiceMigrateToStv2Response>>; + beginMigrateToStv2AndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceMigrateToStv2OptionalParams): Promise; + beginRestore(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams): Promise, ApiManagementServiceRestoreResponse>>; beginRestoreAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams): Promise, ApiManagementServiceUpdateResponse>>; + beginUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams): Promise, ApiManagementServiceUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams): Promise; checkNameAvailability(parameters: ApiManagementServiceCheckNameAvailabilityParameters, options?: ApiManagementServiceCheckNameAvailabilityOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceGetOptionalParams): Promise; @@ -823,6 +856,12 @@ export interface ApiManagementServiceApplyNetworkConfigurationParameters { location?: string; } +// @public +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams extends coreClient.OperationOptions { parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; @@ -833,6 +872,12 @@ export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalPar // @public export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource; +// @public +export interface ApiManagementServiceBackupHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementServiceBackupOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -868,7 +913,9 @@ export interface ApiManagementServiceBaseProperties { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; readonly managementApiUrl?: string; + natGatewayState?: NatGatewayState; notificationSenderEmail?: string; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly portalUrl?: string; privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; @@ -986,6 +1033,21 @@ export interface ApiManagementServiceListResult { value: ApiManagementServiceResource[]; } +// @public +export interface ApiManagementServiceMigrateToStv2Headers { + // (undocumented) + location?: string; +} + +// @public +export interface ApiManagementServiceMigrateToStv2OptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; + // @public export interface ApiManagementServiceNameAvailabilityResult { readonly message?: string; @@ -1018,7 +1080,9 @@ export interface ApiManagementServiceResource extends ApimResource { identity?: ApiManagementServiceIdentity; location: string; readonly managementApiUrl?: string; + natGatewayState?: NatGatewayState; notificationSenderEmail?: string; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly portalUrl?: string; privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; @@ -1039,6 +1103,12 @@ export interface ApiManagementServiceResource extends ApimResource { zones?: string[]; } +// @public +export interface ApiManagementServiceRestoreHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementServiceRestoreOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1097,7 +1167,9 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; readonly managementApiUrl?: string; + natGatewayState?: NatGatewayState; notificationSenderEmail?: string; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly portalUrl?: string; privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; @@ -1475,7 +1547,7 @@ export interface ApiReleaseCollection { } // @public -export interface ApiReleaseContract extends Resource { +export interface ApiReleaseContract extends ProxyResource { apiId?: string; readonly createdDateTime?: Date; notes?: string; @@ -1603,7 +1675,7 @@ export type ApiRevisionListByServiceResponse = ApiRevisionCollection; // @public export interface ApiSchema { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams): Promise, ApiSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams): Promise, ApiSchemaCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, ifMatch: string, options?: ApiSchemaDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, options?: ApiSchemaGetOptionalParams): Promise; @@ -1809,7 +1881,7 @@ export interface ApiVersionSetCollection { } // @public -export interface ApiVersionSetContract extends Resource { +export interface ApiVersionSetContract extends ProxyResource { description?: string; displayName?: string; versionHeaderName?: string; @@ -1928,6 +2000,90 @@ export interface ApiVersionSetUpdateParametersProperties extends ApiVersionSetEn // @public export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & ApiVersionSetContract; +// @public +export interface ApiWiki { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: WikiContract, options?: ApiWikiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiWikiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikiGetEntityTagOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, parameters: WikiUpdateContract, options?: ApiWikiUpdateOptionalParams): Promise; +} + +// @public +export interface ApiWikiCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface ApiWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & WikiContract; + +// @public +export interface ApiWikiDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ApiWikiGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface ApiWikiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; + +// @public +export interface ApiWikiGetHeaders { + eTag?: string; +} + +// @public +export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; + +// @public +export interface ApiWikis { + list(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikisListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApiWikisListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiWikisListNextResponse = WikiCollection; + +// @public +export interface ApiWikisListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ApiWikisListResponse = WikiCollection; + +// @public +export interface ApiWikiUpdateHeaders { + eTag?: string; +} + +// @public +export interface ApiWikiUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; + // @public export type AppType = string; @@ -1937,22 +2093,300 @@ export interface ArmIdWrapper { } // @public -export interface AssociationContract extends Resource { +export interface AssociationContract extends ProxyResource { provisioningState?: "created"; } // @public export type AsyncOperationStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; +// @public +export type AsyncResolverStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; + // @public export interface AuthenticationSettingsContract { oAuth2?: OAuth2AuthenticationSettingsContract; + oAuth2AuthenticationSettings?: OAuth2AuthenticationSettingsContract[]; openid?: OpenIdAuthenticationSettingsContract; + openidAuthenticationSettings?: OpenIdAuthenticationSettingsContract[]; +} + +// @public +export interface Authorization { + confirmConsentCode(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationConfirmConsentCodeRequestContract, options?: AuthorizationConfirmConsentCodeOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, options?: AuthorizationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, ifMatch: string, options?: AuthorizationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, options?: AuthorizationGetOptionalParams): Promise; + listByAuthorizationProvider(resourceGroupName: string, serviceName: string, authorizationProviderId: string, options?: AuthorizationListByAuthorizationProviderOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AuthorizationAccessPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, options?: AuthorizationAccessPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, options?: AuthorizationAccessPolicyGetOptionalParams): Promise; + listByAuthorization(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AuthorizationAccessPolicyCollection { + count?: number; + nextLink?: string; + value?: AuthorizationAccessPolicyContract[]; +} + +// @public +export interface AuthorizationAccessPolicyContract extends ProxyResource { + objectId?: string; + tenantId?: string; +} + +// @public +export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & AuthorizationAccessPolicyContract; + +// @public +export interface AuthorizationAccessPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AuthorizationAccessPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationAccessPolicyGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & AuthorizationAccessPolicyContract; + +// @public +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; + +// @public +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; + +// @public +export interface AuthorizationCollection { + count?: number; + nextLink?: string; + value?: AuthorizationContract[]; +} + +// @public +export interface AuthorizationConfirmConsentCodeHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationConfirmConsentCodeOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AuthorizationConfirmConsentCodeRequestContract { + consentCode?: string; +} + +// @public +export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; + +// @public +export interface AuthorizationContract extends ProxyResource { + authorizationType?: AuthorizationType; + error?: AuthorizationError; + oAuth2GrantType?: OAuth2GrantType; + parameters?: { + [propertyName: string]: string; + }; + status?: string; +} + +// @public +export interface AuthorizationCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & AuthorizationContract; + +// @public +export interface AuthorizationDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AuthorizationError { + code?: string; + message?: string; +} + +// @public +export interface AuthorizationGetHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationGetResponse = AuthorizationGetHeaders & AuthorizationContract; + +// @public +export interface AuthorizationListByAuthorizationProviderNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; + +// @public +export interface AuthorizationListByAuthorizationProviderOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; + +// @public +export interface AuthorizationLoginLinks { + post(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationLoginRequestContract, options?: AuthorizationLoginLinksPostOptionalParams): Promise; +} + +// @public +export interface AuthorizationLoginLinksPostHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationLoginLinksPostOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & AuthorizationLoginResponseContract; + +// @public +export interface AuthorizationLoginRequestContract { + postLoginRedirectUrl?: string; +} + +// @public +export interface AuthorizationLoginResponseContract { + loginLink?: string; } // @public export type AuthorizationMethod = "HEAD" | "OPTIONS" | "TRACE" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; +// @public +export interface AuthorizationProvider { + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, parameters: AuthorizationProviderContract, options?: AuthorizationProviderCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, ifMatch: string, options?: AuthorizationProviderDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, options?: AuthorizationProviderGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: AuthorizationProviderListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AuthorizationProviderCollection { + nextLink?: string; + value?: AuthorizationProviderContract[]; +} + +// @public +export interface AuthorizationProviderContract extends ProxyResource { + displayName?: string; + identityProvider?: string; + oauth2?: AuthorizationProviderOAuth2Settings; +} + +// @public +export interface AuthorizationProviderCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & AuthorizationProviderContract; + +// @public +export interface AuthorizationProviderDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AuthorizationProviderGetHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationProviderGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & AuthorizationProviderContract; + +// @public +export interface AuthorizationProviderListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; + +// @public +export interface AuthorizationProviderListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; + +// @public +export interface AuthorizationProviderOAuth2GrantTypes { + authorizationCode?: { + [propertyName: string]: string; + }; + clientCredentials?: { + [propertyName: string]: string; + }; +} + +// @public +export interface AuthorizationProviderOAuth2Settings { + grantTypes?: AuthorizationProviderOAuth2GrantTypes; + redirectUrl?: string; +} + // @public export interface AuthorizationServer { createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: AuthorizationServerContract, options?: AuthorizationServerCreateOrUpdateOptionalParams): Promise; @@ -1972,7 +2406,7 @@ export interface AuthorizationServerCollection { } // @public -export interface AuthorizationServerContract extends Resource { +export interface AuthorizationServerContract extends ProxyResource { authorizationEndpoint?: string; authorizationMethods?: AuthorizationMethod[]; bearerTokenSendingMethods?: BearerTokenSendingMethod[]; @@ -1989,6 +2423,8 @@ export interface AuthorizationServerContract extends Resource { supportState?: boolean; tokenBodyParameters?: TokenBodyParameterContract[]; tokenEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -2013,6 +2449,8 @@ export interface AuthorizationServerContractProperties extends AuthorizationServ clientSecret?: string; displayName: string; grantTypes: GrantType[]; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -2093,7 +2531,7 @@ export interface AuthorizationServerSecretsContract { } // @public -export interface AuthorizationServerUpdateContract extends Resource { +export interface AuthorizationServerUpdateContract extends ProxyResource { authorizationEndpoint?: string; authorizationMethods?: AuthorizationMethod[]; bearerTokenSendingMethods?: BearerTokenSendingMethod[]; @@ -2110,6 +2548,8 @@ export interface AuthorizationServerUpdateContract extends Resource { supportState?: boolean; tokenBodyParameters?: TokenBodyParameterContract[]; tokenEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -2120,6 +2560,8 @@ export interface AuthorizationServerUpdateContractProperties extends Authorizati clientSecret?: string; displayName?: string; grantTypes?: GrantType[]; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -2134,6 +2576,9 @@ export interface AuthorizationServerUpdateOptionalParams extends coreClient.Oper // @public export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & AuthorizationServerContract; +// @public +export type AuthorizationType = string; + // @public export interface Backend { createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: BackendContract, options?: BackendCreateOrUpdateOptionalParams): Promise; @@ -2170,7 +2615,7 @@ export interface BackendCollection { } // @public -export interface BackendContract extends Resource { +export interface BackendContract extends ProxyResource { credentials?: BackendCredentialsContract; description?: string; properties?: BackendProperties; @@ -2275,7 +2720,7 @@ export interface BackendProxyContract { } // @public -export interface BackendReconnectContract extends Resource { +export interface BackendReconnectContract extends ProxyResource { after?: string; } @@ -2361,7 +2806,7 @@ export interface CacheCollection { } // @public -export interface CacheContract extends Resource { +export interface CacheContract extends ProxyResource { connectionString?: string; description?: string; resourceId?: string; @@ -2474,7 +2919,7 @@ export interface CertificateConfiguration { export type CertificateConfigurationStoreName = string; // @public -export interface CertificateContract extends Resource { +export interface CertificateContract extends ProxyResource { expirationDate?: Date; keyVault?: KeyVaultContractProperties; subject?: string; @@ -2689,7 +3134,7 @@ export interface ContentItemCollection { } // @public -export interface ContentItemContract extends Resource { +export interface ContentItemContract extends ProxyResource { properties?: { [propertyName: string]: any; }; @@ -2765,7 +3210,7 @@ export interface ContentTypeCollection { } // @public -export interface ContentTypeContract extends Resource { +export interface ContentTypeContract extends ProxyResource { description?: string; idPropertiesId?: string; namePropertiesName?: string; @@ -2887,7 +3332,7 @@ export interface DelegationSettingsUpdateOptionalParams extends coreClient.Opera } // @public -export interface DeletedServiceContract extends Resource { +export interface DeletedServiceContract extends ProxyResource { deletionDate?: Date; readonly location?: string; scheduledPurgeDate?: Date; @@ -2896,7 +3341,7 @@ export interface DeletedServiceContract extends Resource { // @public export interface DeletedServices { - beginPurge(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise, void>>; + beginPurge(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise, void>>; beginPurgeAndWait(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise; getByName(serviceName: string, location: string, options?: DeletedServicesGetByNameOptionalParams): Promise; listBySubscription(options?: DeletedServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -2929,6 +3374,12 @@ export interface DeletedServicesListBySubscriptionOptionalParams extends coreCli // @public export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; +// @public +export interface DeletedServicesPurgeHeaders { + // (undocumented) + location?: string; +} + // @public export interface DeletedServicesPurgeOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2959,7 +3410,7 @@ export interface DiagnosticCollection { } // @public -export interface DiagnosticContract extends Resource { +export interface DiagnosticContract extends ProxyResource { alwaysLog?: AlwaysLog; backend?: PipelineDiagnosticSettings; frontend?: PipelineDiagnosticSettings; @@ -3042,6 +3493,104 @@ export interface DiagnosticUpdateOptionalParams extends coreClient.OperationOpti // @public export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & DiagnosticContract; +// @public +export interface Documentation { + createOrUpdate(resourceGroupName: string, serviceName: string, documentationId: string, parameters: DocumentationContract, options?: DocumentationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, documentationId: string, ifMatch: string, options?: DocumentationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, documentationId: string, options?: DocumentationGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, documentationId: string, options?: DocumentationGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: DocumentationListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, options?: DocumentationUpdateOptionalParams): Promise; +} + +// @public +export interface DocumentationCollection { + readonly nextLink?: string; + readonly value?: DocumentationContract[]; +} + +// @public +export interface DocumentationContract extends ProxyResource { + content?: string; + title?: string; +} + +// @public +export interface DocumentationCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface DocumentationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & DocumentationContract; + +// @public +export interface DocumentationDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DocumentationGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface DocumentationGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; + +// @public +export interface DocumentationGetHeaders { + eTag?: string; +} + +// @public +export interface DocumentationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DocumentationGetResponse = DocumentationGetHeaders & DocumentationContract; + +// @public +export interface DocumentationListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DocumentationListByServiceNextResponse = DocumentationCollection; + +// @public +export interface DocumentationListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type DocumentationListByServiceResponse = DocumentationCollection; + +// @public +export interface DocumentationUpdateContract { + content?: string; + title?: string; +} + +// @public +export interface DocumentationUpdateHeaders { + eTag?: string; +} + +// @public +export interface DocumentationUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & DocumentationContract; + // @public export interface EmailTemplate { createOrUpdate(resourceGroupName: string, serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, options?: EmailTemplateCreateOrUpdateOptionalParams): Promise; @@ -3060,7 +3609,7 @@ export interface EmailTemplateCollection { } // @public -export interface EmailTemplateContract extends Resource { +export interface EmailTemplateContract extends ProxyResource { body?: string; description?: string; readonly isDefault?: boolean; @@ -3270,7 +3819,7 @@ export interface GatewayCertificateAuthorityCollection { } // @public -export interface GatewayCertificateAuthorityContract extends Resource { +export interface GatewayCertificateAuthorityContract extends ProxyResource { isTrusted?: boolean; } @@ -3340,7 +3889,7 @@ export interface GatewayCollection { } // @public -export interface GatewayContract extends Resource { +export interface GatewayContract extends ProxyResource { description?: string; locationData?: ResourceLocationDataContract; } @@ -3409,7 +3958,7 @@ export interface GatewayHostnameConfigurationCollection { } // @public -export interface GatewayHostnameConfigurationContract extends Resource { +export interface GatewayHostnameConfigurationContract extends ProxyResource { certificateId?: string; hostname?: string; http2Enabled?: boolean; @@ -3553,7 +4102,7 @@ export function getContinuationToken(page: unknown): string | undefined; // @public export interface GlobalSchema { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise, GlobalSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise, GlobalSchemaCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, serviceName: string, schemaId: string, ifMatch: string, options?: GlobalSchemaDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetOptionalParams): Promise; @@ -3569,7 +4118,7 @@ export interface GlobalSchemaCollection { } // @public -export interface GlobalSchemaContract extends Resource { +export interface GlobalSchemaContract extends ProxyResource { description?: string; document?: Record; schemaType?: SchemaType; @@ -3639,6 +4188,151 @@ export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; // @public export type GrantType = string; +// @public +export interface GraphQLApiResolver { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, parameters: ResolverContract, options?: GraphQLApiResolverCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, ifMatch: string, options?: GraphQLApiResolverDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, options?: GraphQLApiResolverGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, options?: GraphQLApiResolverGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: GraphQLApiResolverListByApiOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, ifMatch: string, parameters: ResolverUpdateContract, options?: GraphQLApiResolverUpdateOptionalParams): Promise; +} + +// @public +export interface GraphQLApiResolverCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & ResolverContract; + +// @public +export interface GraphQLApiResolverDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GraphQLApiResolverGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; + +// @public +export interface GraphQLApiResolverGetHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & ResolverContract; + +// @public +export interface GraphQLApiResolverListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; + +// @public +export interface GraphQLApiResolverListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type GraphQLApiResolverListByApiResponse = ResolverCollection; + +// @public +export interface GraphQLApiResolverPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, ifMatch: string, options?: GraphQLApiResolverPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, options?: GraphQLApiResolverPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams): Promise; + listByResolver(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, options?: GraphQLApiResolverPolicyListByResolverOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GraphQLApiResolverPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface GraphQLApiResolverPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GraphQLApiResolverPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; + +// @public +export interface GraphQLApiResolverPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & PolicyContract; + +// @public +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; + +// @public +export interface GraphQLApiResolverPolicyListByResolverOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; + +// @public +export interface GraphQLApiResolverUpdateHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & ResolverContract; + // @public export interface Group { createOrUpdate(resourceGroupName: string, serviceName: string, groupId: string, parameters: GroupCreateParameters, options?: GroupCreateOrUpdateOptionalParams): Promise; @@ -3657,7 +4351,7 @@ export interface GroupCollection { } // @public -export interface GroupContract extends Resource { +export interface GroupContract extends ProxyResource { readonly builtIn?: boolean; description?: string; displayName?: string; @@ -3857,6 +4551,7 @@ export interface IdentityProvider { export interface IdentityProviderBaseParameters { allowedTenants?: string[]; authority?: string; + clientLibrary?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; signinPolicyName?: string; @@ -3866,10 +4561,11 @@ export interface IdentityProviderBaseParameters { } // @public -export interface IdentityProviderContract extends Resource { +export interface IdentityProviderContract extends ProxyResource { allowedTenants?: string[]; authority?: string; clientId?: string; + clientLibrary?: string; clientSecret?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; @@ -3886,10 +4582,11 @@ export interface IdentityProviderContractProperties extends IdentityProviderBase } // @public -export interface IdentityProviderCreateContract extends Resource { +export interface IdentityProviderCreateContract extends ProxyResource { allowedTenants?: string[]; authority?: string; clientId?: string; + clientLibrary?: string; clientSecret?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; @@ -3996,6 +4693,7 @@ export interface IdentityProviderUpdateParameters { allowedTenants?: string[]; authority?: string; clientId?: string; + clientLibrary?: string; clientSecret?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; @@ -4028,7 +4726,7 @@ export interface IssueAttachmentCollection { } // @public -export interface IssueAttachmentContract extends Resource { +export interface IssueAttachmentContract extends ProxyResource { content?: string; contentFormat?: string; title?: string; @@ -4049,14 +4747,14 @@ export interface IssueCommentCollection { } // @public -export interface IssueCommentContract extends Resource { +export interface IssueCommentContract extends ProxyResource { createdDate?: Date; text?: string; userId?: string; } // @public -export interface IssueContract extends Resource { +export interface IssueContract extends ProxyResource { apiId?: string; createdDate?: Date; description?: string; @@ -4197,6 +4895,11 @@ export enum KnownAppType { Portal = "portal" } +// @public +export enum KnownAuthorizationType { + OAuth2 = "OAuth2" +} + // @public export enum KnownBackendProtocol { Http = "http", @@ -4386,6 +5089,12 @@ export enum KnownMethod { Post = "POST" } +// @public +export enum KnownNatGatewayState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownNotificationName { AccountClosedPublisher = "AccountClosedPublisher", @@ -4397,6 +5106,12 @@ export enum KnownNotificationName { RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage" } +// @public +export enum KnownOAuth2GrantType { + AuthorizationCode = "AuthorizationCode", + ClientCredentials = "ClientCredentials" +} + // @public export enum KnownOperationNameFormat { Name = "Name", @@ -4432,6 +5147,12 @@ export enum KnownPolicyExportFormat { Xml = "xml" } +// @public +export enum KnownPolicyFragmentContentFormat { + Rawxml = "rawxml", + Xml = "xml" +} + // @public export enum KnownPolicyIdName { Policy = "policy" @@ -4445,6 +5166,13 @@ export enum KnownPortalRevisionStatus { Publishing = "publishing" } +// @public +export enum KnownPortalSettingsCspMode { + Disabled = "disabled", + Enabled = "enabled", + ReportOnly = "reportOnly" +} + // @public export enum KnownPreferredIPVersion { IPv4 = "IPv4" @@ -4553,6 +5281,12 @@ export enum KnownTemplateName { RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" } +// @public +export enum KnownTranslateRequiredQueryParametersConduct { + Query = "query", + Template = "template" +} + // @public export enum KnownUserState { Active = "active", @@ -4600,7 +5334,7 @@ export interface LoggerCollection { } // @public -export interface LoggerContract extends Resource { +export interface LoggerContract extends ProxyResource { credentials?: { [propertyName: string]: string; }; @@ -4701,11 +5435,11 @@ export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; // @public export interface NamedValue { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise, NamedValueCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise, NamedValueCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise; - beginRefreshSecret(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise, NamedValueRefreshSecretResponse>>; + beginRefreshSecret(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise, NamedValueRefreshSecretResponse>>; beginRefreshSecretAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise, NamedValueUpdateResponse>>; + beginUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise, NamedValueUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise; delete(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, options?: NamedValueDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueGetOptionalParams): Promise; @@ -4722,7 +5456,7 @@ export interface NamedValueCollection { } // @public -export interface NamedValueContract extends Resource { +export interface NamedValueContract extends ProxyResource { displayName?: string; keyVault?: KeyVaultContractProperties; secret?: boolean; @@ -4738,7 +5472,7 @@ export interface NamedValueContractProperties extends NamedValueEntityBaseParame } // @public -export interface NamedValueCreateContract extends Resource { +export interface NamedValueCreateContract extends ProxyResource { displayName?: string; keyVault?: KeyVaultContractCreateProperties; secret?: boolean; @@ -4881,6 +5615,9 @@ export interface NamedValueUpdateParameters { // @public export type NamedValueUpdateResponse = NamedValueUpdateHeaders & NamedValueContract; +// @public +export type NatGatewayState = string; + // @public export interface NetworkStatus { listByLocation(resourceGroupName: string, serviceName: string, locationName: string, options?: NetworkStatusListByLocationOptionalParams): Promise; @@ -4929,7 +5666,7 @@ export interface NotificationCollection { } // @public -export interface NotificationContract extends Resource { +export interface NotificationContract extends ProxyResource { description?: string; recipients?: RecipientsContractProperties; title?: string; @@ -5045,6 +5782,9 @@ export interface OAuth2AuthenticationSettingsContract { scope?: string; } +// @public +export type OAuth2GrantType = string; + // @public export interface OpenIdAuthenticationSettingsContract { bearerTokenSendingMethods?: BearerTokenSendingMethods[]; @@ -5070,12 +5810,14 @@ export interface OpenIdConnectProviderCollection { } // @public -export interface OpenidConnectProviderContract extends Resource { +export interface OpenidConnectProviderContract extends ProxyResource { clientId?: string; clientSecret?: string; description?: string; displayName?: string; metadataEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -5155,6 +5897,8 @@ export interface OpenidConnectProviderUpdateContract { description?: string; displayName?: string; metadataEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -5185,7 +5929,7 @@ export interface OperationCollection { } // @public -export interface OperationContract extends Resource { +export interface OperationContract extends ProxyResource { description?: string; displayName?: string; method?: string; @@ -5253,7 +5997,7 @@ export interface OperationOperations { } // @public -export interface OperationResultContract extends Resource { +export interface OperationResultContract extends ProxyResource { readonly actionLog?: OperationResultLogItemContract[]; error?: ErrorResponseBody; idPropertiesId?: string; @@ -5389,7 +6133,7 @@ export interface PolicyCollection { export type PolicyContentFormat = string; // @public -export interface PolicyContract extends Resource { +export interface PolicyContract extends ProxyResource { format?: PolicyContentFormat; value?: string; } @@ -5423,7 +6167,7 @@ export interface PolicyDescriptionCollection { } // @public -export interface PolicyDescriptionContract extends Resource { +export interface PolicyDescriptionContract extends ProxyResource { readonly description?: string; readonly scope?: number; } @@ -5439,6 +6183,98 @@ export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection // @public export type PolicyExportFormat = string; +// @public +export interface PolicyFragment { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, id: string, parameters: PolicyFragmentContract, options?: PolicyFragmentCreateOrUpdateOptionalParams): Promise, PolicyFragmentCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, id: string, parameters: PolicyFragmentContract, options?: PolicyFragmentCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, id: string, ifMatch: string, options?: PolicyFragmentDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): Promise; + listReferences(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentListReferencesOptionalParams): Promise; +} + +// @public +export interface PolicyFragmentCollection { + count?: number; + nextLink?: string; + value?: PolicyFragmentContract[]; +} + +// @public +export type PolicyFragmentContentFormat = string; + +// @public +export interface PolicyFragmentContract extends ProxyResource { + description?: string; + format?: PolicyFragmentContentFormat; + value?: string; +} + +// @public +export interface PolicyFragmentCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; + +// @public +export interface PolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PolicyFragmentGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; + +// @public +export interface PolicyFragmentGetHeaders { + eTag?: string; +} + +// @public +export interface PolicyFragmentGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyFragmentContentFormat; +} + +// @public +export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & PolicyFragmentContract; + +// @public +export interface PolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; + +// @public +export interface PolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type PolicyFragmentListReferencesResponse = ResourceCollection; + // @public export interface PolicyGetEntityTagHeaders { eTag?: string; @@ -5478,7 +6314,115 @@ export type PolicyListByServiceResponse = PolicyCollection; export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; // @public -export interface PortalDelegationSettings extends Resource { +export interface PortalConfig { + createOrUpdate(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigUpdateOptionalParams): Promise; +} + +// @public +export interface PortalConfigCollection { + readonly nextLink?: string; + value?: PortalConfigContract[]; +} + +// @public +export interface PortalConfigContract extends ProxyResource { + cors?: PortalConfigCorsProperties; + csp?: PortalConfigCspProperties; + delegation?: PortalConfigDelegationProperties; + enableBasicAuth?: boolean; + // (undocumented) + signin?: PortalConfigPropertiesSignin; + // (undocumented) + signup?: PortalConfigPropertiesSignup; +} + +// @public +export interface PortalConfigCorsProperties { + allowedOrigins?: string[]; +} + +// @public +export interface PortalConfigCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + +// @public +export interface PortalConfigCspProperties { + allowedSources?: string[]; + mode?: PortalSettingsCspMode; + reportUri?: string[]; +} + +// @public (undocumented) +export interface PortalConfigDelegationProperties { + delegateRegistration?: boolean; + delegateSubscription?: boolean; + delegationUrl?: string; + validationKey?: string; +} + +// @public +export interface PortalConfigGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PortalConfigGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; + +// @public +export interface PortalConfigGetHeaders { + eTag?: string; +} + +// @public +export interface PortalConfigGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigGetResponse = PortalConfigGetHeaders & PortalConfigContract; + +// @public +export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigListByServiceResponse = PortalConfigCollection; + +// @public (undocumented) +export interface PortalConfigPropertiesSignin { + require?: boolean; +} + +// @public (undocumented) +export interface PortalConfigPropertiesSignup { + termsOfService?: PortalConfigTermsOfServiceProperties; +} + +// @public +export interface PortalConfigTermsOfServiceProperties { + requireConsent?: boolean; + text?: string; +} + +// @public +export interface PortalConfigUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigUpdateResponse = PortalConfigContract; + +// @public +export interface PortalDelegationSettings extends ProxyResource { subscriptions?: SubscriptionsDelegationSettingsProperties; url?: string; userRegistration?: RegistrationDelegationSettingsProperties; @@ -5487,9 +6431,9 @@ export interface PortalDelegationSettings extends Resource { // @public export interface PortalRevision { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise, PortalRevisionCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise, PortalRevisionCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise, PortalRevisionUpdateResponse>>; + beginUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise, PortalRevisionUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, portalRevisionId: string, options?: PortalRevisionGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, portalRevisionId: string, options?: PortalRevisionGetEntityTagOptionalParams): Promise; @@ -5503,7 +6447,7 @@ export interface PortalRevisionCollection { } // @public -export interface PortalRevisionContract extends Resource { +export interface PortalRevisionContract extends ProxyResource { readonly createdDateTime?: Date; description?: string; isCurrent?: boolean; @@ -5596,7 +6540,7 @@ export interface PortalSettingsCollection { } // @public -export interface PortalSettingsContract extends Resource { +export interface PortalSettingsContract extends ProxyResource { enabled?: boolean; subscriptions?: SubscriptionsDelegationSettingsProperties; termsOfService?: TermsOfServiceProperties; @@ -5605,6 +6549,9 @@ export interface PortalSettingsContract extends Resource { validationKey?: string; } +// @public +export type PortalSettingsCspMode = string; + // @public export interface PortalSettingsListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -5618,12 +6565,12 @@ export interface PortalSettingValidationKeyContract { } // @public -export interface PortalSigninSettings extends Resource { +export interface PortalSigninSettings extends ProxyResource { enabled?: boolean; } // @public -export interface PortalSignupSettings extends Resource { +export interface PortalSignupSettings extends ProxyResource { enabled?: boolean; termsOfService?: TermsOfServiceProperties; } @@ -5693,9 +6640,9 @@ export interface PrivateEndpointConnectionListResult { // @public export interface PrivateEndpointConnectionOperations { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise; getByName(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionGetByNameOptionalParams): Promise; getPrivateLinkResource(resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams): Promise; @@ -5803,7 +6750,7 @@ export interface ProductCollection { } // @public -export interface ProductContract extends Resource { +export interface ProductContract extends ProxyResource { approvalRequired?: boolean; description?: string; displayName?: string; @@ -6069,9 +7016,107 @@ export interface ProductUpdateProperties extends ProductEntityBaseParameters { // @public export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; +// @public +export interface ProductWiki { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: WikiContract, options?: ProductWikiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, options?: ProductWikiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, options?: ProductWikiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, productId: string, options?: ProductWikiGetEntityTagOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, parameters: WikiUpdateContract, options?: ProductWikiUpdateOptionalParams): Promise; +} + +// @public +export interface ProductWikiCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & WikiContract; + +// @public +export interface ProductWikiDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductWikiGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; + +// @public +export interface ProductWikiGetHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; + +// @public +export interface ProductWikis { + list(resourceGroupName: string, serviceName: string, productId: string, options?: ProductWikisListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductWikisListHeaders { + eTag?: string; +} + +// @public +export interface ProductWikisListNextHeaders { + eTag?: string; +} + +// @public +export interface ProductWikisListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & WikiCollection; + +// @public +export interface ProductWikisListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; + +// @public +export interface ProductWikiUpdateHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; + // @public export type Protocol = string; +// @public +export interface ProxyResource extends Resource { +} + // @public export type PublicNetworkAccess = string; @@ -6157,7 +7202,7 @@ export interface RecipientEmailCollection { } // @public -export interface RecipientEmailContract extends Resource { +export interface RecipientEmailContract extends ProxyResource { email?: string; } @@ -6175,7 +7220,7 @@ export interface RecipientUserCollection { } // @public -export interface RecipientUserContract extends Resource { +export interface RecipientUserContract extends ProxyResource { userId?: string; } @@ -6451,6 +7496,45 @@ export interface RequestReportRecordContract { readonly userId?: string; } +// @public +export interface ResolverCollection { + count?: number; + readonly nextLink?: string; + readonly value?: ResolverContract[]; +} + +// @public +export interface ResolverContract extends ProxyResource { + description?: string; + displayName?: string; + path?: string; +} + +// @public +export interface ResolverResultContract extends ProxyResource { + readonly actionLog?: ResolverResultLogItemContract[]; + error?: ErrorResponseBody; + idPropertiesId?: string; + resultInfo?: string; + started?: Date; + status?: AsyncResolverStatus; + updated?: Date; +} + +// @public +export interface ResolverResultLogItemContract { + action?: string; + objectKey?: string; + objectType?: string; +} + +// @public +export interface ResolverUpdateContract { + description?: string; + displayName?: string; + path?: string; +} + // @public export interface Resource { readonly id?: string; @@ -6458,6 +7542,17 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceCollection { + count?: number; + nextLink?: string; + value?: ResourceCollectionValueItem[]; +} + +// @public (undocumented) +export interface ResourceCollectionValueItem extends ProxyResource { +} + // @public export interface ResourceLocationDataContract { city?: string; @@ -6526,7 +7621,7 @@ export interface SchemaCollection { } // @public -export interface SchemaContract extends Resource { +export interface SchemaContract extends ProxyResource { components?: Record; contentType?: string; definitions?: Record; @@ -6660,7 +7755,7 @@ export interface SubscriptionCollection { } // @public -export interface SubscriptionContract extends Resource { +export interface SubscriptionContract extends ProxyResource { allowTracing?: boolean; readonly createdDate?: Date; displayName?: string; @@ -6883,7 +7978,7 @@ export interface TagCollection { } // @public -export interface TagContract extends Resource { +export interface TagContract extends ProxyResource { displayName?: string; } @@ -6924,7 +8019,7 @@ export interface TagDescriptionCollection { } // @public -export interface TagDescriptionContract extends Resource { +export interface TagDescriptionContract extends ProxyResource { description?: string; displayName?: string; externalDocsDescription?: string; @@ -7291,11 +8386,11 @@ export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & AccessInfor // @public export interface TenantConfiguration { - beginDeploy(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise, TenantConfigurationDeployResponse>>; + beginDeploy(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise, TenantConfigurationDeployResponse>>; beginDeployAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise; - beginSave(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise, TenantConfigurationSaveResponse>>; + beginSave(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise, TenantConfigurationSaveResponse>>; beginSaveAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise; - beginValidate(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise, TenantConfigurationValidateResponse>>; + beginValidate(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise, TenantConfigurationValidateResponse>>; beginValidateAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise; getSyncState(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, options?: TenantConfigurationGetSyncStateOptionalParams): Promise; } @@ -7326,7 +8421,7 @@ export interface TenantConfigurationSaveOptionalParams extends coreClient.Operat export type TenantConfigurationSaveResponse = OperationResultContract; // @public -export interface TenantConfigurationSyncStateContract extends Resource { +export interface TenantConfigurationSyncStateContract extends ProxyResource { branch?: string; commitId?: string; configurationChangeDate?: Date; @@ -7359,7 +8454,7 @@ export interface TenantSettingsCollection { } // @public -export interface TenantSettingsContract extends Resource { +export interface TenantSettingsContract extends ProxyResource { settings?: { [propertyName: string]: string; }; @@ -7405,6 +8500,9 @@ export interface TokenBodyParameterContract { value: string; } +// @public +export type TranslateRequiredQueryParametersConduct = string; + // @public export interface User { createOrUpdate(resourceGroupName: string, serviceName: string, userId: string, parameters: UserCreateParameters, options?: UserCreateOrUpdateOptionalParams): Promise; @@ -7435,7 +8533,7 @@ export interface UserConfirmationPasswordSendOptionalParams extends coreClient.O } // @public -export interface UserContract extends Resource { +export interface UserContract extends ProxyResource { email?: string; firstName?: string; readonly groups?: GroupContractProperties[]; @@ -7718,6 +8816,27 @@ export interface VirtualNetworkConfiguration { // @public export type VirtualNetworkType = string; +// @public +export interface WikiCollection { + readonly nextLink?: string; + readonly value?: WikiContract[]; +} + +// @public +export interface WikiContract extends ProxyResource { + documents?: WikiDocumentationContract[]; +} + +// @public +export interface WikiDocumentationContract { + documentationId?: string; +} + +// @public +export interface WikiUpdateContract { + documents?: WikiDocumentationContract[]; +} + // @public export interface X509CertificateName { issuerCertificateThumbprint?: string; diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiCreateOrUpdateSample.ts index 4028f5841ca1..c925ab438886 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApi.json */ async function apiManagementCreateApi() { const subscriptionId = @@ -59,7 +59,7 @@ async function apiManagementCreateApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiClone.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiClone.json */ async function apiManagementCreateApiClone() { const subscriptionId = @@ -94,7 +94,7 @@ async function apiManagementCreateApiClone() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiNewVersionUsingExistingApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiNewVersionUsingExistingApi.json */ async function apiManagementCreateApiNewVersionUsingExistingApi() { const subscriptionId = @@ -133,7 +133,7 @@ async function apiManagementCreateApiNewVersionUsingExistingApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiRevisionFromExistingApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiRevisionFromExistingApi.json */ async function apiManagementCreateApiRevisionFromExistingApi() { const subscriptionId = @@ -164,7 +164,7 @@ async function apiManagementCreateApiRevisionFromExistingApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json */ async function apiManagementCreateApiUsingImportOverrideServiceUrl() { const subscriptionId = @@ -194,7 +194,7 @@ async function apiManagementCreateApiUsingImportOverrideServiceUrl() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingOai3Import.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingOai3Import.json */ async function apiManagementCreateApiUsingOai3Import() { const subscriptionId = @@ -224,7 +224,38 @@ async function apiManagementCreateApiUsingOai3Import() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingSwaggerImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct.json + */ +async function apiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "petstore"; + const parameters: ApiCreateOrUpdateParameter = { + format: "openapi-link", + path: "petstore", + translateRequiredQueryParametersConduct: "template", + value: + "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.api.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. + * + * @summary Creates new or updates existing specified API of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingSwaggerImport.json */ async function apiManagementCreateApiUsingSwaggerImport() { const subscriptionId = @@ -253,7 +284,7 @@ async function apiManagementCreateApiUsingSwaggerImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingWadlImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingWadlImport.json */ async function apiManagementCreateApiUsingWadlImport() { const subscriptionId = @@ -283,7 +314,95 @@ async function apiManagementCreateApiUsingWadlImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiWithOpenIdConnect.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWithMultipleAuthServers.json + */ +async function apiManagementCreateApiWithMultipleAuthServers() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "tempgroup"; + const parameters: ApiCreateOrUpdateParameter = { + path: "newapiPath", + description: "apidescription5200", + authenticationSettings: { + oAuth2AuthenticationSettings: [ + { + authorizationServerId: "authorizationServerId2283", + scope: "oauth2scope2580" + }, + { + authorizationServerId: "authorizationServerId2284", + scope: "oauth2scope2581" + } + ] + }, + displayName: "apiname1463", + protocols: ["https", "http"], + serviceUrl: "http://newechoapi.cloudapp.net/api", + subscriptionKeyParameterNames: { header: "header4520", query: "query3037" } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.api.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. + * + * @summary Creates new or updates existing specified API of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWithMultipleOpenIdConnectProviders.json + */ +async function apiManagementCreateApiWithMultipleOpenIdConnectProviders() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "tempgroup"; + const parameters: ApiCreateOrUpdateParameter = { + path: "newapiPath", + description: "apidescription5200", + authenticationSettings: { + openidAuthenticationSettings: [ + { + bearerTokenSendingMethods: ["authorizationHeader"], + openidProviderId: "openidProviderId2283" + }, + { + bearerTokenSendingMethods: ["authorizationHeader"], + openidProviderId: "openidProviderId2284" + } + ] + }, + displayName: "apiname1463", + protocols: ["https", "http"], + serviceUrl: "http://newechoapi.cloudapp.net/api", + subscriptionKeyParameterNames: { header: "header4520", query: "query3037" } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.api.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. + * + * @summary Creates new or updates existing specified API of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWithOpenIdConnect.json */ async function apiManagementCreateApiWithOpenIdConnect() { const subscriptionId = @@ -325,7 +444,7 @@ async function apiManagementCreateApiWithOpenIdConnect() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGraphQLApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApi.json */ async function apiManagementCreateGraphQlApi() { const subscriptionId = @@ -357,7 +476,7 @@ async function apiManagementCreateGraphQlApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSoapPassThroughApiUsingWsdlImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSoapPassThroughApiUsingWsdlImport.json */ async function apiManagementCreateSoapPassThroughApiUsingWsdlImport() { const subscriptionId = @@ -391,7 +510,7 @@ async function apiManagementCreateSoapPassThroughApiUsingWsdlImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSoapToRestApiUsingWsdlImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSoapToRestApiUsingWsdlImport.json */ async function apiManagementCreateSoapToRestApiUsingWsdlImport() { const subscriptionId = @@ -424,7 +543,7 @@ async function apiManagementCreateSoapToRestApiUsingWsdlImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateWebsocketApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateWebsocketApi.json */ async function apiManagementCreateWebSocketApi() { const subscriptionId = @@ -459,8 +578,11 @@ async function main() { apiManagementCreateApiRevisionFromExistingApi(); apiManagementCreateApiUsingImportOverrideServiceUrl(); apiManagementCreateApiUsingOai3Import(); + apiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct(); apiManagementCreateApiUsingSwaggerImport(); apiManagementCreateApiUsingWadlImport(); + apiManagementCreateApiWithMultipleAuthServers(); + apiManagementCreateApiWithMultipleOpenIdConnectProviders(); apiManagementCreateApiWithOpenIdConnect(); apiManagementCreateGraphQlApi(); apiManagementCreateSoapPassThroughApiUsingWsdlImport(); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDeleteSample.ts index 853c62bcc9b0..bce9734c0807 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified API of the API Management service instance. * * @summary Deletes the specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApi.json */ async function apiManagementDeleteApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticCreateOrUpdateSample.ts index 6410cf83a0e8..bb786b3e0770 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Diagnostic for an API or updates an existing one. * * @summary Creates a new Diagnostic for an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiDiagnostic.json */ async function apiManagementCreateApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticDeleteSample.ts index 9d91a18f872c..3c10221ab17f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Diagnostic from an API. * * @summary Deletes the specified Diagnostic from an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiDiagnostic.json */ async function apiManagementDeleteApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticGetEntityTagSample.ts index 71d346fd685c..fee3ff7ccecc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiDiagnostic.json */ async function apiManagementHeadApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticGetSample.ts index 7d68179b5ceb..b7c47ea2ae7a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Diagnostic for an API specified by its identifier. * * @summary Gets the details of the Diagnostic for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiDiagnostic.json */ async function apiManagementGetApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticListByServiceSample.ts index 654ec82611f2..1e3cf1eb81f3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all diagnostics of an API. * * @summary Lists all diagnostics of an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiDiagnostics.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiDiagnostics.json */ async function apiManagementListApiDiagnostics() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticUpdateSample.ts index fbfa92fc5500..98db9f1389bd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiDiagnosticUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the Diagnostic for an API specified by its identifier. * * @summary Updates the details of the Diagnostic for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiDiagnostic.json */ async function apiManagementUpdateApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiExportGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiExportGetSample.ts index 73abdc0d8b0c..0bc983750541 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiExportGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiExportGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to 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. * * @summary 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. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json */ async function apiManagementGetApiExportInOpenApi2Dot0() { const subscriptionId = @@ -45,7 +45,7 @@ async function apiManagementGetApiExportInOpenApi2Dot0() { * This sample demonstrates how to 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. * * @summary 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. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiExportInOpenApi3dot0.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiExportInOpenApi3dot0.json */ async function apiManagementGetApiExportInOpenApi3Dot0() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiGetEntityTagSample.ts index 170b311d7b44..2b95bbce1f20 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API specified by its identifier. * * @summary Gets the entity state (Etag) version of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApi.json */ async function apiManagementHeadApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiGetSample.ts index 68bb7247f12d..6be69f527b3f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the API specified by its identifier. * * @summary Gets the details of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiContract.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiContract.json */ async function apiManagementGetApiContract() { const subscriptionId = @@ -37,7 +37,7 @@ async function apiManagementGetApiContract() { * This sample demonstrates how to Gets the details of the API specified by its identifier. * * @summary Gets the details of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiRevision.json */ async function apiManagementGetApiRevisionContract() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentCreateOrUpdateSample.ts index eb319dbc8eb7..cbe5617fbf06 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Attachment for the Issue in an API or updates an existing one. * * @summary Creates a new Attachment for the Issue in an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueAttachment.json */ async function apiManagementCreateApiIssueAttachment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentDeleteSample.ts index bcc7b2ca31c1..fbfe39d80766 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified comment from an Issue. * * @summary Deletes the specified comment from an Issue. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueAttachment.json */ async function apiManagementDeleteApiIssueAttachment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentGetEntityTagSample.ts index 3b85e72ad948..2c4e90eb568f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueAttachment.json */ async function apiManagementHeadApiIssueAttachment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentGetSample.ts index d21a7c54c766..0d908d111952 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the issue Attachment for an API specified by its identifier. * * @summary Gets the details of the issue Attachment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueAttachment.json */ async function apiManagementGetApiIssueAttachment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentListByServiceSample.ts index 114d92af8daa..ee061f31375f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueAttachmentListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all attachments for the Issue associated with the specified API. * * @summary Lists all attachments for the Issue associated with the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueAttachments.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueAttachments.json */ async function apiManagementListApiIssueAttachments() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentCreateOrUpdateSample.ts index f190ae962be2..32936cb7b1cc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Comment for the Issue in an API or updates an existing one. * * @summary Creates a new Comment for the Issue in an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueComment.json */ async function apiManagementCreateApiIssueComment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentDeleteSample.ts index 639d47fbf60b..834fcd9846b3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified comment from an Issue. * * @summary Deletes the specified comment from an Issue. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueComment.json */ async function apiManagementDeleteApiIssueComment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentGetEntityTagSample.ts index 0bfac29708eb..cf361ab2bf4a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueComment.json */ async function apiManagementHeadApiIssueComment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentGetSample.ts index d4ce5e2674f1..a653c91031fc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the issue Comment for an API specified by its identifier. * * @summary Gets the details of the issue Comment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueComment.json */ async function apiManagementGetApiIssueComment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentListByServiceSample.ts index 73690d83262d..0f707b25fdc6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCommentListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all comments for the Issue associated with the specified API. * * @summary Lists all comments for the Issue associated with the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueComments.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueComments.json */ async function apiManagementListApiIssueComments() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCreateOrUpdateSample.ts index d533ef5268b0..17118262adfb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Issue for an API or updates an existing one. * * @summary Creates a new Issue for an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssue.json */ async function apiManagementCreateApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueDeleteSample.ts index 9bdfd51d4398..62947660fdae 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Issue from an API. * * @summary Deletes the specified Issue from an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssue.json */ async function apiManagementDeleteApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueGetEntityTagSample.ts index 345cddbf97ec..9a4b143c4da3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Issue for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the Issue for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssue.json */ async function apiManagementHeadApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueGetSample.ts index 461e4417197a..b806298655a6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Issue for an API specified by its identifier. * * @summary Gets the details of the Issue for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssue.json */ async function apiManagementGetApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueListByServiceSample.ts index 3c6136945f91..e40ae7fd2e07 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all issues associated with the specified API. * * @summary Lists all issues associated with the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssues.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssues.json */ async function apiManagementListApiIssues() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueUpdateSample.ts index 757d69873cc4..25a011cbee75 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiIssueUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing issue for an API. * * @summary Updates an existing issue for an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiIssue.json */ async function apiManagementUpdateApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiListByServiceSample.ts index 8959cde5dda0..e1d94d424419 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all APIs of the API Management service instance. * * @summary Lists all APIs of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApis.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApis.json */ async function apiManagementListApis() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiListByTagsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiListByTagsSample.ts index 672872a1e86d..8a067b4d7eff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiListByTagsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiListByTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of apis associated with tags. * * @summary Lists a collection of apis associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApisByTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApisByTags.json */ async function apiManagementListApisByTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementOperationsListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementOperationsListSample.ts index 96000e400796..75c47d43d0ff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementOperationsListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementOperationsListSample.ts @@ -18,14 +18,11 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.ApiManagement provider. * * @summary Lists all of the available REST API operations of the Microsoft.ApiManagement provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOperations.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOperations.json */ async function apiManagementListOperations() { - const subscriptionId = - process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); - const client = new ApiManagementClient(credential, subscriptionId); + const client = new ApiManagementClient(credential); const resArray = new Array(); for await (let item of client.apiManagementOperations.list()) { resArray.push(item); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts index 723442d8fc07..dfd4316b30c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. * * @summary Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json */ async function apiManagementApplyNetworkConfigurationUpdates() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceBackupSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceBackupSample.ts index 9257a8af819a..b03c356fdfc1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceBackupSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceBackupSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. * * @summary Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithAccessKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithAccessKey.json */ async function apiManagementBackupWithAccessKey() { const subscriptionId = @@ -50,7 +50,7 @@ async function apiManagementBackupWithAccessKey() { * This sample demonstrates how to Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. * * @summary Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithSystemManagedIdentity.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithSystemManagedIdentity.json */ async function apiManagementBackupWithSystemManagedIdentity() { const subscriptionId = @@ -78,7 +78,7 @@ async function apiManagementBackupWithSystemManagedIdentity() { * This sample demonstrates how to Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. * * @summary Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithUserAssignedManagedIdentity.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithUserAssignedManagedIdentity.json */ async function apiManagementBackupWithUserAssignedManagedIdentity() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceCheckNameAvailabilitySample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceCheckNameAvailabilitySample.ts index 3fa2fb20c02a..1a25f9a44a64 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceCheckNameAvailabilitySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceCheckNameAvailabilitySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks availability and correctness of a name for an API Management service. * * @summary Checks availability and correctness of a name for an API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceCheckNameAvailability.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceCheckNameAvailability.json */ async function apiManagementServiceCheckNameAvailability() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceCreateOrUpdateSample.ts index 9beb8bdbd8fb..5f7ab735d7d9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json */ async function apiManagementCreateMultiRegionServiceWithCustomHostname() { const subscriptionId = @@ -80,7 +80,7 @@ async function apiManagementCreateMultiRegionServiceWithCustomHostname() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateService.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateService.json */ async function apiManagementCreateService() { const subscriptionId = @@ -109,7 +109,7 @@ async function apiManagementCreateService() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceHavingMsi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceHavingMsi.json */ async function apiManagementCreateServiceHavingMsi() { const subscriptionId = @@ -139,7 +139,7 @@ async function apiManagementCreateServiceHavingMsi() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceInVnetWithPublicIP.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceInVnetWithPublicIP.json */ async function apiManagementCreateServiceInVnetWithPublicIP() { const subscriptionId = @@ -176,7 +176,7 @@ async function apiManagementCreateServiceInVnetWithPublicIP() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceInZones.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceInZones.json */ async function apiManagementCreateServiceInZones() { const subscriptionId = @@ -206,7 +206,7 @@ async function apiManagementCreateServiceInZones() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceWithCustomHostnameKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithCustomHostnameKeyVault.json */ async function apiManagementCreateServiceWithCustomHostnameKeyVault() { const subscriptionId = @@ -267,7 +267,37 @@ async function apiManagementCreateServiceWithCustomHostnameKeyVault() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceWithSystemCertificates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithNatGatewayEnabled.json + */ +async function apiManagementCreateServiceWithNatGatewayEnabled() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const parameters: ApiManagementServiceResource = { + location: "East US", + natGatewayState: "Enabled", + publisherEmail: "apim@autorestsdk.com", + publisherName: "autorestsdk", + sku: { name: "Premium", capacity: 1 }, + tags: { tag1: "value1", tag2: "value2", tag3: "value3" } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiManagementService.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. + * + * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithSystemCertificates.json */ async function apiManagementCreateServiceWithSystemCertificates() { const subscriptionId = @@ -304,7 +334,7 @@ async function apiManagementCreateServiceWithSystemCertificates() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceWithUserAssignedIdentity.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithUserAssignedIdentity.json */ async function apiManagementCreateServiceWithUserAssignedIdentity() { const subscriptionId = @@ -339,7 +369,7 @@ async function apiManagementCreateServiceWithUserAssignedIdentity() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUndelete.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUndelete.json */ async function apiManagementUndelete() { const subscriptionId = @@ -371,6 +401,7 @@ async function main() { apiManagementCreateServiceInVnetWithPublicIP(); apiManagementCreateServiceInZones(); apiManagementCreateServiceWithCustomHostnameKeyVault(); + apiManagementCreateServiceWithNatGatewayEnabled(); apiManagementCreateServiceWithSystemCertificates(); apiManagementCreateServiceWithUserAssignedIdentity(); apiManagementUndelete(); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceDeleteSample.ts index 1a4d99174d2f..dfd1f991b2c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing API Management service. * * @summary Deletes an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceDeleteService.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceDeleteService.json */ async function apiManagementServiceDeleteService() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetDomainOwnershipIdentifierSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetDomainOwnershipIdentifierSample.ts index 572a65c4d7d6..8397ca8c3e72 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetDomainOwnershipIdentifierSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetDomainOwnershipIdentifierSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the custom domain ownership identifier for an API Management service. * * @summary Get the custom domain ownership identifier for an API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json */ async function apiManagementServiceGetDomainOwnershipIdentifier() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetSample.ts index f9a924d27d5d..7163797c6d8d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets an API Management service resource description. * * @summary Gets an API Management service resource description. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json */ async function apiManagementServiceGetMultiRegionInternalVnet() { const subscriptionId = @@ -39,7 +39,7 @@ async function apiManagementServiceGetMultiRegionInternalVnet() { * This sample demonstrates how to Gets an API Management service resource description. * * @summary Gets an API Management service resource description. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetService.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetService.json */ async function apiManagementServiceGetService() { const subscriptionId = @@ -60,7 +60,7 @@ async function apiManagementServiceGetService() { * This sample demonstrates how to Gets an API Management service resource description. * * @summary Gets an API Management service resource description. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetServiceHavingMsi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetServiceHavingMsi.json */ async function apiManagementServiceGetServiceHavingMsi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetSsoTokenSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetSsoTokenSample.ts index 11f698146458..5b7a9b85fd34 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetSsoTokenSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceGetSsoTokenSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. * * @summary Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetSsoToken.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetSsoToken.json */ async function apiManagementServiceGetSsoToken() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceListByResourceGroupSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceListByResourceGroupSample.ts index 101b4ab52647..68347b154435 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceListByResourceGroupSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all API Management services within a resource group. * * @summary List all API Management services within a resource group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json */ async function apiManagementListServiceBySubscriptionAndResourceGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceListSample.ts index 109f01778b5a..dae98cd98de7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all API Management services within an Azure subscription. * * @summary Lists all API Management services within an Azure subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscription.json */ async function apiManagementListServiceBySubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceMigrateToStv2Sample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceMigrateToStv2Sample.ts new file mode 100644 index 000000000000..12b4f998926b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceMigrateToStv2Sample.ts @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete. + * + * @summary Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceMigrateToStv2.json + */ +async function apiManagementMigrateService() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiManagementService.beginMigrateToStv2AndWait( + resourceGroupName, + serviceName + ); + console.log(result); +} + +async function main() { + apiManagementMigrateService(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceRestoreSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceRestoreSample.ts index 79f7a2e7419b..d74b73856aad 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceRestoreSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceRestoreSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. * * @summary Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRestoreWithAccessKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRestoreWithAccessKey.json */ async function apiManagementRestoreService() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceSkusListAvailableServiceSkusSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceSkusListAvailableServiceSkusSample.ts index 6a2531c7c713..7e0ad8f9d06f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceSkusListAvailableServiceSkusSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceSkusListAvailableServiceSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all available SKU for a given API Management service * * @summary Gets all available SKU for a given API Management service - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSKUs-Consumption.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSKUs-Consumption.json */ async function apiManagementListSkUsConsumption() { const subscriptionId = @@ -42,7 +42,7 @@ async function apiManagementListSkUsConsumption() { * This sample demonstrates how to Gets all available SKU for a given API Management service * * @summary Gets all available SKU for a given API Management service - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSKUs-Dedicated.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSKUs-Dedicated.json */ async function apiManagementListSkUsDedicated() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceUpdateSample.ts index 69023ab24d77..ea2ec6b8aad9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementServiceUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing API Management service. * * @summary Updates an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServiceDisableTls10.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServiceDisableTls10.json */ async function apiManagementUpdateServiceDisableTls10() { const subscriptionId = @@ -48,7 +48,7 @@ async function apiManagementUpdateServiceDisableTls10() { * This sample demonstrates how to Updates an existing API Management service. * * @summary Updates an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServicePublisherDetails.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServicePublisherDetails.json */ async function apiManagementUpdateServicePublisherDetails() { const subscriptionId = @@ -74,7 +74,7 @@ async function apiManagementUpdateServicePublisherDetails() { * This sample demonstrates how to Updates an existing API Management service. * * @summary Updates an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServiceToNewVnetAndAZs.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServiceToNewVnetAndAZs.json */ async function apiManagementUpdateServiceToNewVnetAndAvailabilityZones() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementSkusListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementSkusListSample.ts index a58f24d92378..7e31e185e783 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementSkusListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiManagementSkusListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. * * @summary Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSku.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSku.json */ async function listsAllAvailableResourceSkUs() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationCreateOrUpdateSample.ts index 04171fe3d5e0..57ddd217eb6b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new operation in the API or updates an existing one. * * @summary Creates a new operation in the API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperation.json */ async function apiManagementCreateApiOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationDeleteSample.ts index 8183c18aa4f7..d414082a183c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified operation in the API. * * @summary Deletes the specified operation in the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperation.json */ async function apiManagementDeleteApiOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationGetEntityTagSample.ts index f450215237e8..3cebed551155 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API operation specified by its identifier. * * @summary Gets the entity state (Etag) version of the API operation specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperation.json */ async function apiManagementHeadApiOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationGetSample.ts index deee94efba9d..10b16a1eceeb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the API Operation specified by its identifier. * * @summary Gets the details of the API Operation specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperation.json */ async function apiManagementGetApiOperation() { const subscriptionId = @@ -43,7 +43,7 @@ async function apiManagementGetApiOperation() { * This sample demonstrates how to Gets the details of the API Operation specified by its identifier. * * @summary Gets the details of the API Operation specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationPetStore.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationPetStore.json */ async function apiManagementGetApiOperationPetStore() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationListByApiSample.ts index 02db19bfe785..67fec5856be7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of the operations for the specified API. * * @summary Lists a collection of the operations for the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperations.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperations.json */ async function apiManagementListApiOperations() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyCreateOrUpdateSample.ts index 556fb03c0f5f..97461f9f8ac8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates policy configuration for the API Operation level. * * @summary Creates or updates policy configuration for the API Operation level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationPolicy.json */ async function apiManagementCreateApiOperationPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyDeleteSample.ts index d49e4a9e6718..4478ff0fa99a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the policy configuration at the Api Operation. * * @summary Deletes the policy configuration at the Api Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationPolicy.json */ async function apiManagementDeleteApiOperationPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyGetEntityTagSample.ts index 5b47327c5e9a..5bc3e6ddd58e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API operation policy specified by its identifier. * * @summary Gets the entity state (Etag) version of the API operation policy specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationPolicy.json */ async function apiManagementHeadApiOperationPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyGetSample.ts index 7c385c04a729..cab61e48b966 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the API Operation level. * * @summary Get the policy configuration at the API Operation level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationPolicy.json */ async function apiManagementGetApiOperationPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyListByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyListByOperationSample.ts index 539890c84317..aa843602a285 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyListByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationPolicyListByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the list of policy configuration at the API Operation level. * * @summary Get the list of policy configuration at the API Operation level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationPolicies.json */ async function apiManagementListApiOperationPolicies() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationUpdateSample.ts index e86da23b278c..0f79451fcfb9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiOperationUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the operation in the API specified by its identifier. * * @summary Updates the details of the operation in the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiOperation.json */ async function apiManagementUpdateApiOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyCreateOrUpdateSample.ts index fdfecd866369..fa605ca9b679 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates policy configuration for the API. * * @summary Creates or updates policy configuration for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiPolicy.json */ async function apiManagementCreateApiPolicy() { const subscriptionId = @@ -56,7 +56,7 @@ async function apiManagementCreateApiPolicy() { * This sample demonstrates how to Creates or updates policy configuration for the API. * * @summary Creates or updates policy configuration for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiPolicyNonXmlEncoded.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiPolicyNonXmlEncoded.json */ async function apiManagementCreateApiPolicyNonXmlEncoded() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyDeleteSample.ts index 6ead1ef8a96a..d129e7c63897 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the policy configuration at the Api. * * @summary Deletes the policy configuration at the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiPolicy.json */ async function apiManagementDeleteApiPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyGetEntityTagSample.ts index 7e1fd19da684..65d78626c8c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API policy specified by its identifier. * * @summary Gets the entity state (Etag) version of the API policy specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiPolicy.json */ async function apiManagementHeadApiPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyGetSample.ts index 6de85bd5a316..144ec3c40c84 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the API level. * * @summary Get the policy configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiPolicy.json */ async function apiManagementGetApiPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyListByApiSample.ts index 96dd1a33f253..288412e2c710 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiPolicyListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the API level. * * @summary Get the policy configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiPolicies.json */ async function apiManagementListApiPolicies() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiProductListByApisSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiProductListByApisSample.ts index 8d5c83c65278..d318b1473b02 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiProductListByApisSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiProductListByApisSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Products, which the API is part of. * * @summary Lists all Products, which the API is part of. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiProducts.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiProducts.json */ async function apiManagementListApiProducts() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseCreateOrUpdateSample.ts index 781b9055b8e2..cb79c7d8ac65 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Release for the API. * * @summary Creates a new Release for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiRelease.json */ async function apiManagementCreateApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseDeleteSample.ts index ee4111b577f1..5632e6d7ca5f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified release in the API. * * @summary Deletes the specified release in the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiRelease.json */ async function apiManagementDeleteApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseGetEntityTagSample.ts index 63606843f8b6..22a8e6432079 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the etag of an API release. * * @summary Returns the etag of an API release. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiRelease.json */ async function apiManagementHeadApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseGetSample.ts index b231014dc5b9..910b9cc7aa94 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the details of an API release. * * @summary Returns the details of an API release. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiRelease.json */ async function apiManagementGetApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseListByServiceSample.ts index 5ff069871a18..8d7992118402 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to 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. * * @summary 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. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiReleases.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiReleases.json */ async function apiManagementListApiReleases() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseUpdateSample.ts index f898d4521bcf..36d6b1ea7b60 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiReleaseUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the release of the API specified by its identifier. * * @summary Updates the details of the release of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiRelease.json */ async function apiManagementUpdateApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiRevisionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiRevisionListByServiceSample.ts index 99ab1bfe488e..369b6861fae5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiRevisionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiRevisionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all revisions of an API. * * @summary Lists all revisions of an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiRevisions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiRevisions.json */ async function apiManagementListApiRevisions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaCreateOrUpdateSample.ts index 1b7505f87dcd..e83665edc36a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates schema configuration for the API. * * @summary Creates or updates schema configuration for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiSchema.json */ async function apiManagementCreateApiSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaDeleteSample.ts index e00f4df0b49c..e3295239b6d1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the schema configuration at the Api. * * @summary Deletes the schema configuration at the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiSchema.json */ async function apiManagementDeleteApiSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaGetEntityTagSample.ts index a2e33f88596f..152d4181d025 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the schema specified by its identifier. * * @summary Gets the entity state (Etag) version of the schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiSchema.json */ async function apiManagementHeadApiSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaGetSample.ts index d6d82ae3719d..0c9e2208fe4e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the schema configuration at the API level. * * @summary Get the schema configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiSchema.json */ async function apiManagementGetApiSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaListByApiSample.ts index fb10c26504a3..b82721c480f1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiSchemaListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the schema configuration at the API level. * * @summary Get the schema configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiSchemas.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiSchemas.json */ async function apiManagementListApiSchemas() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionCreateOrUpdateSample.ts index 51412c8e65fe..a47471031228 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create/Update tag description in scope of the Api. * * @summary Create/Update tag description in scope of the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTagDescription.json */ async function apiManagementCreateApiTagDescription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionDeleteSample.ts index eb7a286f0542..bb648aafb5be 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete tag description for the Api. * * @summary Delete tag description for the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTagDescription.json */ async function apiManagementDeleteApiTagDescription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionGetEntityTagSample.ts index 07855be1c2dc..da9fc62a5c2a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTagDescription.json */ async function apiManagementHeadApiTagDescription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionGetSample.ts index 9333acf1f921..afe59cf901ea 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get Tag description in scope of API * * @summary Get Tag description in scope of API - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTagDescription.json */ async function apiManagementGetApiTagDescription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionListByServiceSample.ts index 78af012665e6..87dc8f957b82 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiTagDescriptionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations * * @summary Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTagDescriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTagDescriptions.json */ async function apiManagementListApiTagDescriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiUpdateSample.ts index 2c3636001a49..452f2a8c93fc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the specified API of the API Management service instance. * * @summary Updates the specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApi.json */ async function apiManagementUpdateApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetCreateOrUpdateSample.ts index 9cee55290f9a..e99607ed0708 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a Api Version Set. * * @summary Creates or Updates a Api Version Set. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiVersionSet.json */ async function apiManagementCreateApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetDeleteSample.ts index 1d540fa25678..1b5131200550 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific Api Version Set. * * @summary Deletes specific Api Version Set. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiVersionSet.json */ async function apiManagementDeleteApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetGetEntityTagSample.ts index 7422d34157ee..a13138798b8a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Api Version Set specified by its identifier. * * @summary Gets the entity state (Etag) version of the Api Version Set specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiVersionSet.json */ async function apiManagementHeadApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetGetSample.ts index d413656cfebd..3c18cf6498b8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Api Version Set specified by its identifier. * * @summary Gets the details of the Api Version Set specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiVersionSet.json */ async function apiManagementGetApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetListByServiceSample.ts index e02aec48f348..e69cc77fbc18 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of API Version Sets in the specified service instance. * * @summary Lists a collection of API Version Sets in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiVersionSets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiVersionSets.json */ async function apiManagementListApiVersionSets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetUpdateSample.ts index df3880c81724..f24581aaafc9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiVersionSetUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the Api VersionSet specified by its identifier. * * @summary Updates the details of the Api VersionSet specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiVersionSet.json */ async function apiManagementUpdateApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiCreateOrUpdateSample.ts new file mode 100644 index 000000000000..ff3225655428 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiCreateOrUpdateSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { WikiContract, ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a new Wiki for an API or updates an existing one. + * + * @summary Creates a new Wiki for an API or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWiki.json + */ +async function apiManagementCreateApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const parameters: WikiContract = { + documents: [{ documentationId: "docId1" }, { documentationId: "docId2" }] + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.createOrUpdate( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiDeleteSample.ts new file mode 100644 index 000000000000..6264ade4faf7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified Wiki from an API. + * + * @summary Deletes the specified Wiki from an API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiWiki.json + */ +async function apiManagementDeleteApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.delete( + resourceGroupName, + serviceName, + apiId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiGetEntityTagSample.ts new file mode 100644 index 000000000000..0357a5166461 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiWiki.json + */ +async function apiManagementHeadApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.getEntityTag( + resourceGroupName, + serviceName, + apiId + ); + console.log(result); +} + +async function main() { + apiManagementHeadApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiGetSample.ts new file mode 100644 index 000000000000..359249679756 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the Wiki for an API specified by its identifier. + * + * @summary Gets the details of the Wiki for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiWiki.json + */ +async function apiManagementGetApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.get( + resourceGroupName, + serviceName, + apiId + ); + console.log(result); +} + +async function main() { + apiManagementGetApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiUpdateSample.ts new file mode 100644 index 000000000000..0e9975b5e0ed --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikiUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + WikiUpdateContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the details of the Wiki for an API specified by its identifier. + * + * @summary Updates the details of the Wiki for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiWiki.json + */ +async function apiManagementUpdateApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const parameters: WikiUpdateContract = { + documents: [{ documentationId: "docId1" }] + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.update( + resourceGroupName, + serviceName, + apiId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikisListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikisListSample.ts new file mode 100644 index 000000000000..8fabc4f2fdfc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/apiWikisListSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the wikis for an API specified by its identifier. + * + * @summary Gets the wikis for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiWikis.json + */ +async function apiManagementListApiWikis() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.apiWikis.list( + resourceGroupName, + serviceName, + apiId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListApiWikis(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyCreateOrUpdateSample.ts new file mode 100644 index 000000000000..bbad6c195ebc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyCreateOrUpdateSample.ts @@ -0,0 +1,56 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationAccessPolicyContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates Authorization Access Policy. + * + * @summary Creates or updates Authorization Access Policy. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAccessPolicy.json + */ +async function apiManagementCreateAuthorizationAccessPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const authorizationAccessPolicyId = "fe0bed83-631f-4149-bd0b-0464b1bc7cab"; + const parameters: AuthorizationAccessPolicyContract = { + objectId: "fe0bed83-631f-4149-bd0b-0464b1bc7cab", + tenantId: "13932a0d-5c63-4d37-901d-1df9c97722ff" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationAccessPolicy.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateAuthorizationAccessPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyDeleteSample.ts new file mode 100644 index 000000000000..96e976d1186f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyDeleteSample.ts @@ -0,0 +1,50 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes specific access policy from the Authorization. + * + * @summary Deletes specific access policy from the Authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationAccessPolicy.json + */ +async function apiManagementDeleteAuthorizationAccessPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const authorizationAccessPolicyId = "fe0bed83-631f-4149-bd0b-0464b1bc7cab"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationAccessPolicy.delete( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteAuthorizationAccessPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyGetSample.ts new file mode 100644 index 000000000000..fe3c3e9890dd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyGetSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the authorization access policy specified by its identifier. + * + * @summary Gets the details of the authorization access policy specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationAccessPolicy.json + */ +async function apiManagementGetAuthorizationAccessPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const authorizationAccessPolicyId = "fe0bed83-631f-4149-bd0b-0464b1bc7cab"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationAccessPolicy.get( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorizationAccessPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyListByAuthorizationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyListByAuthorizationSample.ts new file mode 100644 index 000000000000..c09bd1ad1709 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationAccessPolicyListByAuthorizationSample.ts @@ -0,0 +1,49 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists a collection of authorization access policy defined within a authorization. + * + * @summary Lists a collection of authorization access policy defined within a authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationAccessPolicies.json + */ +async function apiManagementListAuthorizationAccessPolicies() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorizationAccessPolicy.listByAuthorization( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListAuthorizationAccessPolicies(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationConfirmConsentCodeSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationConfirmConsentCodeSample.ts new file mode 100644 index 000000000000..547d469315fa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationConfirmConsentCodeSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationConfirmConsentCodeRequestContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Confirm valid consent code to suppress Authorizations anti-phishing page. + * + * @summary Confirm valid consent code to suppress Authorizations anti-phishing page. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPostAuthorizationConfirmConsentCodeRequest.json + */ +async function apiManagementPostAuthorizationConfirmConsentCodeRequest() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const parameters: AuthorizationConfirmConsentCodeRequestContract = { + consentCode: "theconsentcode" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.confirmConsentCode( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementPostAuthorizationConfirmConsentCodeRequest(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationCreateOrUpdateSample.ts new file mode 100644 index 000000000000..1a82f36465af --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationCreateOrUpdateSample.ts @@ -0,0 +1,89 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates authorization. + * + * @summary Creates or updates authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAADAuthCode.json + */ +async function apiManagementCreateAuthorizationAadAuthCode() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz2"; + const parameters: AuthorizationContract = { + authorizationType: "OAuth2", + oAuth2GrantType: "AuthorizationCode" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization. + * + * @summary Creates or updates authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAADClientCred.json + */ +async function apiManagementCreateAuthorizationAadClientCred() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithclientcred"; + const authorizationId = "authz1"; + const parameters: AuthorizationContract = { + authorizationType: "OAuth2", + oAuth2GrantType: "AuthorizationCode", + parameters: { + clientId: "", + clientSecret: "" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateAuthorizationAadAuthCode(); + apiManagementCreateAuthorizationAadClientCred(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationDeleteSample.ts new file mode 100644 index 000000000000..f049fbee5467 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes specific Authorization from the Authorization provider. + * + * @summary Deletes specific Authorization from the Authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorization.json + */ +async function apiManagementDeleteAuthorization() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.delete( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteAuthorization(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationGetSample.ts new file mode 100644 index 000000000000..be32aa09673c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationGetSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the authorization specified by its identifier. + * + * @summary Gets the details of the authorization specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorization.json + */ +async function apiManagementGetAuthorization() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.get( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorization(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationListByAuthorizationProviderSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationListByAuthorizationProviderSample.ts new file mode 100644 index 000000000000..18367a048a92 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationListByAuthorizationProviderSample.ts @@ -0,0 +1,74 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists a collection of authorization providers defined within a authorization provider. + * + * @summary Lists a collection of authorization providers defined within a authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationsAuthCode.json + */ +async function apiManagementListAuthorizationsAuthCode() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorization.listByAuthorizationProvider( + resourceGroupName, + serviceName, + authorizationProviderId + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists a collection of authorization providers defined within a authorization provider. + * + * @summary Lists a collection of authorization providers defined within a authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationsClientCred.json + */ +async function apiManagementListAuthorizationsClientCred() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithclientcred"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorization.listByAuthorizationProvider( + resourceGroupName, + serviceName, + authorizationProviderId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListAuthorizationsAuthCode(); + apiManagementListAuthorizationsClientCred(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationLoginLinksPostSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationLoginLinksPostSample.ts new file mode 100644 index 000000000000..d82ee1d5c076 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationLoginLinksPostSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationLoginRequestContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets authorization login links. + * + * @summary Gets authorization login links. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationLoginRequest.json + */ +async function apiManagementGetAuthorizationLoginRequest() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const parameters: AuthorizationLoginRequestContract = { + postLoginRedirectUrl: "https://www.bing.com/" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationLoginLinks.post( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorizationLoginRequest(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderCreateOrUpdateSample.ts new file mode 100644 index 000000000000..82b92215f73d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderCreateOrUpdateSample.ts @@ -0,0 +1,187 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationProviderContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderAADAuthCode.json + */ +async function apiManagementCreateAuthorizationProviderAadAuthCode() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const parameters: AuthorizationProviderContract = { + displayName: "aadwithauthcode", + identityProvider: "aad", + oauth2: { + grantTypes: { + authorizationCode: { + clientId: "", + clientSecret: "", + resourceUri: "https://graph.microsoft.com", + scopes: "User.Read.All Group.Read.All" + } + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderAADClientCred.json + */ +async function apiManagementCreateAuthorizationProviderAadClientCred() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithclientcred"; + const parameters: AuthorizationProviderContract = { + displayName: "aadwithclientcred", + identityProvider: "aad", + oauth2: { + grantTypes: { + authorizationCode: { + resourceUri: "https://graph.microsoft.com", + scopes: "User.Read.All Group.Read.All" + } + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderGenericOAuth2.json + */ +async function apiManagementCreateAuthorizationProviderGenericOAuth2() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "eventbrite"; + const parameters: AuthorizationProviderContract = { + displayName: "eventbrite", + identityProvider: "oauth2", + oauth2: { + grantTypes: { + authorizationCode: { + authorizationUrl: "https://www.eventbrite.com/oauth/authorize", + clientId: "", + clientSecret: "", + refreshUrl: "https://www.eventbrite.com/oauth/token", + scopes: "", + tokenUrl: "https://www.eventbrite.com/oauth/token" + } + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderOOBGoogle.json + */ +async function apiManagementCreateAuthorizationProviderOobGoogle() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "google"; + const parameters: AuthorizationProviderContract = { + displayName: "google", + identityProvider: "google", + oauth2: { + grantTypes: { + authorizationCode: { + clientId: "", + clientSecret: "", + scopes: + "openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email" + } + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateAuthorizationProviderAadAuthCode(); + apiManagementCreateAuthorizationProviderAadClientCred(); + apiManagementCreateAuthorizationProviderGenericOAuth2(); + apiManagementCreateAuthorizationProviderOobGoogle(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderDeleteSample.ts new file mode 100644 index 000000000000..07df09fdf5d7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes specific authorization provider from the API Management service instance. + * + * @summary Deletes specific authorization provider from the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationProvider.json + */ +async function apiManagementDeleteAuthorizationProvider() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.delete( + resourceGroupName, + serviceName, + authorizationProviderId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteAuthorizationProvider(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderGetSample.ts new file mode 100644 index 000000000000..50b24da54c3c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the authorization provider specified by its identifier. + * + * @summary Gets the details of the authorization provider specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationProvider.json + */ +async function apiManagementGetAuthorizationProvider() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.get( + resourceGroupName, + serviceName, + authorizationProviderId + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorizationProvider(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderListByServiceSample.ts new file mode 100644 index 000000000000..8e52e14dc82e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationProviderListByServiceSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists a collection of authorization providers defined within a service instance. + * + * @summary Lists a collection of authorization providers defined within a service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationProviders.json + */ +async function apiManagementListAuthorizationProviders() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorizationProvider.listByService( + resourceGroupName, + serviceName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListAuthorizationProviders(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerCreateOrUpdateSample.ts index c1d72fd06787..bbfb1a8599c5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates new authorization server or updates an existing authorization server. * * @summary Creates new authorization server or updates an existing authorization server. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationServer.json */ async function apiManagementCreateAuthorizationServer() { const subscriptionId = @@ -44,7 +44,9 @@ async function apiManagementCreateAuthorizationServer() { resourceOwnerPassword: "pwd", resourceOwnerUsername: "un", supportState: true, - tokenEndpoint: "https://www.contoso.com/oauth2/token" + tokenEndpoint: "https://www.contoso.com/oauth2/token", + useInApiDocumentation: true, + useInTestConsole: false }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerDeleteSample.ts index b9eec707b471..3ead60ddd985 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific authorization server instance. * * @summary Deletes specific authorization server instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationServer.json */ async function apiManagementDeleteAuthorizationServer() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerGetEntityTagSample.ts index a55170446deb..959f296d1087 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the authorizationServer specified by its identifier. * * @summary Gets the entity state (Etag) version of the authorizationServer specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadAuthorizationServer.json */ async function apiManagementHeadAuthorizationServer() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerGetSample.ts index 5d9f2b0ecee9..322be95d80db 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the authorization server specified by its identifier. * * @summary Gets the details of the authorization server specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationServer.json */ async function apiManagementGetAuthorizationServer() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerListByServiceSample.ts index 4aad51bbc493..56d4ccf2e5e3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of authorization servers defined within a service instance. * * @summary Lists a collection of authorization servers defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListAuthorizationServers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationServers.json */ async function apiManagementListAuthorizationServers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerListSecretsSample.ts index 1d5ded6eda8c..6d2fbddadcee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the client secret details of the authorization server. * * @summary Gets the client secret details of the authorization server. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementAuthorizationServerListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementAuthorizationServerListSecrets.json */ async function apiManagementAuthorizationServerListSecrets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerUpdateSample.ts index 37d59c51e3a4..24b94f08763c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/authorizationServerUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the authorization server specified by its identifier. * * @summary Updates the details of the authorization server specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateAuthorizationServer.json */ async function apiManagementUpdateAuthorizationServer() { const subscriptionId = @@ -33,7 +33,9 @@ async function apiManagementUpdateAuthorizationServer() { const ifMatch = "*"; const parameters: AuthorizationServerUpdateContract = { clientId: "update", - clientSecret: "updated" + clientSecret: "updated", + useInApiDocumentation: true, + useInTestConsole: false }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/backendCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/backendCreateOrUpdateSample.ts index 1488db5f026c..c962b8e6b75f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/backendCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/backendCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a backend. * * @summary Creates or Updates a backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateBackendProxyBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateBackendProxyBackend.json */ async function apiManagementCreateBackendProxyBackend() { const subscriptionId = @@ -58,7 +58,7 @@ async function apiManagementCreateBackendProxyBackend() { * This sample demonstrates how to Creates or Updates a backend. * * @summary Creates or Updates a backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateBackendServiceFabric.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateBackendServiceFabric.json */ async function apiManagementCreateBackendServiceFabric() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/backendDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/backendDeleteSample.ts index 9d9cfc7f6f19..89e8c3271c29 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/backendDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/backendDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified backend. * * @summary Deletes the specified backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteBackend.json */ async function apiManagementDeleteBackend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/backendGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/backendGetEntityTagSample.ts index eb4be49112e6..06cc146efc13 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/backendGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/backendGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the backend specified by its identifier. * * @summary Gets the entity state (Etag) version of the backend specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadBackend.json */ async function apiManagementHeadBackend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/backendGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/backendGetSample.ts index a7e8fa744d06..c2d4ae96f020 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/backendGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/backendGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the backend specified by its identifier. * * @summary Gets the details of the backend specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetBackend.json */ async function apiManagementGetBackend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/backendListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/backendListByServiceSample.ts index fbd86be3f8d9..0ea9b79265ac 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/backendListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/backendListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of backends in the specified service instance. * * @summary Lists a collection of backends in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListBackends.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListBackends.json */ async function apiManagementListBackends() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/backendReconnectSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/backendReconnectSample.ts index 0a4583905cb8..a60be7c63a0d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/backendReconnectSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/backendReconnectSample.ts @@ -19,10 +19,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. + * This sample demonstrates how to Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. * - * @summary Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackendReconnect.json + * @summary Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackendReconnect.json */ async function apiManagementBackendReconnect() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/backendUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/backendUpdateSample.ts index 91f5812ffcb8..164258fb978d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/backendUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/backendUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing backend. * * @summary Updates an existing backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateBackend.json */ async function apiManagementUpdateBackend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheCreateOrUpdateSample.ts index 80dfddd0ee72..7fa6eb6b20b2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an External Cache to be used in Api Management instance. * * @summary Creates or updates an External Cache to be used in Api Management instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCache.json */ async function apiManagementCreateCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheDeleteSample.ts index 234475555c97..80b4454d8db3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific Cache. * * @summary Deletes specific Cache. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCache.json */ async function apiManagementDeleteCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheGetEntityTagSample.ts index 39dd97e373bd..777ee99d6b6a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Cache specified by its identifier. * * @summary Gets the entity state (Etag) version of the Cache specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCache.json */ async function apiManagementHeadCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheGetSample.ts index d1ba5d2b4731..df653474196e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Cache specified by its identifier. * * @summary Gets the details of the Cache specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCache.json */ async function apiManagementGetCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheListByServiceSample.ts index 632f0ab1f0c9..655ecf451ab5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of all external Caches in the specified service instance. * * @summary Lists a collection of all external Caches in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCaches.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCaches.json */ async function apiManagementListCaches() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheUpdateSample.ts index a445f14edbaa..72414be63f55 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/cacheUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/cacheUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the cache specified by its identifier. * * @summary Updates the details of the cache specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateCache.json */ async function apiManagementUpdateCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateCreateOrUpdateSample.ts index 1421804d3124..39f489f9dc7f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the certificate being used for authentication with the backend. * * @summary Creates or updates the certificate being used for authentication with the backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCertificate.json */ async function apiManagementCreateCertificate() { const subscriptionId = @@ -50,7 +50,7 @@ async function apiManagementCreateCertificate() { * This sample demonstrates how to Creates or updates the certificate being used for authentication with the backend. * * @summary Creates or updates the certificate being used for authentication with the backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCertificateWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCertificateWithKeyVault.json */ async function apiManagementCreateCertificateWithKeyVault() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateDeleteSample.ts index 0b097349d1c1..6a9d5dd55b4d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific certificate. * * @summary Deletes specific certificate. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCertificate.json */ async function apiManagementDeleteCertificate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateGetEntityTagSample.ts index c39309b3e69b..a10bcb576854 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the certificate specified by its identifier. * * @summary Gets the entity state (Etag) version of the certificate specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCertificate.json */ async function apiManagementHeadCertificate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateGetSample.ts index fc21d7851011..ae96d2c19d89 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the certificate specified by its identifier. * * @summary Gets the details of the certificate specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCertificate.json */ async function apiManagementGetCertificate() { const subscriptionId = @@ -41,7 +41,7 @@ async function apiManagementGetCertificate() { * This sample demonstrates how to Gets the details of the certificate specified by its identifier. * * @summary Gets the details of the certificate specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCertificateWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCertificateWithKeyVault.json */ async function apiManagementGetCertificateWithKeyVault() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateListByServiceSample.ts index d762db61630e..3f53047c01a7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of all certificates in the specified service instance. * * @summary Lists a collection of all certificates in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCertificates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCertificates.json */ async function apiManagementListCertificates() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateRefreshSecretSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateRefreshSecretSample.ts index 22ce2ab3821e..2df0975cf3d9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/certificateRefreshSecretSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/certificateRefreshSecretSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to From KeyVault, Refresh the certificate being used for authentication with the backend. * * @summary From KeyVault, Refresh the certificate being used for authentication with the backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshCertificate.json */ async function apiManagementRefreshCertificate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemCreateOrUpdateSample.ts index 08356c453abc..e650e8e1978c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new developer portal's content item specified by the provided content type. * * @summary Creates a new developer portal's content item specified by the provided content type. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentTypeContentItem.json */ async function apiManagementCreateContentTypeContentItem() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemDeleteSample.ts index 42e7705f934e..11087f6fc4f8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Removes the specified developer portal's content item. * * @summary Removes the specified developer portal's content item. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentTypeContentItem.json */ async function apiManagementDeleteContentTypeContentItem() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemGetEntityTagSample.ts index 77d57f97c823..ff7b36dcc8fc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. * * @summary Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadContentTypeContentItem.json */ async function apiManagementHeadContentTypeContentItem() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemGetSample.ts index 2098d4d2e646..968f7c3e2f59 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the developer portal's content item specified by its identifier. * * @summary Returns the developer portal's content item specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentTypeContentItem.json */ async function apiManagementGetContentTypeContentItem() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemListByServiceSample.ts index b320e1704eba..d5684141c4f0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/contentItemListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists developer portal's content items specified by the provided content type. * * @summary Lists developer portal's content items specified by the provided content type. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypeContentItems.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypeContentItems.json */ async function apiManagementListContentTypeContentItems() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeCreateOrUpdateSample.ts index 12ac2145bf4c..1bd7e4b5480e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. * * @summary Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentType.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentType.json */ async function apiManagementCreateContentType() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeDeleteSample.ts index f9ab5634bac1..06a31ac831f8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. * * @summary Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentType.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentType.json */ async function apiManagementDeleteContentType() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeGetSample.ts index 5cc517e6f673..704be3e32425 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. * * @summary Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentType.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentType.json */ async function apiManagementGetContentType() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeListByServiceSample.ts index 6f64bdc04a3c..bfa265259683 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/contentTypeListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. * * @summary Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypes.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypes.json */ async function apiManagementListContentTypes() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsCreateOrUpdateSample.ts index da3a0118eb53..fc1b1af5df15 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update Delegation settings. * * @summary Create or Update Delegation settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutDelegation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutDelegation.json */ async function apiManagementPortalSettingsUpdateDelegation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsGetEntityTagSample.ts index 43262e649569..b475a59e8cae 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the DelegationSettings. * * @summary Gets the entity state (Etag) version of the DelegationSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDelegationSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDelegationSettings.json */ async function apiManagementHeadDelegationSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsGetSample.ts index ab2c51f8e4ea..75b202cf5f2d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get Delegation Settings for the Portal. * * @summary Get Delegation Settings for the Portal. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetDelegation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetDelegation.json */ async function apiManagementPortalSettingsGetDelegation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsListSecretsSample.ts index 93dcd4420b44..e25d4dbb0799 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the secret validation key of the DelegationSettings. * * @summary Gets the secret validation key of the DelegationSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json */ async function apiManagementListSecretsPortalSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsUpdateSample.ts index 6b7497c5e9f4..7b55289658ab 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/delegationSettingsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update Delegation settings. * * @summary Update Delegation settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json */ async function apiManagementPortalSettingsUpdateDelegation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesGetByNameSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesGetByNameSample.ts index a365b17d3dd2..337137849a4c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesGetByNameSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesGetByNameSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get soft-deleted Api Management Service by name. * * @summary Get soft-deleted Api Management Service by name. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDeletedServiceByName.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDeletedServiceByName.json */ async function apiManagementGetDeletedServiceByName() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesListBySubscriptionSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesListBySubscriptionSample.ts index 26fb204b25a3..5eeb2e8df550 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesListBySubscriptionSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all soft-deleted services available for undelete for the given subscription. * * @summary Lists all soft-deleted services available for undelete for the given subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesListBySubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesListBySubscription.json */ async function apiManagementDeletedServicesListBySubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesPurgeSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesPurgeSample.ts index 799465e2c42f..a94e70bc93a6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesPurgeSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/deletedServicesPurgeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Purges Api Management Service (deletes it with no option to undelete). * * @summary Purges Api Management Service (deletes it with no option to undelete). - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesPurge.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesPurge.json */ async function apiManagementDeletedServicesPurge() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticCreateOrUpdateSample.ts index 8b82c5fd875f..70a9099bd2df 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Diagnostic or updates an existing one. * * @summary Creates a new Diagnostic or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDiagnostic.json */ async function apiManagementCreateDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticDeleteSample.ts index 84ae8481f6c8..bf4f61249fba 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Diagnostic. * * @summary Deletes the specified Diagnostic. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDiagnostic.json */ async function apiManagementDeleteDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticGetEntityTagSample.ts index 1f431c404c26..bf02e420f049 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Diagnostic specified by its identifier. * * @summary Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDiagnostic.json */ async function apiManagementHeadDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticGetSample.ts index a48ee1b7230a..2f03f3c2761e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Diagnostic specified by its identifier. * * @summary Gets the details of the Diagnostic specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDiagnostic.json */ async function apiManagementGetDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticListByServiceSample.ts index 25445801bc99..af3227d1b4ee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all diagnostics of the API Management service instance. * * @summary Lists all diagnostics of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListDiagnostics.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDiagnostics.json */ async function apiManagementListDiagnostics() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticUpdateSample.ts index 15b771197f88..25129fa4da7f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/diagnosticUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the Diagnostic specified by its identifier. * * @summary Updates the details of the Diagnostic specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDiagnostic.json */ async function apiManagementUpdateDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/documentationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationCreateOrUpdateSample.ts new file mode 100644 index 000000000000..c93160bb7a2a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationCreateOrUpdateSample.ts @@ -0,0 +1,52 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DocumentationContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a new Documentation or updates an existing one. + * + * @summary Creates a new Documentation or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDocumentation.json + */ +async function apiManagementCreateDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const parameters: DocumentationContract = { + content: "content", + title: "Title" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.createOrUpdate( + resourceGroupName, + serviceName, + documentationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/documentationDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationDeleteSample.ts new file mode 100644 index 000000000000..53e3bffd4cf8 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified Documentation from an API. + * + * @summary Deletes the specified Documentation from an API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDocumentation.json + */ +async function apiManagementDeleteDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.delete( + resourceGroupName, + serviceName, + documentationId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/documentationGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationGetEntityTagSample.ts new file mode 100644 index 000000000000..759b162c1923 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the Documentation by its identifier. + * + * @summary Gets the entity state (Etag) version of the Documentation by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDocumentation.json + */ +async function apiManagementHeadDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.getEntityTag( + resourceGroupName, + serviceName, + documentationId + ); + console.log(result); +} + +async function main() { + apiManagementHeadDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/documentationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationGetSample.ts new file mode 100644 index 000000000000..36c1dee0d237 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the Documentation specified by its identifier. + * + * @summary Gets the details of the Documentation specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDocumentation.json + */ +async function apiManagementGetDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.get( + resourceGroupName, + serviceName, + documentationId + ); + console.log(result); +} + +async function main() { + apiManagementGetDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/documentationListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationListByServiceSample.ts new file mode 100644 index 000000000000..81d580cba1c0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationListByServiceSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all Documentations of the API Management service instance. + * + * @summary Lists all Documentations of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDocumentations.json + */ +async function apiManagementListApis() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.documentation.listByService( + resourceGroupName, + serviceName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListApis(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/documentationUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationUpdateSample.ts new file mode 100644 index 000000000000..75c50bab8387 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/documentationUpdateSample.ts @@ -0,0 +1,54 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DocumentationUpdateContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the details of the Documentation for an API specified by its identifier. + * + * @summary Updates the details of the Documentation for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDocumentation.json + */ +async function apiManagementUpdateDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const parameters: DocumentationUpdateContract = { + content: "content updated", + title: "Title updated" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.update( + resourceGroupName, + serviceName, + documentationId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateCreateOrUpdateSample.ts index 25a48d5b8100..7728b147c808 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an Email Template. * * @summary Updates an Email Template. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTemplate.json */ async function apiManagementCreateTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateDeleteSample.ts index c5a8387aa313..b71dcb4448f2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset the Email Template to default template provided by the API Management service instance. * * @summary Reset the Email Template to default template provided by the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTemplate.json */ async function apiManagementDeleteTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateGetEntityTagSample.ts index 7d13e99e5a88..16ef6774de91 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the email template specified by its identifier. * * @summary Gets the entity state (Etag) version of the email template specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadEmailTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadEmailTemplate.json */ async function apiManagementHeadEmailTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateGetSample.ts index b74fe10d9164..aeca9f9c866f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the email template specified by its identifier. * * @summary Gets the details of the email template specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTemplate.json */ async function apiManagementGetTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateListByServiceSample.ts index 6fef3382f48e..63bc176c0c17 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all email templates * * @summary Gets all email templates - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTemplates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTemplates.json */ async function apiManagementListTemplates() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateUpdateSample.ts index 700b6bed9640..8d8bc4674f2a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/emailTemplateUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates API Management email template * * @summary Updates API Management email template - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTemplate.json */ async function apiManagementUpdateTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiCreateOrUpdateSample.ts index f41c6128fe13..18d91215c721 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Adds an API to the specified Gateway. * * @summary Adds an API to the specified Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayApi.json */ async function apiManagementCreateGatewayApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiDeleteSample.ts index 899a7bd9b856..545a5fb3fa6c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified API from the specified Gateway. * * @summary Deletes the specified API from the specified Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayApi.json */ async function apiManagementDeleteGatewayApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiGetEntityTagSample.ts index 562813d418fd..c76d571bda2b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that API entity specified by identifier is associated with the Gateway entity. * * @summary Checks that API entity specified by identifier is associated with the Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayApi.json */ async function apiManagementHeadGatewayApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiListByServiceSample.ts index 1d9798925bd3..219156cf842f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayApiListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of the APIs associated with a gateway. * * @summary Lists a collection of the APIs associated with a gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayApis.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayApis.json */ async function apiManagementListGatewayApis() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityCreateOrUpdateSample.ts index e2761384da1f..7f02030ccead 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Assign Certificate entity to Gateway entity as Certificate Authority. * * @summary Assign Certificate entity to Gateway entity as Certificate Authority. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json */ async function apiManagementCreateGatewayCertificateAuthority() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityDeleteSample.ts index eabcad1dd9f6..64119cc426fe 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Remove relationship between Certificate Authority and Gateway entity. * * @summary Remove relationship between Certificate Authority and Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json */ async function apiManagementDeleteGatewayCertificateAuthority() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityGetEntityTagSample.ts index 4484123c9a08..ad89c233c59d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. * * @summary Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json */ async function apiManagementHeadGatewayCertificateAuthority() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityGetSample.ts index eb8dcb682e6c..91b55f332cfd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get assigned Gateway Certificate Authority details. * * @summary Get assigned Gateway Certificate Authority details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json */ async function apiManagementGetGatewayCertificateAuthority() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityListByServiceSample.ts index 9bf006f4ef1d..46ca481ae49a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCertificateAuthorityListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of Certificate Authorities for the specified Gateway entity. * * @summary Lists the collection of Certificate Authorities for the specified Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json */ async function apiManagementListGatewaycertificateAuthorities() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCreateOrUpdateSample.ts index 4e557770f417..f9591b69eda0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a Gateway to be used in Api Management instance. * * @summary Creates or updates a Gateway to be used in Api Management instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGateway.json */ async function apiManagementCreateGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayDeleteSample.ts index 14345bbcae67..1bea683bd048 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific Gateway. * * @summary Deletes specific Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGateway.json */ async function apiManagementDeleteGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGenerateTokenSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGenerateTokenSample.ts index a0fb08fd2d45..80a2efeba293 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGenerateTokenSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGenerateTokenSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Shared Access Authorization Token for the gateway. * * @summary Gets the Shared Access Authorization Token for the gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayGenerateToken.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayGenerateToken.json */ async function apiManagementGatewayGenerateToken() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGetEntityTagSample.ts index 8eb8a40c7e77..0f48e7d8330d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Gateway specified by its identifier. * * @summary Gets the entity state (Etag) version of the Gateway specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGateway.json */ async function apiManagementHeadGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGetSample.ts index d0bfc8e5a413..c1bdd463a2c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Gateway specified by its identifier. * * @summary Gets the details of the Gateway specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGateway.json */ async function apiManagementGetGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationCreateOrUpdateSample.ts index 4fe2b387bbd5..1639e06ed352 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates of updates hostname configuration for a Gateway. * * @summary Creates of updates hostname configuration for a Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json */ async function apiManagementCreateGatewayHostnameConfiguration() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationDeleteSample.ts index cd7a32f081c6..54c551d5ca3f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified hostname configuration from the specified Gateway. * * @summary Deletes the specified hostname configuration from the specified Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json */ async function apiManagementDeleteGatewayHostnameConfiguration() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationGetEntityTagSample.ts index 1e4ffac6756d..3b69b1ded4ac 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. * * @summary Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json */ async function apiManagementHeadGatewayHostnameConfiguration() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationGetSample.ts index 63375aec8b24..5d4c94cf881c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of a hostname configuration * * @summary Get details of a hostname configuration - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json */ async function apiManagementGetGatewayHostnameConfiguration() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationListByServiceSample.ts index 4a9079f3766d..601b7cdf9380 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayHostnameConfigurationListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of hostname configurations for the specified gateway. * * @summary Lists the collection of hostname configurations for the specified gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json */ async function apiManagementListGatewayHostnameConfigurations() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayListByServiceSample.ts index d68be8fbc608..c46a48468460 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of gateways registered with service instance. * * @summary Lists a collection of gateways registered with service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGateways.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGateways.json */ async function apiManagementListGateways() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayListKeysSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayListKeysSample.ts index 6460cfc2da1a..5336e78a40e4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayListKeysSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayListKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves gateway keys. * * @summary Retrieves gateway keys. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayListKeys.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayListKeys.json */ async function apiManagementGatewayListKeys() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayRegenerateKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayRegenerateKeySample.ts index 49d61cfaa3c9..b926cf8923ca 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayRegenerateKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayRegenerateKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates specified gateway key invalidating any tokens created with it. * * @summary Regenerates specified gateway key invalidating any tokens created with it. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayRegenerateKey.json */ async function apiManagementGatewayRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayUpdateSample.ts index d4e982ae6b86..42aac3e1f49b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/gatewayUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the gateway specified by its identifier. * * @summary Updates the details of the gateway specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGateway.json */ async function apiManagementUpdateGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaCreateOrUpdateSample.ts index 28590fce8fc1..32ac578cfd09 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates new or updates existing specified Schema of the API Management service instance. * * @summary Creates new or updates existing specified Schema of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGlobalSchema1.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGlobalSchema1.json */ async function apiManagementCreateSchema1() { const subscriptionId = @@ -51,7 +51,7 @@ async function apiManagementCreateSchema1() { * This sample demonstrates how to Creates new or updates existing specified Schema of the API Management service instance. * * @summary Creates new or updates existing specified Schema of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGlobalSchema2.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGlobalSchema2.json */ async function apiManagementCreateSchema2() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaDeleteSample.ts index d0bfb3b29843..5dbe2be68ada 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific Schema. * * @summary Deletes specific Schema. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGlobalSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGlobalSchema.json */ async function apiManagementDeleteSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaGetEntityTagSample.ts index a4dbbaca1902..2a51c0f0c444 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Schema specified by its identifier. * * @summary Gets the entity state (Etag) version of the Schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGlobalSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGlobalSchema.json */ async function apiManagementHeadApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaGetSample.ts index 98201b007359..42db81867552 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Schema specified by its identifier. * * @summary Gets the details of the Schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGlobalSchema1.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGlobalSchema1.json */ async function apiManagementGetSchema1() { const subscriptionId = @@ -41,7 +41,7 @@ async function apiManagementGetSchema1() { * This sample demonstrates how to Gets the details of the Schema specified by its identifier. * * @summary Gets the details of the Schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGlobalSchema2.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGlobalSchema2.json */ async function apiManagementGetSchema2() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaListByServiceSample.ts index 5d65b70134fb..ccf80484dc1b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/globalSchemaListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of schemas registered with service instance. * * @summary Lists a collection of schemas registered with service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGlobalSchemas.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGlobalSchemas.json */ async function apiManagementListSchemas() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverCreateOrUpdateSample.ts new file mode 100644 index 000000000000..0be021db2d26 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverCreateOrUpdateSample.ts @@ -0,0 +1,55 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ResolverContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a new resolver in the GraphQL API or updates an existing one. + * + * @summary Creates a new resolver in the GraphQL API or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolver.json + */ +async function apiManagementCreateGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "someAPI"; + const resolverId = "newResolver"; + const parameters: ResolverContract = { + path: "Query/users", + description: "A GraphQL Resolver example", + displayName: "Query Users" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.createOrUpdate( + resourceGroupName, + serviceName, + apiId, + resolverId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverDeleteSample.ts new file mode 100644 index 000000000000..1245129ed7b1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified resolver in the GraphQL API. + * + * @summary Deletes the specified resolver in the GraphQL API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolver.json + */ +async function apiManagementDeleteGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const resolverId = "57d2ef278aa04f0ad01d6cdc"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.delete( + resourceGroupName, + serviceName, + apiId, + resolverId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverGetEntityTagSample.ts new file mode 100644 index 000000000000..b731793feb11 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverGetEntityTagSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolver.json + */ +async function apiManagementHeadGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const resolverId = "57d2ef278aa04f0ad01d6cdc"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.getEntityTag( + resourceGroupName, + serviceName, + apiId, + resolverId + ); + console.log(result); +} + +async function main() { + apiManagementHeadGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverGetSample.ts new file mode 100644 index 000000000000..465795df47aa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverGetSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the GraphQL API Resolver specified by its identifier. + * + * @summary Gets the details of the GraphQL API Resolver specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolver.json + */ +async function apiManagementGetGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const resolverId = "57d2ef278aa04f0ad01d6cdc"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.get( + resourceGroupName, + serviceName, + apiId, + resolverId + ); + console.log(result); +} + +async function main() { + apiManagementGetGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverListByApiSample.ts new file mode 100644 index 000000000000..214ff987de36 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverListByApiSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists a collection of the resolvers for the specified GraphQL API. + * + * @summary Lists a collection of the resolvers for the specified GraphQL API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolvers.json + */ +async function apiManagementListGraphQlApiResolvers() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.graphQLApiResolver.listByApi( + resourceGroupName, + serviceName, + apiId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListGraphQlApiResolvers(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyCreateOrUpdateSample.ts new file mode 100644 index 000000000000..a5d83821ea5a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyCreateOrUpdateSample.ts @@ -0,0 +1,63 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PolicyContract, + GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates policy configuration for the GraphQL API Resolver level. + * + * @summary Creates or updates policy configuration for the GraphQL API Resolver level. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolverPolicy.json + */ +async function apiManagementCreateGraphQlApiResolverPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "5600b57e7e8880006a040001"; + const resolverId = "5600b57e7e8880006a080001"; + const policyId = "policy"; + const ifMatch = "*"; + const parameters: PolicyContract = { + format: "xml", + value: + 'GET/api/users' + }; + const options: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams = { + ifMatch + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.createOrUpdate( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + parameters, + options + ); + console.log(result); +} + +async function main() { + apiManagementCreateGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyDeleteSample.ts new file mode 100644 index 000000000000..8d1d88254c10 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyDeleteSample.ts @@ -0,0 +1,50 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the policy configuration at the GraphQL Api Resolver. + * + * @summary Deletes the policy configuration at the GraphQL Api Resolver. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolverPolicy.json + */ +async function apiManagementDeleteGraphQlApiResolverPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "testapi"; + const resolverId = "testResolver"; + const policyId = "policy"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.delete( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyGetEntityTagSample.ts new file mode 100644 index 000000000000..9833f1305764 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyGetEntityTagSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolverPolicy.json + */ +async function apiManagementHeadGraphQlApiResolverPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "5600b539c53f5b0062040001"; + const resolverId = "5600b53ac53f5b0062080006"; + const policyId = "policy"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.getEntityTag( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId + ); + console.log(result); +} + +async function main() { + apiManagementHeadGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyGetSample.ts new file mode 100644 index 000000000000..97caed6b595f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyGetSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the policy configuration at the GraphQL API Resolver level. + * + * @summary Get the policy configuration at the GraphQL API Resolver level. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolverPolicy.json + */ +async function apiManagementGetGraphQlApiResolverPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "5600b539c53f5b0062040001"; + const resolverId = "5600b53ac53f5b0062080006"; + const policyId = "policy"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.get( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId + ); + console.log(result); +} + +async function main() { + apiManagementGetGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyListByResolverSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyListByResolverSample.ts new file mode 100644 index 000000000000..d5197b45a4a2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverPolicyListByResolverSample.ts @@ -0,0 +1,49 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the list of policy configuration at the GraphQL API Resolver level. + * + * @summary Get the list of policy configuration at the GraphQL API Resolver level. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolverPolicies.json + */ +async function apiManagementListGraphQlApiResolverPolicies() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "599e2953193c3c0bd0b3e2fa"; + const resolverId = "599e29ab193c3c0bd0b3e2fb"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.graphQLApiResolverPolicy.listByResolver( + resourceGroupName, + serviceName, + apiId, + resolverId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListGraphQlApiResolverPolicies(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverUpdateSample.ts new file mode 100644 index 000000000000..8f314c52b3b0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/graphQlApiResolverUpdateSample.ts @@ -0,0 +1,57 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ResolverUpdateContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the details of the resolver in the GraphQL API specified by its identifier. + * + * @summary Updates the details of the resolver in the GraphQL API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGraphQLApiResolver.json + */ +async function apiManagementUpdateGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "echo-api"; + const resolverId = "resolverId"; + const ifMatch = "*"; + const parameters: ResolverUpdateContract = { + path: "Query/adminUsers", + description: "A GraphQL Resolver example", + displayName: "Query AdminUsers" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.update( + resourceGroupName, + serviceName, + apiId, + resolverId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupCreateOrUpdateSample.ts index 14d8c9bb660a..9f2b325d87e5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a group. * * @summary Creates or Updates a group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroup.json */ async function apiManagementCreateGroup() { const subscriptionId = @@ -46,7 +46,7 @@ async function apiManagementCreateGroup() { * This sample demonstrates how to Creates or Updates a group. * * @summary Creates or Updates a group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroupExternal.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroupExternal.json */ async function apiManagementCreateGroupExternal() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupDeleteSample.ts index c99ac256df95..48247657e14d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific group of the API Management service instance. * * @summary Deletes specific group of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroup.json */ async function apiManagementDeleteGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupGetEntityTagSample.ts index 0e9043a92159..a68c30cc8bfa 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the group specified by its identifier. * * @summary Gets the entity state (Etag) version of the group specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroup.json */ async function apiManagementHeadGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupGetSample.ts index 2c04b35b5214..954018f98006 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the group specified by its identifier. * * @summary Gets the details of the group specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGroup.json */ async function apiManagementGetGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupListByServiceSample.ts index 48d29fcda626..898b9bd81891 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of groups defined within a service instance. * * @summary Lists a collection of groups defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroups.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroups.json */ async function apiManagementListGroups() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUpdateSample.ts index aab3d26d2452..0b10d48bb5f0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the group specified by its identifier. * * @summary Updates the details of the group specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGroup.json */ async function apiManagementUpdateGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserCheckEntityExistsSample.ts index 8df63c77fcce..80e1301ef726 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that user entity specified by identifier is associated with the group entity. * * @summary Checks that user entity specified by identifier is associated with the group entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroupUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroupUser.json */ async function apiManagementHeadGroupUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserCreateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserCreateSample.ts index 7a649434016b..478e1258ad62 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserCreateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Add existing user to existing group * * @summary Add existing user to existing group - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroupUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroupUser.json */ async function apiManagementCreateGroupUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserDeleteSample.ts index 27a1a5377cac..0eaf12e68670 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Remove existing user from existing group. * * @summary Remove existing user from existing group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroupUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroupUser.json */ async function apiManagementDeleteGroupUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserListSample.ts index 581531d9d333..fd400a0f3b46 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/groupUserListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of user entities associated with the group. * * @summary Lists a collection of user entities associated with the group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroupUsers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroupUsers.json */ async function apiManagementListGroupUsers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderCreateOrUpdateSample.ts index cbacbaba20b1..ecfeceb3981f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates the IdentityProvider configuration. * * @summary Creates or Updates the IdentityProvider configuration. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateIdentityProvider.json */ async function apiManagementCreateIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderDeleteSample.ts index 2d9087a20548..71a8daa2cbde 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified identity provider configuration. * * @summary Deletes the specified identity provider configuration. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteIdentityProvider.json */ async function apiManagementDeleteIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderGetEntityTagSample.ts index d9c6c10856e0..09632aa479ab 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the identityProvider specified by its identifier. * * @summary Gets the entity state (Etag) version of the identityProvider specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadIdentityProvider.json */ async function apiManagementHeadIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderGetSample.ts index fc65ac04683d..8b752758b132 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the configuration details of the identity Provider configured in specified service instance. * * @summary Gets the configuration details of the identity Provider configured in specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIdentityProvider.json */ async function apiManagementGetIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderListByServiceSample.ts index 3b0a38c4131a..5bb324ed67cf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of Identity Provider configured in the specified service instance. * * @summary Lists a collection of Identity Provider configured in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIdentityProviders.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIdentityProviders.json */ async function apiManagementListIdentityProviders() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderListSecretsSample.ts index f9a071831cec..70a322ad24bf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the client secret details of the Identity Provider. * * @summary Gets the client secret details of the Identity Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementIdentityProviderListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementIdentityProviderListSecrets.json */ async function apiManagementIdentityProviderListSecrets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderUpdateSample.ts index d5faf4d1e00e..0baf25c1a6bb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/identityProviderUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing IdentityProvider configuration. * * @summary Updates an existing IdentityProvider configuration. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateIdentityProvider.json */ async function apiManagementUpdateIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/issueGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/issueGetSample.ts index e693fc656269..9402037685c9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/issueGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/issueGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets API Management issue details * * @summary Gets API Management issue details - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIssue.json */ async function apiManagementGetIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/issueListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/issueListByServiceSample.ts index 24a34781d667..e03dde4ead14 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/issueListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/issueListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of issues in the specified service instance. * * @summary Lists a collection of issues in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIssues.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIssues.json */ async function apiManagementListIssues() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerCreateOrUpdateSample.ts index 46dd826c83e4..c3c5cb5ef180 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a logger. * * @summary Creates or Updates a logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAILogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAILogger.json */ async function apiManagementCreateAiLogger() { const subscriptionId = @@ -47,7 +47,7 @@ async function apiManagementCreateAiLogger() { * This sample demonstrates how to Creates or Updates a logger. * * @summary Creates or Updates a logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateEHLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateEHLogger.json */ async function apiManagementCreateEhLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerDeleteSample.ts index 794c31d84b56..14c89372bfbb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified logger. * * @summary Deletes the specified logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteLogger.json */ async function apiManagementDeleteLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerGetEntityTagSample.ts index 670019840c26..c2efb9adfe7f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the logger specified by its identifier. * * @summary Gets the entity state (Etag) version of the logger specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadLogger.json */ async function apiManagementHeadLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerGetSample.ts index cafb0fb2cbc1..319d80a96ad3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the logger specified by its identifier. * * @summary Gets the details of the logger specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetLogger.json */ async function apiManagementGetLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerListByServiceSample.ts index 0c6336f9c986..8e8d29247d7d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of loggers in the specified service instance. * * @summary Lists a collection of loggers in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListLoggers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListLoggers.json */ async function apiManagementListLoggers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerUpdateSample.ts index 72650f7bd03d..7bec1a7e2aed 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/loggerUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/loggerUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing logger. * * @summary Updates an existing logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateLogger.json */ async function apiManagementUpdateLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueCreateOrUpdateSample.ts index e4728768b842..b664bf11298b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates named value. * * @summary Creates or updates named value. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNamedValue.json */ async function apiManagementCreateNamedValue() { const subscriptionId = @@ -51,7 +51,7 @@ async function apiManagementCreateNamedValue() { * This sample demonstrates how to Creates or updates named value. * * @summary Creates or updates named value. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNamedValueWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNamedValueWithKeyVault.json */ async function apiManagementCreateNamedValueWithKeyVault() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueDeleteSample.ts index c542a56e1448..c912a4917fb8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific named value from the API Management service instance. * * @summary Deletes specific named value from the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNamedValue.json */ async function apiManagementDeleteNamedValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueGetEntityTagSample.ts index 45214616adb9..684c6668907c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the named value specified by its identifier. * * @summary Gets the entity state (Etag) version of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNamedValue.json */ async function apiManagementHeadNamedValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueGetSample.ts index b0b19cd67c60..5d09d87343c4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the named value specified by its identifier. * * @summary Gets the details of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNamedValue.json */ async function apiManagementGetNamedValue() { const subscriptionId = @@ -41,7 +41,7 @@ async function apiManagementGetNamedValue() { * This sample demonstrates how to Gets the details of the named value specified by its identifier. * * @summary Gets the details of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNamedValueWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNamedValueWithKeyVault.json */ async function apiManagementGetNamedValueWithKeyVault() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueListByServiceSample.ts index e1bde101234d..e05a515d0cd9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of named values defined within a service instance. * * @summary Lists a collection of named values defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNamedValues.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNamedValues.json */ async function apiManagementListNamedValues() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueListValueSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueListValueSample.ts index f63ea27fc6f4..7315ca2e36fd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueListValueSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueListValueSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the secret of the named value specified by its identifier. * * @summary Gets the secret of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementNamedValueListValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementNamedValueListValue.json */ async function apiManagementNamedValueListValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueRefreshSecretSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueRefreshSecretSample.ts index dd2c35ffe276..d8b65d0629f4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueRefreshSecretSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueRefreshSecretSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Refresh the secret of the named value specified by its identifier. * * @summary Refresh the secret of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshNamedValue.json */ async function apiManagementRefreshNamedValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueUpdateSample.ts index ec5e0f42cdac..9fd0bbc236ff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/namedValueUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the specific named value. * * @summary Updates the specific named value. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateNamedValue.json */ async function apiManagementUpdateNamedValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/networkStatusListByLocationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/networkStatusListByLocationSample.ts index d0b5da3046fc..dcbf086b6585 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/networkStatusListByLocationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/networkStatusListByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. * * @summary Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json */ async function apiManagementServiceGetNetworkStatusByLocation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/networkStatusListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/networkStatusListByServiceSample.ts index f736a9736d07..48fb6a23d155 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/networkStatusListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/networkStatusListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. * * @summary Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatus.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatus.json */ async function apiManagementServiceGetNetworkStatus() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationCreateOrUpdateSample.ts index 4e699f89a4e6..95fa2dd5381c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update API Management publisher notification. * * @summary Create or Update API Management publisher notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotification.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotification.json */ async function apiManagementCreateNotification() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationGetSample.ts index 52c87f751c63..2a08272429b9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Notification specified by its identifier. * * @summary Gets the details of the Notification specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNotification.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNotification.json */ async function apiManagementGetNotification() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationListByServiceSample.ts index c36787bfa5fa..95e627c3ccee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of properties defined within a service instance. * * @summary Lists a collection of properties defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotifications.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotifications.json */ async function apiManagementListNotifications() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailCheckEntityExistsSample.ts index b1d98fee8566..4441a393355a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Determine if Notification Recipient Email subscribed to the notification. * * @summary Determine if Notification Recipient Email subscribed to the notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json */ async function apiManagementHeadNotificationRecipientEmail() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailCreateOrUpdateSample.ts index bf3779883a7c..023934f6b822 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Adds the Email address to the list of Recipients for the Notification. * * @summary Adds the Email address to the list of Recipients for the Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json */ async function apiManagementCreateNotificationRecipientEmail() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailDeleteSample.ts index 515d9ebfc763..50dfa04d1459 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Removes the email from the list of Notification. * * @summary Removes the email from the list of Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json */ async function apiManagementDeleteNotificationRecipientEmail() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailListByNotificationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailListByNotificationSample.ts index 0f8b9a13322b..9fff72cb91b0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailListByNotificationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientEmailListByNotificationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of the Notification Recipient Emails subscribed to a notification. * * @summary Gets the list of the Notification Recipient Emails subscribed to a notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientEmails.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientEmails.json */ async function apiManagementListNotificationRecipientEmails() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserCheckEntityExistsSample.ts index bff56e2f3393..bb3198fff996 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Determine if the Notification Recipient User is subscribed to the notification. * * @summary Determine if the Notification Recipient User is subscribed to the notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientUser.json */ async function apiManagementHeadNotificationRecipientUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserCreateOrUpdateSample.ts index 6eea5306df2a..ecd636d6d144 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Adds the API Management User to the list of Recipients for the Notification. * * @summary Adds the API Management User to the list of Recipients for the Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientUser.json */ async function apiManagementCreateNotificationRecipientUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserDeleteSample.ts index 1129e240c355..4b9a9cffdc73 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Removes the API Management user from the list of Notification. * * @summary Removes the API Management user from the list of Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json */ async function apiManagementDeleteNotificationRecipientUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserListByNotificationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserListByNotificationSample.ts index 574c765008d7..896b3fa1229d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserListByNotificationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/notificationRecipientUserListByNotificationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of the Notification Recipient User subscribed to the notification. * * @summary Gets the list of the Notification Recipient User subscribed to the notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientUsers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientUsers.json */ async function apiManagementListNotificationRecipientUsers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderCreateOrUpdateSample.ts index de581f2a8ecc..d3b7b73512a3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the OpenID Connect Provider. * * @summary Creates or updates the OpenID Connect Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json */ async function apiManagementCreateOpenIdConnectProvider() { const subscriptionId = @@ -34,7 +34,9 @@ async function apiManagementCreateOpenIdConnectProvider() { clientId: "oidprovidertemplate3", clientSecret: "x", displayName: "templateoidprovider3", - metadataEndpoint: "https://oidprovider-template3.net" + metadataEndpoint: "https://oidprovider-template3.net", + useInApiDocumentation: true, + useInTestConsole: false }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderDeleteSample.ts index 00fd2ff35c08..851ef6e96bae 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific OpenID Connect Provider of the API Management service instance. * * @summary Deletes specific OpenID Connect Provider of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json */ async function apiManagementDeleteOpenIdConnectProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderGetEntityTagSample.ts index 2e136906617b..3fad780de809 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. * * @summary Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json */ async function apiManagementHeadOpenIdConnectProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderGetSample.ts index c239d50c342e..d5b66b9273cf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets specific OpenID Connect Provider without secrets. * * @summary Gets specific OpenID Connect Provider without secrets. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetOpenIdConnectProvider.json */ async function apiManagementGetOpenIdConnectProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderListByServiceSample.ts index c35d3cae2410..12ffc8b82acb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists of all the OpenId Connect Providers. * * @summary Lists of all the OpenId Connect Providers. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOpenIdConnectProviders.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOpenIdConnectProviders.json */ async function apiManagementListOpenIdConnectProviders() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderListSecretsSample.ts index 97a65bfddce9..d95e052fdf92 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the client secret details of the OpenID Connect Provider. * * @summary Gets the client secret details of the OpenID Connect Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json */ async function apiManagementOpenidConnectProviderListSecrets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderUpdateSample.ts index 2b8e3c84887e..fd234805fd9b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/openIdConnectProviderUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the specific OpenID Connect Provider. * * @summary Updates the specific OpenID Connect Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json */ async function apiManagementUpdateOpenIdConnectProvider() { const subscriptionId = @@ -32,7 +32,9 @@ async function apiManagementUpdateOpenIdConnectProvider() { const opid = "templateOpenIdConnect2"; const ifMatch = "*"; const parameters: OpenidConnectProviderUpdateContract = { - clientSecret: "updatedsecret" + clientSecret: "updatedsecret", + useInApiDocumentation: true, + useInTestConsole: false }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/operationListByTagsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/operationListByTagsSample.ts index 12d40b32889d..dc1f21a02321 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/operationListByTagsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/operationListByTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of operations associated with tags. * * @summary Lists a collection of operations associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationsByTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationsByTags.json */ async function apiManagementListApiOperationsByTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/outboundNetworkDependenciesEndpointsListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/outboundNetworkDependenciesEndpointsListByServiceSample.ts index 9c7d979b6429..7898f0ffe380 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/outboundNetworkDependenciesEndpointsListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/outboundNetworkDependenciesEndpointsListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the network endpoints of all outbound dependencies of a ApiManagement service. * * @summary Gets the network endpoints of all outbound dependencies of a ApiManagement service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json */ async function apiManagementServiceGetOutboundNetworkDependenciesEndpoints() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/performConnectivityCheckAsyncSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/performConnectivityCheckAsyncSample.ts index b12ba01c2e37..76d71f8fae04 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/performConnectivityCheckAsyncSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/performConnectivityCheckAsyncSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. * * @summary Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json */ async function httpConnectivityCheck() { const subscriptionId = @@ -55,7 +55,7 @@ async function httpConnectivityCheck() { * This sample demonstrates how to Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. * * @summary Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPerformConnectivityCheck.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPerformConnectivityCheck.json */ async function tcpConnectivityCheck() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyCreateOrUpdateSample.ts index 42a2fab18b7d..f625c32d2ff8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/policyCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the global policy configuration of the Api Management service. * * @summary Creates or updates the global policy configuration of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicy.json */ async function apiManagementCreatePolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyDeleteSample.ts index 4915e42320c0..69985f3c563d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/policyDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the global policy configuration of the Api Management Service. * * @summary Deletes the global policy configuration of the Api Management Service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicy.json */ async function apiManagementDeletePolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyDescriptionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyDescriptionListByServiceSample.ts index 8a92232b89e7..4ae78b0f8e5b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/policyDescriptionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyDescriptionListByServiceSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all policy descriptions. * * @summary Lists all policy descriptions. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicyDescriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyDescriptions.json */ async function apiManagementListPolicyDescriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentCreateOrUpdateSample.ts new file mode 100644 index 000000000000..d703b1724e37 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentCreateOrUpdateSample.ts @@ -0,0 +1,54 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PolicyFragmentContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a policy fragment. + * + * @summary Creates or updates a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicyFragment.json + */ +async function apiManagementCreatePolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const parameters: PolicyFragmentContract = { + format: "xml", + description: "A policy fragment example", + value: + '' + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + id, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreatePolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentDeleteSample.ts new file mode 100644 index 000000000000..8f6a6cdd6606 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a policy fragment. + * + * @summary Deletes a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicyFragment.json + */ +async function apiManagementDeletePolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.delete( + resourceGroupName, + serviceName, + id, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeletePolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentGetEntityTagSample.ts new file mode 100644 index 000000000000..cdc2c3e3c213 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of a policy fragment. + * + * @summary Gets the entity state (Etag) version of a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicyFragment.json + */ +async function apiManagementHeadPolicyFragment() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.getEntityTag( + resourceGroupName, + serviceName, + id + ); + console.log(result); +} + +async function main() { + apiManagementHeadPolicyFragment(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentGetSample.ts new file mode 100644 index 000000000000..19083d34fdcc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentGetSample.ts @@ -0,0 +1,74 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PolicyFragmentGetOptionalParams, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a policy fragment. + * + * @summary Gets a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFragment.json + */ +async function apiManagementGetPolicyFragment() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.get( + resourceGroupName, + serviceName, + id + ); + console.log(result); +} + +/** + * This sample demonstrates how to Gets a policy fragment. + * + * @summary Gets a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFragmentFormat.json + */ +async function apiManagementGetPolicyFragmentFormat() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const format = "rawxml"; + const options: PolicyFragmentGetOptionalParams = { format }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.get( + resourceGroupName, + serviceName, + id, + options + ); + console.log(result); +} + +async function main() { + apiManagementGetPolicyFragment(); + apiManagementGetPolicyFragmentFormat(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentListByServiceSample.ts new file mode 100644 index 000000000000..353baac0c7c2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentListByServiceSample.ts @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets all policy fragments. + * + * @summary Gets all policy fragments. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragments.json + */ +async function apiManagementListPolicyFragments() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.listByService( + resourceGroupName, + serviceName + ); + console.log(result); +} + +async function main() { + apiManagementListPolicyFragments(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentListReferencesSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentListReferencesSample.ts new file mode 100644 index 000000000000..2915136023ac --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyFragmentListReferencesSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists policy resources that reference the policy fragment. + * + * @summary Lists policy resources that reference the policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragmentReferences.json + */ +async function apiManagementListPolicyFragmentReferences() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.listReferences( + resourceGroupName, + serviceName, + id + ); + console.log(result); +} + +async function main() { + apiManagementListPolicyFragmentReferences(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyGetEntityTagSample.ts index f4cd5b0eb3b7..9db6f475ac6c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/policyGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Global policy definition in the Api Management service. * * @summary Gets the entity state (Etag) version of the Global policy definition in the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicy.json */ async function apiManagementHeadPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyGetSample.ts index 473ef69fbd41..7d7a1ace58ce 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/policyGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Get the Global policy definition of the Api Management service. * * @summary Get the Global policy definition of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicy.json */ async function apiManagementGetPolicy() { const subscriptionId = @@ -44,7 +44,7 @@ async function apiManagementGetPolicy() { * This sample demonstrates how to Get the Global policy definition of the Api Management service. * * @summary Get the Global policy definition of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPolicyFormat.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFormat.json */ async function apiManagementGetPolicyFormat() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/policyListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/policyListByServiceSample.ts index 2533950950b6..8d8b7608c482 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/policyListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/policyListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the Global Policy definitions of the Api Management service. * * @summary Lists all the Global Policy definitions of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicies.json */ async function apiManagementListPolicies() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigCreateOrUpdateSample.ts new file mode 100644 index 000000000000..4f96bd2686ef --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigCreateOrUpdateSample.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PortalConfigContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the developer portal configuration. + * + * @summary Create or update the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalConfig.json + */ +async function apiManagementCreatePortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const ifMatch = "*"; + const parameters: PortalConfigContract = { + cors: { allowedOrigins: ["https://contoso.com"] }, + csp: { + allowedSources: ["*.contoso.com"], + mode: "reportOnly", + reportUri: ["https://report.contoso.com"] + }, + delegation: { + delegateRegistration: false, + delegateSubscription: false, + delegationUrl: undefined, + validationKey: undefined + }, + enableBasicAuth: true, + signin: { require: false }, + signup: { + termsOfService: { + requireConsent: false, + text: "I agree to the service terms and conditions." + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.createOrUpdate( + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreatePortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigGetEntityTagSample.ts new file mode 100644 index 000000000000..ce2436ba1b65 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the developer portal configuration. + * + * @summary Gets the entity state (Etag) version of the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalConfig.json + */ +async function apiManagementHeadPortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.getEntityTag( + resourceGroupName, + serviceName, + portalConfigId + ); + console.log(result); +} + +async function main() { + apiManagementHeadPortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigGetSample.ts new file mode 100644 index 000000000000..5463fc5e330b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the developer portal configuration. + * + * @summary Get the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalConfig.json + */ +async function apiManagementPortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.get( + resourceGroupName, + serviceName, + portalConfigId + ); + console.log(result); +} + +async function main() { + apiManagementPortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigListByServiceSample.ts new file mode 100644 index 000000000000..39148724a093 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigListByServiceSample.ts @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists the developer portal configurations. + * + * @summary Lists the developer portal configurations. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalConfig.json + */ +async function apiManagementListPortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.listByService( + resourceGroupName, + serviceName + ); + console.log(result); +} + +async function main() { + apiManagementListPortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigUpdateSample.ts new file mode 100644 index 000000000000..f46de1dcd5d3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalConfigUpdateSample.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PortalConfigContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update the developer portal configuration. + * + * @summary Update the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalConfig.json + */ +async function apiManagementUpdatePortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const ifMatch = "*"; + const parameters: PortalConfigContract = { + cors: { allowedOrigins: ["https://contoso.com"] }, + csp: { + allowedSources: ["*.contoso.com"], + mode: "reportOnly", + reportUri: ["https://report.contoso.com"] + }, + delegation: { + delegateRegistration: false, + delegateSubscription: false, + delegationUrl: undefined, + validationKey: undefined + }, + enableBasicAuth: true, + signin: { require: false }, + signup: { + termsOfService: { + requireConsent: false, + text: "I agree to the service terms and conditions." + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.update( + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdatePortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionCreateOrUpdateSample.ts index f79c9c80af23..0246e008cac5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. * * @summary Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalRevision.json */ async function apiManagementCreatePortalRevision() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionGetEntityTagSample.ts index 86b55b8873b4..c731ded35a84 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the developer portal revision specified by its identifier. * * @summary Gets the developer portal revision specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalRevision.json */ async function apiManagementHeadPortalRevision() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionGetSample.ts index 95ce9a87311b..90ec6a242e8a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the developer portal's revision specified by its identifier. * * @summary Gets the developer portal's revision specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPortalRevision.json */ async function apiManagementGetPortalRevision() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionListByServiceSample.ts index 30e41ddd89e6..8cf1e88339e6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists developer portal's revisions. * * @summary Lists developer portal's revisions. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalRevisions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalRevisions.json */ async function apiManagementListPortalRevisions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionUpdateSample.ts index 84f3848ce009..7e31dbff5bdf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalRevisionUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the description of specified portal revision or makes it current. * * @summary Updates the description of specified portal revision or makes it current. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdatePortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalRevision.json */ async function apiManagementUpdatePortalRevision() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/portalSettingsListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/portalSettingsListByServiceSample.ts index c7c4f4edc5d5..b16d6107ba68 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/portalSettingsListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/portalSettingsListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of portalsettings defined within a service instance.. * * @summary Lists a collection of portalsettings defined within a service instance.. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalSettings.json */ async function apiManagementListPortalSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionCreateOrUpdateSample.ts index 168f0a9a1c4c..808909204a6f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Private Endpoint Connection or updates an existing one. * * @summary Creates a new Private Endpoint Connection or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json */ async function apiManagementApproveOrRejectPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionDeleteSample.ts index e569d463937e..a0cc9313d7b5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Private Endpoint Connection. * * @summary Deletes the specified Private Endpoint Connection. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json */ async function apiManagementDeletePrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionGetByNameSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionGetByNameSample.ts index a9246d226d9b..ed705263e493 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionGetByNameSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionGetByNameSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Private Endpoint Connection specified by its identifier. * * @summary Gets the details of the Private Endpoint Connection specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateEndpointConnection.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateEndpointConnection.json */ async function apiManagementGetPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionGetPrivateLinkResourceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionGetPrivateLinkResourceSample.ts index 979d6b3caf1d..10b6a4e2a268 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionGetPrivateLinkResourceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionGetPrivateLinkResourceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources * * @summary Gets the private link resources - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json */ async function apiManagementGetPrivateLinkGroupResource() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionListByServiceSample.ts index 54c9adf895b0..6527fddd32b9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all private endpoint connections of the API Management service instance. * * @summary Lists all private endpoint connections of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateEndpointConnections.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateEndpointConnections.json */ async function apiManagementListPrivateEndpointConnections() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionListPrivateLinkResourcesSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionListPrivateLinkResourcesSample.ts index 631ab02fec51..50bed1bc390c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionListPrivateLinkResourcesSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/privateEndpointConnectionListPrivateLinkResourcesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources * * @summary Gets the private link resources - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateLinkGroupResources.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateLinkGroupResources.json */ async function apiManagementListPrivateLinkGroupResources() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productApiCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productApiCheckEntityExistsSample.ts index a3091d125312..7e70371099cc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productApiCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productApiCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that API entity specified by identifier is associated with the Product entity. * * @summary Checks that API entity specified by identifier is associated with the Product entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductApi.json */ async function apiManagementHeadProductApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productApiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productApiCreateOrUpdateSample.ts index 106197144010..9e15389960c7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productApiCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productApiCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Adds an API to the specified product. * * @summary Adds an API to the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductApi.json */ async function apiManagementCreateProductApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productApiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productApiDeleteSample.ts index d15c25efd089..d404bc767db3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productApiDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productApiDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified API from the specified product. * * @summary Deletes the specified API from the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductApi.json */ async function apiManagementDeleteProductApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productApiListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productApiListByProductSample.ts index 368600f2395e..53b66522bb8d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productApiListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productApiListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of the APIs associated with a product. * * @summary Lists a collection of the APIs associated with a product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductApis.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductApis.json */ async function apiManagementListProductApis() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productCreateOrUpdateSample.ts index 2f8122601192..6232d0b6ba2c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a product. * * @summary Creates or Updates a product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProduct.json */ async function apiManagementCreateProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productDeleteSample.ts index 4a032555668a..241c237c9a47 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productDeleteSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Delete product. * * @summary Delete product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProduct.json */ async function apiManagementDeleteProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productGetEntityTagSample.ts index a7170e6e1ecc..b615b809896e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the product specified by its identifier. * * @summary Gets the entity state (Etag) version of the product specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProduct.json */ async function apiManagementHeadProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productGetSample.ts index 2754b8cc0dba..4ec43bce9e7b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the product specified by its identifier. * * @summary Gets the details of the product specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProduct.json */ async function apiManagementGetProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupCheckEntityExistsSample.ts index 1c2d0a8aa689..16437f00cc40 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that Group entity specified by identifier is associated with the Product entity. * * @summary Checks that Group entity specified by identifier is associated with the Product entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductGroup.json */ async function apiManagementHeadProductGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupCreateOrUpdateSample.ts index 8d93108bc1b4..5ddd2bd110d7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Adds the association between the specified developer group with the specified product. * * @summary Adds the association between the specified developer group with the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductGroup.json */ async function apiManagementCreateProductGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupDeleteSample.ts index 967feab7faae..94c45c59a732 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the association between the specified group and product. * * @summary Deletes the association between the specified group and product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductGroup.json */ async function apiManagementDeleteProductGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupListByProductSample.ts index 635e937ae97d..bc88afdb591e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productGroupListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of developer groups associated with the specified product. * * @summary Lists the collection of developer groups associated with the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductGroups.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductGroups.json */ async function apiManagementListProductGroups() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productListByServiceSample.ts index 85797a697b10..ae381908848f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of products in the specified service instance. * * @summary Lists a collection of products in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProducts.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProducts.json */ async function apiManagementListProducts() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productListByTagsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productListByTagsSample.ts index 4e1bc363e54f..d8274ee2a74b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productListByTagsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productListByTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of products associated with tags. * * @summary Lists a collection of products associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductsByTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductsByTags.json */ async function apiManagementListProductsByTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyCreateOrUpdateSample.ts index dec33d99a959..0f73b1c7dec0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates policy configuration for the Product. * * @summary Creates or updates policy configuration for the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductPolicy.json */ async function apiManagementCreateProductPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyDeleteSample.ts index 4ac83976cb4f..ddd21565a8ec 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the policy configuration at the Product. * * @summary Deletes the policy configuration at the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductPolicy.json */ async function apiManagementDeleteProductPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyGetEntityTagSample.ts index cb971a85dfba..583cd01a7292 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the ETag of the policy configuration at the Product level. * * @summary Get the ETag of the policy configuration at the Product level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductPolicy.json */ async function apiManagementHeadProductPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyGetSample.ts index fde45b79ddb2..8591ab0faa18 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the Product level. * * @summary Get the policy configuration at the Product level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductPolicy.json */ async function apiManagementGetProductPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyListByProductSample.ts index b790611c477d..592a208c2a38 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productPolicyListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the Product level. * * @summary Get the policy configuration at the Product level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductPolicies.json */ async function apiManagementListProductPolicies() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productSubscriptionsListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productSubscriptionsListSample.ts index 32e3463c996a..92a57cc82332 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productSubscriptionsListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productSubscriptionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of subscriptions to the specified product. * * @summary Lists the collection of subscriptions to the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductSubscriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductSubscriptions.json */ async function apiManagementListProductSubscriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productUpdateSample.ts index 45ce81606a2f..108231efc6eb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/productUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update existing product details. * * @summary Update existing product details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProduct.json */ async function apiManagementUpdateProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiCreateOrUpdateSample.ts new file mode 100644 index 000000000000..62626d52456d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiCreateOrUpdateSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { WikiContract, ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a new Wiki for a Product or updates an existing one. + * + * @summary Creates a new Wiki for a Product or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductWiki.json + */ +async function apiManagementCreateProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const parameters: WikiContract = { + documents: [{ documentationId: "docId1" }, { documentationId: "docId2" }] + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.createOrUpdate( + resourceGroupName, + serviceName, + productId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiDeleteSample.ts new file mode 100644 index 000000000000..c6a47ccec611 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified Wiki from a Product. + * + * @summary Deletes the specified Wiki from a Product. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductWiki.json + */ +async function apiManagementDeleteProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.delete( + resourceGroupName, + serviceName, + productId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiGetEntityTagSample.ts new file mode 100644 index 000000000000..a038f7af6758 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductWiki.json + */ +async function apiManagementHeadProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.getEntityTag( + resourceGroupName, + serviceName, + productId + ); + console.log(result); +} + +async function main() { + apiManagementHeadProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiGetSample.ts new file mode 100644 index 000000000000..813b2cf26058 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the Wiki for a Product specified by its identifier. + * + * @summary Gets the details of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductWiki.json + */ +async function apiManagementGetProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.get( + resourceGroupName, + serviceName, + productId + ); + console.log(result); +} + +async function main() { + apiManagementGetProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiUpdateSample.ts new file mode 100644 index 000000000000..9b7c4f9d648f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikiUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + WikiUpdateContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the details of the Wiki for a Product specified by its identifier. + * + * @summary Updates the details of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProductWiki.json + */ +async function apiManagementUpdateProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const parameters: WikiUpdateContract = { + documents: [{ documentationId: "docId1" }] + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.update( + resourceGroupName, + serviceName, + productId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/productWikisListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikisListSample.ts new file mode 100644 index 000000000000..eae0b06af239 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/productWikisListSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the Wiki for a Product specified by its identifier. + * + * @summary Gets the details of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductWikis.json + */ +async function apiManagementGetApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.productWikis.list( + resourceGroupName, + serviceName, + productId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementGetApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByCounterKeysListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByCounterKeysListByServiceSample.ts index 8bf8b09167a0..e30cd43ebd6b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByCounterKeysListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByCounterKeysListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. * * @summary Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeys.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeys.json */ async function apiManagementGetQuotaCounterKeys() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByCounterKeysUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByCounterKeysUpdateSample.ts index 0b88c223ba92..915cac0059d3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByCounterKeysUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByCounterKeysUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. * * @summary Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKey.json */ async function apiManagementUpdateQuotaCounterKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByPeriodKeysGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByPeriodKeysGetSample.ts index 630271cebd0b..e6c9445e5125 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByPeriodKeysGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByPeriodKeysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. * * @summary Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json */ async function apiManagementGetQuotaCounterKeysByQuotaPeriod() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByPeriodKeysUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByPeriodKeysUpdateSample.ts index c34309c20332..2a5951cdc029 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByPeriodKeysUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/quotaByPeriodKeysUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing quota counter value in the specified service instance. * * @summary Updates an existing quota counter value in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json */ async function apiManagementUpdateQuotaCounterKeyByQuotaPeriod() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/regionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/regionListByServiceSample.ts index 8be3f5324897..efd5680f27b7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/regionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/regionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all azure regions in which the service exists. * * @summary Lists all azure regions in which the service exists. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListRegions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListRegions.json */ async function apiManagementListRegions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByApiSample.ts index 3e57cd443d17..2c79ef784584 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by API. * * @summary Lists report records by API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByApi.json */ async function apiManagementGetReportsByApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByGeoSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByGeoSample.ts index ad76635efd76..09abd47808a9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByGeoSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByGeoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by geography. * * @summary Lists report records by geography. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByGeo.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByGeo.json */ async function apiManagementGetReportsByGeo() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByOperationSample.ts index 469f72f09380..cf11ce2a1a6d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by API Operations. * * @summary Lists report records by API Operations. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByOperation.json */ async function apiManagementGetReportsByOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByProductSample.ts index e76912e18196..ba62392350d4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by Product. * * @summary Lists report records by Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByProduct.json */ async function apiManagementGetReportsByProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByRequestSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByRequestSample.ts index 5bf3032e9d8d..1e164289dd9c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByRequestSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByRequestSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by Request. * * @summary Lists report records by Request. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByRequest.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByRequest.json */ async function apiManagementGetReportsByRequest() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListBySubscriptionSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListBySubscriptionSample.ts index 67f3a9cfa033..6de51ec97e0f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListBySubscriptionSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by subscription. * * @summary Lists report records by subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsBySubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsBySubscription.json */ async function apiManagementGetReportsBySubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByTimeSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByTimeSample.ts index d05bc89a16dd..181ea10ce899 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByTimeSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByTimeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by Time. * * @summary Lists report records by Time. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByTime.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByTime.json */ async function apiManagementGetReportsByTime() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByUserSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByUserSample.ts index 8e12d584281e..4291513d0653 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByUserSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/reportsListByUserSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by User. * * @summary Lists report records by User. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByUser.json */ async function apiManagementGetReportsByUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsCreateOrUpdateSample.ts index 599598922489..f266ccfc4c65 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update Sign-In settings. * * @summary Create or Update Sign-In settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignIn.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignIn.json */ async function apiManagementPortalSettingsUpdateSignIn() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsGetEntityTagSample.ts index adef1dd2b8f1..2c52470d5ce3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the SignInSettings. * * @summary Gets the entity state (Etag) version of the SignInSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignInSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignInSettings.json */ async function apiManagementHeadSignInSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsGetSample.ts index fc2975986d5b..28f28743a6c1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get Sign In Settings for the Portal * * @summary Get Sign In Settings for the Portal - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignIn.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignIn.json */ async function apiManagementPortalSettingsGetSignIn() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsUpdateSample.ts index 27bb636125ce..c89f5a49379b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/signInSettingsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update Sign-In settings. * * @summary Update Sign-In settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json */ async function apiManagementPortalSettingsUpdateSignIn() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsCreateOrUpdateSample.ts index fccab7b1d0b1..ad1197c5fffd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update Sign-Up settings. * * @summary Create or Update Sign-Up settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignUp.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignUp.json */ async function apiManagementPortalSettingsUpdateSignUp() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsGetEntityTagSample.ts index ac42ebecd742..9143fe8bdcf0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the SignUpSettings. * * @summary Gets the entity state (Etag) version of the SignUpSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignUpSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignUpSettings.json */ async function apiManagementHeadSignUpSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsGetSample.ts index f12b3ca8ecbb..319a4b7bd46f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get Sign Up Settings for the Portal * * @summary Get Sign Up Settings for the Portal - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignUp.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignUp.json */ async function apiManagementPortalSettingsGetSignUp() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsUpdateSample.ts index de0026f44378..7741a12efa7e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/signUpSettingsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update Sign-Up settings. * * @summary Update Sign-Up settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json */ async function apiManagementPortalSettingsUpdateSignUp() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionCreateOrUpdateSample.ts index 58e9c315c128..05e275c85dc4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the subscription of specified user to the specified product. * * @summary Creates or updates the subscription of specified user to the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSubscription.json */ async function apiManagementCreateSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionDeleteSample.ts index 52f04d1e4e0b..67f671d3a2e2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified subscription. * * @summary Deletes the specified subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteSubscription.json */ async function apiManagementDeleteSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionGetEntityTagSample.ts index 0fb4c291a350..99b2bf3acad1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. * * @summary Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSubscription.json */ async function apiManagementHeadSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionGetSample.ts index e1e791729d3f..59dd2b118352 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Subscription entity. * * @summary Gets the specified Subscription entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetSubscription.json */ async function apiManagementGetSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionListSample.ts index 50c819caf62c..29b594046e65 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all subscriptions of the API Management service instance. * * @summary Lists all subscriptions of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSubscriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSubscriptions.json */ async function apiManagementListSubscriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionListSecretsSample.ts index 7ad90fb0c956..5965ee649a51 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Subscription keys. * * @summary Gets the specified Subscription keys. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionListSecrets.json */ async function apiManagementSubscriptionListSecrets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionRegeneratePrimaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionRegeneratePrimaryKeySample.ts index efc9913e4d57..28088928c4d8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionRegeneratePrimaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionRegeneratePrimaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates primary key of existing subscription of the API Management service instance. * * @summary Regenerates primary key of existing subscription of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json */ async function apiManagementSubscriptionRegeneratePrimaryKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionRegenerateSecondaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionRegenerateSecondaryKeySample.ts index e7b612b41a65..575f32f09ce0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionRegenerateSecondaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionRegenerateSecondaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates secondary key of existing subscription of the API Management service instance. * * @summary Regenerates secondary key of existing subscription of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json */ async function apiManagementSubscriptionRegenerateSecondaryKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionUpdateSample.ts index 6efb3a8ac4db..dcfdc0e6e6da 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/subscriptionUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of a subscription specified by its identifier. * * @summary Updates the details of a subscription specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateSubscription.json */ async function apiManagementUpdateSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToApiSample.ts index 50fc13e62d9e..52aa8cbe6993 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Assign tag to the Api. * * @summary Assign tag to the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTag.json */ async function apiManagementCreateApiTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToOperationSample.ts index 234bf061840a..720adf7c4489 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Assign tag to the Operation. * * @summary Assign tag to the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationTag.json */ async function apiManagementCreateApiOperationTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToProductSample.ts index e058a9521870..e7327d91cf64 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagAssignToProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Assign tag to the Product. * * @summary Assign tag to the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductTag.json */ async function apiManagementCreateProductTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagCreateOrUpdateSample.ts index da3c31bde828..95a59272991c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a tag. * * @summary Creates a tag. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTag.json */ async function apiManagementCreateTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagDeleteSample.ts index 7ba1eee5cd6c..ed2af0a78357 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific tag of the API Management service instance. * * @summary Deletes specific tag of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTag.json */ async function apiManagementDeleteTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromApiSample.ts index ba8e0bb6ffa8..adeb2e1c6ea6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Detach the tag from the Api. * * @summary Detach the tag from the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTag.json */ async function apiManagementDeleteApiTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromOperationSample.ts index 032ae67645c5..55ec990815ff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Detach the tag from the Operation. * * @summary Detach the tag from the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationTag.json */ async function apiManagementDeleteApiOperationTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromProductSample.ts index 5e36720be1d8..cc92c57bdf3b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagDetachFromProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Detach the tag from the Product. * * @summary Detach the tag from the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductTag.json */ async function apiManagementDeleteProductTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByApiSample.ts index 2330681ceb67..e1f4ad9b464f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tag associated with the API. * * @summary Get tag associated with the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTag.json */ async function apiManagementGetApiTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByOperationSample.ts index 15a725f8f3b7..b500b22c44c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tag associated with the Operation. * * @summary Get tag associated with the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationTag.json */ async function apiManagementGetApiOperationTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByProductSample.ts index 166fec04dd87..ed0443df7ae3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tag associated with the Product. * * @summary Get tag associated with the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductTag.json */ async function apiManagementGetProductTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByApiSample.ts index 3e7e280fab13..f412d5d3df32 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTag.json */ async function apiManagementHeadApiTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByOperationSample.ts index 8071f0deb119..d6d7ecab6aee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationTag.json */ async function apiManagementHeadApiOperationTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByProductSample.ts index 2f18f8d36cd6..b411670bbc87 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductTag.json */ async function apiManagementHeadProductTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateSample.ts index 08ed2193ae82..efab0cd07fa9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetEntityStateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTag.json */ async function apiManagementHeadTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetSample.ts index c691b7006e0a..a76bd73c4d04 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the tag specified by its identifier. * * @summary Gets the details of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTag.json */ async function apiManagementGetTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByApiSample.ts index e314b0697b13..d602d51dfd99 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Tags associated with the API. * * @summary Lists all Tags associated with the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTags.json */ async function apiManagementListApiTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByOperationSample.ts index 70bb4ba415ff..d5314d8a8c8e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Tags associated with the Operation. * * @summary Lists all Tags associated with the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationTags.json */ async function apiManagementListApiOperationTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByProductSample.ts index da391881fe9b..e5f974185617 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Tags associated with the Product. * * @summary Lists all Tags associated with the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductTags.json */ async function apiManagementListProductTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByServiceSample.ts index 1c8ddeea0333..1590eb84e906 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of tags defined within a service instance. * * @summary Lists a collection of tags defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTags.json */ async function apiManagementListTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagResourceListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagResourceListByServiceSample.ts index ec2bfab96fff..7e4fdbdb908a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagResourceListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagResourceListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of resources associated with tags. * * @summary Lists a collection of resources associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTagResources.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTagResources.json */ async function apiManagementListTagResources() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tagUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tagUpdateSample.ts index 087594dcaee8..c9cf0351412d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tagUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tagUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the tag specified by its identifier. * * @summary Updates the details of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTag.json */ async function apiManagementUpdateTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessCreateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessCreateSample.ts index 7ada5bfdf692..5980978da091 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessCreateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update tenant access information details. * * @summary Update tenant access information details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTenantAccess.json */ async function apiManagementCreateTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGetEntityTagSample.ts index 6d3acb424a4a..4ad470bacf74 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Tenant access metadata * * @summary Tenant access metadata - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTenantAccess.json */ async function apiManagementHeadTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGetSample.ts index 9a40950f740a..89a00b00a34c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tenant access information details without secrets. * * @summary Get tenant access information details without secrets. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantAccess.json */ async function apiManagementGetTenantAccess() { const subscriptionId = @@ -41,7 +41,7 @@ async function apiManagementGetTenantAccess() { * This sample demonstrates how to Get tenant access information details without secrets. * * @summary Get tenant access information details without secrets. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantGitAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantGitAccess.json */ async function apiManagementGetTenantGitAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGitRegeneratePrimaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGitRegeneratePrimaryKeySample.ts index 5c3c2be94531..b0ebbca83394 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGitRegeneratePrimaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGitRegeneratePrimaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate primary access key for GIT. * * @summary Regenerate primary access key for GIT. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGitRegenerateSecondaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGitRegenerateSecondaryKeySample.ts index f65eca681ad1..237541c234c1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGitRegenerateSecondaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessGitRegenerateSecondaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate secondary access key for GIT. * * @summary Regenerate secondary access key for GIT. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessListByServiceSample.ts index eb80a00ad6d5..b639a89e236d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns list of access infos - for Git and Management endpoints. * * @summary Returns list of access infos - for Git and Management endpoints. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantAccess.json */ async function apiManagementListTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessListSecretsSample.ts index 289a8134e38f..084ace7979c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tenant access information details. * * @summary Get tenant access information details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsTenantAccess.json */ async function apiManagementListSecretsTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessRegeneratePrimaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessRegeneratePrimaryKeySample.ts index a4cf03f214f3..ba54ff5d6c7f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessRegeneratePrimaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessRegeneratePrimaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate primary access key * * @summary Regenerate primary access key - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessRegenerateSecondaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessRegenerateSecondaryKeySample.ts index dc48ddbbf4d2..5bf80798e4e1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessRegenerateSecondaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessRegenerateSecondaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate secondary access key * * @summary Regenerate secondary access key - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessUpdateSample.ts index 7ef47158b24e..0a45399af35d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantAccessUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update tenant access information details. * * @summary Update tenant access information details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTenantAccess.json */ async function apiManagementUpdateTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationDeploySample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationDeploySample.ts index 1ea15aa09021..30a6f486f333 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationDeploySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationDeploySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. * * @summary This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationDeploy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationDeploy.json */ async function apiManagementTenantConfigurationDeploy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationGetSyncStateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationGetSyncStateSample.ts index 5d9fd75c2379..183413c070e7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationGetSyncStateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationGetSyncStateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of the most recent synchronization between the configuration database and the Git repository. * * @summary Gets the status of the most recent synchronization between the configuration database and the Git repository. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessSyncState.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessSyncState.json */ async function apiManagementTenantAccessSyncState() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationSaveSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationSaveSample.ts index 418106b9b5be..339b7d8e350b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationSaveSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationSaveSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. * * @summary This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationSave.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationSave.json */ async function apiManagementTenantConfigurationSave() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationValidateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationValidateSample.ts index 8989ab0f761b..593245c52c97 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationValidateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantConfigurationValidateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. * * @summary This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationValidate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationValidate.json */ async function apiManagementTenantConfigurationValidate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantSettingsGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantSettingsGetSample.ts index 21794d9d7346..62f39d5d4132 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantSettingsGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantSettingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tenant settings. * * @summary Get tenant settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantSettings.json */ async function apiManagementGetTenantSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantSettingsListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantSettingsListByServiceSample.ts index 295f44ca712f..bee5b4a6d6fd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/tenantSettingsListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/tenantSettingsListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Public settings. * * @summary Public settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantSettings.json */ async function apiManagementListTenantSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userConfirmationPasswordSendSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userConfirmationPasswordSendSample.ts index 041e893ec5a5..fbab7fc3a2cb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userConfirmationPasswordSendSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userConfirmationPasswordSendSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Sends confirmation * * @summary Sends confirmation - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserConfirmationPasswordSend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserConfirmationPasswordSend.json */ async function apiManagementUserConfirmationPasswordSend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userCreateOrUpdateSample.ts index caec5fb731b8..f21acf2952a6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a user. * * @summary Creates or Updates a user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateUser.json */ async function apiManagementCreateUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userDeleteSample.ts index 6ad89e436f66..b07039d2c5ab 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific user. * * @summary Deletes specific user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteUser.json */ async function apiManagementDeleteUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userGenerateSsoUrlSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userGenerateSsoUrlSample.ts index d7370913668e..f1e39fe5ea16 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userGenerateSsoUrlSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userGenerateSsoUrlSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. * * @summary Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserGenerateSsoUrl.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserGenerateSsoUrl.json */ async function apiManagementUserGenerateSsoUrl() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userGetEntityTagSample.ts index 83df23f0bff6..a8d971057e1e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the user specified by its identifier. * * @summary Gets the entity state (Etag) version of the user specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadUser.json */ async function apiManagementHeadUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userGetSample.ts index 1694976a133a..af21ca84b0c8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the user specified by its identifier. * * @summary Gets the details of the user specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUser.json */ async function apiManagementGetUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userGetSharedAccessTokenSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userGetSharedAccessTokenSample.ts index 84dae8b52843..dae88fd58203 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userGetSharedAccessTokenSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userGetSharedAccessTokenSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Shared Access Authorization Token for the User. * * @summary Gets the Shared Access Authorization Token for the User. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserToken.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserToken.json */ async function apiManagementUserToken() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userGroupListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userGroupListSample.ts index 398696727ecc..633fea2229a3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userGroupListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userGroupListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all user groups. * * @summary Lists all user groups. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserGroups.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserGroups.json */ async function apiManagementListUserGroups() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userIdentitiesListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userIdentitiesListSample.ts index 5d39e7ff2881..0e7f010d6fcf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userIdentitiesListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userIdentitiesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List of all user identities. * * @summary List of all user identities. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserIdentities.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserIdentities.json */ async function apiManagementListUserIdentities() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userListByServiceSample.ts index 673c561426c2..b212a1781a0b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of registered users in the specified service instance. * * @summary Lists a collection of registered users in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUsers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUsers.json */ async function apiManagementListUsers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userSubscriptionGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userSubscriptionGetSample.ts index e31ac7b92ad2..d64b3f87dfc2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userSubscriptionGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userSubscriptionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Subscription entity associated with a particular user. * * @summary Gets the specified Subscription entity associated with a particular user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUserSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUserSubscription.json */ async function apiManagementGetUserSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userSubscriptionListSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userSubscriptionListSample.ts index 47ff2cee1c52..47fe92e03081 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userSubscriptionListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userSubscriptionListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of subscriptions of the specified user. * * @summary Lists the collection of subscriptions of the specified user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserSubscriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserSubscriptions.json */ async function apiManagementListUserSubscriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples-dev/userUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples-dev/userUpdateSample.ts index 043bb851c39f..17b2ed83fcea 100644 --- a/sdk/apimanagement/arm-apimanagement/samples-dev/userUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples-dev/userUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the user specified by its identifier. * * @summary Updates the details of the user specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateUser.json */ async function apiManagementUpdateUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/README.md b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/README.md index 2878b1c57887..f7c8e6d4399b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/README.md +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/README.md @@ -4,350 +4,405 @@ These sample programs show how to use the JavaScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [apiCreateOrUpdateSample.js][apicreateorupdatesample] | Creates new or updates existing specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApi.json | -| [apiDeleteSample.js][apideletesample] | Deletes the specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApi.json | -| [apiDiagnosticCreateOrUpdateSample.js][apidiagnosticcreateorupdatesample] | Creates a new Diagnostic for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiDiagnostic.json | -| [apiDiagnosticDeleteSample.js][apidiagnosticdeletesample] | Deletes the specified Diagnostic from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiDiagnostic.json | -| [apiDiagnosticGetEntityTagSample.js][apidiagnosticgetentitytagsample] | Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiDiagnostic.json | -| [apiDiagnosticGetSample.js][apidiagnosticgetsample] | Gets the details of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiDiagnostic.json | -| [apiDiagnosticListByServiceSample.js][apidiagnosticlistbyservicesample] | Lists all diagnostics of an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiDiagnostics.json | -| [apiDiagnosticUpdateSample.js][apidiagnosticupdatesample] | Updates the details of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiDiagnostic.json | -| [apiExportGetSample.js][apiexportgetsample] | 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. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json | -| [apiGetEntityTagSample.js][apigetentitytagsample] | Gets the entity state (Etag) version of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApi.json | -| [apiGetSample.js][apigetsample] | Gets the details of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiContract.json | -| [apiIssueAttachmentCreateOrUpdateSample.js][apiissueattachmentcreateorupdatesample] | Creates a new Attachment for the Issue in an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueAttachment.json | -| [apiIssueAttachmentDeleteSample.js][apiissueattachmentdeletesample] | Deletes the specified comment from an Issue. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueAttachment.json | -| [apiIssueAttachmentGetEntityTagSample.js][apiissueattachmentgetentitytagsample] | Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueAttachment.json | -| [apiIssueAttachmentGetSample.js][apiissueattachmentgetsample] | Gets the details of the issue Attachment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueAttachment.json | -| [apiIssueAttachmentListByServiceSample.js][apiissueattachmentlistbyservicesample] | Lists all attachments for the Issue associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueAttachments.json | -| [apiIssueCommentCreateOrUpdateSample.js][apiissuecommentcreateorupdatesample] | Creates a new Comment for the Issue in an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueComment.json | -| [apiIssueCommentDeleteSample.js][apiissuecommentdeletesample] | Deletes the specified comment from an Issue. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueComment.json | -| [apiIssueCommentGetEntityTagSample.js][apiissuecommentgetentitytagsample] | Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueComment.json | -| [apiIssueCommentGetSample.js][apiissuecommentgetsample] | Gets the details of the issue Comment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueComment.json | -| [apiIssueCommentListByServiceSample.js][apiissuecommentlistbyservicesample] | Lists all comments for the Issue associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueComments.json | -| [apiIssueCreateOrUpdateSample.js][apiissuecreateorupdatesample] | Creates a new Issue for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssue.json | -| [apiIssueDeleteSample.js][apiissuedeletesample] | Deletes the specified Issue from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssue.json | -| [apiIssueGetEntityTagSample.js][apiissuegetentitytagsample] | Gets the entity state (Etag) version of the Issue for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssue.json | -| [apiIssueGetSample.js][apiissuegetsample] | Gets the details of the Issue for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssue.json | -| [apiIssueListByServiceSample.js][apiissuelistbyservicesample] | Lists all issues associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssues.json | -| [apiIssueUpdateSample.js][apiissueupdatesample] | Updates an existing issue for an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiIssue.json | -| [apiListByServiceSample.js][apilistbyservicesample] | Lists all APIs of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApis.json | -| [apiListByTagsSample.js][apilistbytagssample] | Lists a collection of apis associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApisByTags.json | -| [apiManagementOperationsListSample.js][apimanagementoperationslistsample] | Lists all of the available REST API operations of the Microsoft.ApiManagement provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOperations.json | -| [apiManagementServiceApplyNetworkConfigurationUpdatesSample.js][apimanagementserviceapplynetworkconfigurationupdatessample] | Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json | -| [apiManagementServiceBackupSample.js][apimanagementservicebackupsample] | Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithAccessKey.json | -| [apiManagementServiceCheckNameAvailabilitySample.js][apimanagementservicechecknameavailabilitysample] | Checks availability and correctness of a name for an API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceCheckNameAvailability.json | -| [apiManagementServiceCreateOrUpdateSample.js][apimanagementservicecreateorupdatesample] | Creates or updates an API Management service. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json | -| [apiManagementServiceDeleteSample.js][apimanagementservicedeletesample] | Deletes an existing API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceDeleteService.json | -| [apiManagementServiceGetDomainOwnershipIdentifierSample.js][apimanagementservicegetdomainownershipidentifiersample] | Get the custom domain ownership identifier for an API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json | -| [apiManagementServiceGetSample.js][apimanagementservicegetsample] | Gets an API Management service resource description. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json | -| [apiManagementServiceGetSsoTokenSample.js][apimanagementservicegetssotokensample] | Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetSsoToken.json | -| [apiManagementServiceListByResourceGroupSample.js][apimanagementservicelistbyresourcegroupsample] | List all API Management services within a resource group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json | -| [apiManagementServiceListSample.js][apimanagementservicelistsample] | Lists all API Management services within an Azure subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscription.json | -| [apiManagementServiceRestoreSample.js][apimanagementservicerestoresample] | Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRestoreWithAccessKey.json | -| [apiManagementServiceSkusListAvailableServiceSkusSample.js][apimanagementserviceskuslistavailableserviceskussample] | Gets all available SKU for a given API Management service x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSKUs-Consumption.json | -| [apiManagementServiceUpdateSample.js][apimanagementserviceupdatesample] | Updates an existing API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServiceDisableTls10.json | -| [apiManagementSkusListSample.js][apimanagementskuslistsample] | Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSku.json | -| [apiOperationCreateOrUpdateSample.js][apioperationcreateorupdatesample] | Creates a new operation in the API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperation.json | -| [apiOperationDeleteSample.js][apioperationdeletesample] | Deletes the specified operation in the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperation.json | -| [apiOperationGetEntityTagSample.js][apioperationgetentitytagsample] | Gets the entity state (Etag) version of the API operation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperation.json | -| [apiOperationGetSample.js][apioperationgetsample] | Gets the details of the API Operation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperation.json | -| [apiOperationListByApiSample.js][apioperationlistbyapisample] | Lists a collection of the operations for the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperations.json | -| [apiOperationPolicyCreateOrUpdateSample.js][apioperationpolicycreateorupdatesample] | Creates or updates policy configuration for the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationPolicy.json | -| [apiOperationPolicyDeleteSample.js][apioperationpolicydeletesample] | Deletes the policy configuration at the Api Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationPolicy.json | -| [apiOperationPolicyGetEntityTagSample.js][apioperationpolicygetentitytagsample] | Gets the entity state (Etag) version of the API operation policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationPolicy.json | -| [apiOperationPolicyGetSample.js][apioperationpolicygetsample] | Get the policy configuration at the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationPolicy.json | -| [apiOperationPolicyListByOperationSample.js][apioperationpolicylistbyoperationsample] | Get the list of policy configuration at the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationPolicies.json | -| [apiOperationUpdateSample.js][apioperationupdatesample] | Updates the details of the operation in the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiOperation.json | -| [apiPolicyCreateOrUpdateSample.js][apipolicycreateorupdatesample] | Creates or updates policy configuration for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiPolicy.json | -| [apiPolicyDeleteSample.js][apipolicydeletesample] | Deletes the policy configuration at the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiPolicy.json | -| [apiPolicyGetEntityTagSample.js][apipolicygetentitytagsample] | Gets the entity state (Etag) version of the API policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiPolicy.json | -| [apiPolicyGetSample.js][apipolicygetsample] | Get the policy configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiPolicy.json | -| [apiPolicyListByApiSample.js][apipolicylistbyapisample] | Get the policy configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiPolicies.json | -| [apiProductListByApisSample.js][apiproductlistbyapissample] | Lists all Products, which the API is part of. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiProducts.json | -| [apiReleaseCreateOrUpdateSample.js][apireleasecreateorupdatesample] | Creates a new Release for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiRelease.json | -| [apiReleaseDeleteSample.js][apireleasedeletesample] | Deletes the specified release in the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiRelease.json | -| [apiReleaseGetEntityTagSample.js][apireleasegetentitytagsample] | Returns the etag of an API release. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiRelease.json | -| [apiReleaseGetSample.js][apireleasegetsample] | Returns the details of an API release. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiRelease.json | -| [apiReleaseListByServiceSample.js][apireleaselistbyservicesample] | 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. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiReleases.json | -| [apiReleaseUpdateSample.js][apireleaseupdatesample] | Updates the details of the release of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiRelease.json | -| [apiRevisionListByServiceSample.js][apirevisionlistbyservicesample] | Lists all revisions of an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiRevisions.json | -| [apiSchemaCreateOrUpdateSample.js][apischemacreateorupdatesample] | Creates or updates schema configuration for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiSchema.json | -| [apiSchemaDeleteSample.js][apischemadeletesample] | Deletes the schema configuration at the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiSchema.json | -| [apiSchemaGetEntityTagSample.js][apischemagetentitytagsample] | Gets the entity state (Etag) version of the schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiSchema.json | -| [apiSchemaGetSample.js][apischemagetsample] | Get the schema configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiSchema.json | -| [apiSchemaListByApiSample.js][apischemalistbyapisample] | Get the schema configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiSchemas.json | -| [apiTagDescriptionCreateOrUpdateSample.js][apitagdescriptioncreateorupdatesample] | Create/Update tag description in scope of the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTagDescription.json | -| [apiTagDescriptionDeleteSample.js][apitagdescriptiondeletesample] | Delete tag description for the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTagDescription.json | -| [apiTagDescriptionGetEntityTagSample.js][apitagdescriptiongetentitytagsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTagDescription.json | -| [apiTagDescriptionGetSample.js][apitagdescriptiongetsample] | Get Tag description in scope of API x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTagDescription.json | -| [apiTagDescriptionListByServiceSample.js][apitagdescriptionlistbyservicesample] | Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTagDescriptions.json | -| [apiUpdateSample.js][apiupdatesample] | Updates the specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApi.json | -| [apiVersionSetCreateOrUpdateSample.js][apiversionsetcreateorupdatesample] | Creates or Updates a Api Version Set. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiVersionSet.json | -| [apiVersionSetDeleteSample.js][apiversionsetdeletesample] | Deletes specific Api Version Set. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiVersionSet.json | -| [apiVersionSetGetEntityTagSample.js][apiversionsetgetentitytagsample] | Gets the entity state (Etag) version of the Api Version Set specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiVersionSet.json | -| [apiVersionSetGetSample.js][apiversionsetgetsample] | Gets the details of the Api Version Set specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiVersionSet.json | -| [apiVersionSetListByServiceSample.js][apiversionsetlistbyservicesample] | Lists a collection of API Version Sets in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiVersionSets.json | -| [apiVersionSetUpdateSample.js][apiversionsetupdatesample] | Updates the details of the Api VersionSet specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiVersionSet.json | -| [authorizationServerCreateOrUpdateSample.js][authorizationservercreateorupdatesample] | Creates new authorization server or updates an existing authorization server. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAuthorizationServer.json | -| [authorizationServerDeleteSample.js][authorizationserverdeletesample] | Deletes specific authorization server instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteAuthorizationServer.json | -| [authorizationServerGetEntityTagSample.js][authorizationservergetentitytagsample] | Gets the entity state (Etag) version of the authorizationServer specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadAuthorizationServer.json | -| [authorizationServerGetSample.js][authorizationservergetsample] | Gets the details of the authorization server specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetAuthorizationServer.json | -| [authorizationServerListByServiceSample.js][authorizationserverlistbyservicesample] | Lists a collection of authorization servers defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListAuthorizationServers.json | -| [authorizationServerListSecretsSample.js][authorizationserverlistsecretssample] | Gets the client secret details of the authorization server. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementAuthorizationServerListSecrets.json | -| [authorizationServerUpdateSample.js][authorizationserverupdatesample] | Updates the details of the authorization server specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateAuthorizationServer.json | -| [backendCreateOrUpdateSample.js][backendcreateorupdatesample] | Creates or Updates a backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateBackendProxyBackend.json | -| [backendDeleteSample.js][backenddeletesample] | Deletes the specified backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteBackend.json | -| [backendGetEntityTagSample.js][backendgetentitytagsample] | Gets the entity state (Etag) version of the backend specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadBackend.json | -| [backendGetSample.js][backendgetsample] | Gets the details of the backend specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetBackend.json | -| [backendListByServiceSample.js][backendlistbyservicesample] | Lists a collection of backends in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListBackends.json | -| [backendReconnectSample.js][backendreconnectsample] | Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackendReconnect.json | -| [backendUpdateSample.js][backendupdatesample] | Updates an existing backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateBackend.json | -| [cacheCreateOrUpdateSample.js][cachecreateorupdatesample] | Creates or updates an External Cache to be used in Api Management instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCache.json | -| [cacheDeleteSample.js][cachedeletesample] | Deletes specific Cache. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCache.json | -| [cacheGetEntityTagSample.js][cachegetentitytagsample] | Gets the entity state (Etag) version of the Cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCache.json | -| [cacheGetSample.js][cachegetsample] | Gets the details of the Cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCache.json | -| [cacheListByServiceSample.js][cachelistbyservicesample] | Lists a collection of all external Caches in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCaches.json | -| [cacheUpdateSample.js][cacheupdatesample] | Updates the details of the cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateCache.json | -| [certificateCreateOrUpdateSample.js][certificatecreateorupdatesample] | Creates or updates the certificate being used for authentication with the backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCertificate.json | -| [certificateDeleteSample.js][certificatedeletesample] | Deletes specific certificate. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCertificate.json | -| [certificateGetEntityTagSample.js][certificategetentitytagsample] | Gets the entity state (Etag) version of the certificate specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCertificate.json | -| [certificateGetSample.js][certificategetsample] | Gets the details of the certificate specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCertificate.json | -| [certificateListByServiceSample.js][certificatelistbyservicesample] | Lists a collection of all certificates in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCertificates.json | -| [certificateRefreshSecretSample.js][certificaterefreshsecretsample] | From KeyVault, Refresh the certificate being used for authentication with the backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshCertificate.json | -| [contentItemCreateOrUpdateSample.js][contentitemcreateorupdatesample] | Creates a new developer portal's content item specified by the provided content type. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentTypeContentItem.json | -| [contentItemDeleteSample.js][contentitemdeletesample] | Removes the specified developer portal's content item. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentTypeContentItem.json | -| [contentItemGetEntityTagSample.js][contentitemgetentitytagsample] | Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadContentTypeContentItem.json | -| [contentItemGetSample.js][contentitemgetsample] | Returns the developer portal's content item specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentTypeContentItem.json | -| [contentItemListByServiceSample.js][contentitemlistbyservicesample] | Lists developer portal's content items specified by the provided content type. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypeContentItems.json | -| [contentTypeCreateOrUpdateSample.js][contenttypecreateorupdatesample] | Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentType.json | -| [contentTypeDeleteSample.js][contenttypedeletesample] | Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentType.json | -| [contentTypeGetSample.js][contenttypegetsample] | Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentType.json | -| [contentTypeListByServiceSample.js][contenttypelistbyservicesample] | Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypes.json | -| [delegationSettingsCreateOrUpdateSample.js][delegationsettingscreateorupdatesample] | Create or Update Delegation settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutDelegation.json | -| [delegationSettingsGetEntityTagSample.js][delegationsettingsgetentitytagsample] | Gets the entity state (Etag) version of the DelegationSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDelegationSettings.json | -| [delegationSettingsGetSample.js][delegationsettingsgetsample] | Get Delegation Settings for the Portal. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetDelegation.json | -| [delegationSettingsListSecretsSample.js][delegationsettingslistsecretssample] | Gets the secret validation key of the DelegationSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json | -| [delegationSettingsUpdateSample.js][delegationsettingsupdatesample] | Update Delegation settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json | -| [deletedServicesGetByNameSample.js][deletedservicesgetbynamesample] | Get soft-deleted Api Management Service by name. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDeletedServiceByName.json | -| [deletedServicesListBySubscriptionSample.js][deletedserviceslistbysubscriptionsample] | Lists all soft-deleted services available for undelete for the given subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesListBySubscription.json | -| [deletedServicesPurgeSample.js][deletedservicespurgesample] | Purges Api Management Service (deletes it with no option to undelete). x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesPurge.json | -| [diagnosticCreateOrUpdateSample.js][diagnosticcreateorupdatesample] | Creates a new Diagnostic or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateDiagnostic.json | -| [diagnosticDeleteSample.js][diagnosticdeletesample] | Deletes the specified Diagnostic. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteDiagnostic.json | -| [diagnosticGetEntityTagSample.js][diagnosticgetentitytagsample] | Gets the entity state (Etag) version of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDiagnostic.json | -| [diagnosticGetSample.js][diagnosticgetsample] | Gets the details of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDiagnostic.json | -| [diagnosticListByServiceSample.js][diagnosticlistbyservicesample] | Lists all diagnostics of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListDiagnostics.json | -| [diagnosticUpdateSample.js][diagnosticupdatesample] | Updates the details of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateDiagnostic.json | -| [emailTemplateCreateOrUpdateSample.js][emailtemplatecreateorupdatesample] | Updates an Email Template. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTemplate.json | -| [emailTemplateDeleteSample.js][emailtemplatedeletesample] | Reset the Email Template to default template provided by the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTemplate.json | -| [emailTemplateGetEntityTagSample.js][emailtemplategetentitytagsample] | Gets the entity state (Etag) version of the email template specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadEmailTemplate.json | -| [emailTemplateGetSample.js][emailtemplategetsample] | Gets the details of the email template specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTemplate.json | -| [emailTemplateListByServiceSample.js][emailtemplatelistbyservicesample] | Gets all email templates x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTemplates.json | -| [emailTemplateUpdateSample.js][emailtemplateupdatesample] | Updates API Management email template x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTemplate.json | -| [gatewayApiCreateOrUpdateSample.js][gatewayapicreateorupdatesample] | Adds an API to the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayApi.json | -| [gatewayApiDeleteSample.js][gatewayapideletesample] | Deletes the specified API from the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayApi.json | -| [gatewayApiGetEntityTagSample.js][gatewayapigetentitytagsample] | Checks that API entity specified by identifier is associated with the Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayApi.json | -| [gatewayApiListByServiceSample.js][gatewayapilistbyservicesample] | Lists a collection of the APIs associated with a gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayApis.json | -| [gatewayCertificateAuthorityCreateOrUpdateSample.js][gatewaycertificateauthoritycreateorupdatesample] | Assign Certificate entity to Gateway entity as Certificate Authority. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json | -| [gatewayCertificateAuthorityDeleteSample.js][gatewaycertificateauthoritydeletesample] | Remove relationship between Certificate Authority and Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json | -| [gatewayCertificateAuthorityGetEntityTagSample.js][gatewaycertificateauthoritygetentitytagsample] | Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json | -| [gatewayCertificateAuthorityGetSample.js][gatewaycertificateauthoritygetsample] | Get assigned Gateway Certificate Authority details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json | -| [gatewayCertificateAuthorityListByServiceSample.js][gatewaycertificateauthoritylistbyservicesample] | Lists the collection of Certificate Authorities for the specified Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json | -| [gatewayCreateOrUpdateSample.js][gatewaycreateorupdatesample] | Creates or updates a Gateway to be used in Api Management instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGateway.json | -| [gatewayDeleteSample.js][gatewaydeletesample] | Deletes specific Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGateway.json | -| [gatewayGenerateTokenSample.js][gatewaygeneratetokensample] | Gets the Shared Access Authorization Token for the gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayGenerateToken.json | -| [gatewayGetEntityTagSample.js][gatewaygetentitytagsample] | Gets the entity state (Etag) version of the Gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGateway.json | -| [gatewayGetSample.js][gatewaygetsample] | Gets the details of the Gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGateway.json | -| [gatewayHostnameConfigurationCreateOrUpdateSample.js][gatewayhostnameconfigurationcreateorupdatesample] | Creates of updates hostname configuration for a Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json | -| [gatewayHostnameConfigurationDeleteSample.js][gatewayhostnameconfigurationdeletesample] | Deletes the specified hostname configuration from the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json | -| [gatewayHostnameConfigurationGetEntityTagSample.js][gatewayhostnameconfigurationgetentitytagsample] | Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json | -| [gatewayHostnameConfigurationGetSample.js][gatewayhostnameconfigurationgetsample] | Get details of a hostname configuration x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json | -| [gatewayHostnameConfigurationListByServiceSample.js][gatewayhostnameconfigurationlistbyservicesample] | Lists the collection of hostname configurations for the specified gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json | -| [gatewayListByServiceSample.js][gatewaylistbyservicesample] | Lists a collection of gateways registered with service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGateways.json | -| [gatewayListKeysSample.js][gatewaylistkeyssample] | Retrieves gateway keys. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayListKeys.json | -| [gatewayRegenerateKeySample.js][gatewayregeneratekeysample] | Regenerates specified gateway key invalidating any tokens created with it. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayRegenerateKey.json | -| [gatewayUpdateSample.js][gatewayupdatesample] | Updates the details of the gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGateway.json | -| [globalSchemaCreateOrUpdateSample.js][globalschemacreateorupdatesample] | Creates new or updates existing specified Schema of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGlobalSchema1.json | -| [globalSchemaDeleteSample.js][globalschemadeletesample] | Deletes specific Schema. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGlobalSchema.json | -| [globalSchemaGetEntityTagSample.js][globalschemagetentitytagsample] | Gets the entity state (Etag) version of the Schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGlobalSchema.json | -| [globalSchemaGetSample.js][globalschemagetsample] | Gets the details of the Schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGlobalSchema1.json | -| [globalSchemaListByServiceSample.js][globalschemalistbyservicesample] | Lists a collection of schemas registered with service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGlobalSchemas.json | -| [groupCreateOrUpdateSample.js][groupcreateorupdatesample] | Creates or Updates a group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroup.json | -| [groupDeleteSample.js][groupdeletesample] | Deletes specific group of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroup.json | -| [groupGetEntityTagSample.js][groupgetentitytagsample] | Gets the entity state (Etag) version of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroup.json | -| [groupGetSample.js][groupgetsample] | Gets the details of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGroup.json | -| [groupListByServiceSample.js][grouplistbyservicesample] | Lists a collection of groups defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroups.json | -| [groupUpdateSample.js][groupupdatesample] | Updates the details of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGroup.json | -| [groupUserCheckEntityExistsSample.js][groupusercheckentityexistssample] | Checks that user entity specified by identifier is associated with the group entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroupUser.json | -| [groupUserCreateSample.js][groupusercreatesample] | Add existing user to existing group x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroupUser.json | -| [groupUserDeleteSample.js][groupuserdeletesample] | Remove existing user from existing group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroupUser.json | -| [groupUserListSample.js][groupuserlistsample] | Lists a collection of user entities associated with the group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroupUsers.json | -| [identityProviderCreateOrUpdateSample.js][identityprovidercreateorupdatesample] | Creates or Updates the IdentityProvider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateIdentityProvider.json | -| [identityProviderDeleteSample.js][identityproviderdeletesample] | Deletes the specified identity provider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteIdentityProvider.json | -| [identityProviderGetEntityTagSample.js][identityprovidergetentitytagsample] | Gets the entity state (Etag) version of the identityProvider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadIdentityProvider.json | -| [identityProviderGetSample.js][identityprovidergetsample] | Gets the configuration details of the identity Provider configured in specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIdentityProvider.json | -| [identityProviderListByServiceSample.js][identityproviderlistbyservicesample] | Lists a collection of Identity Provider configured in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIdentityProviders.json | -| [identityProviderListSecretsSample.js][identityproviderlistsecretssample] | Gets the client secret details of the Identity Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementIdentityProviderListSecrets.json | -| [identityProviderUpdateSample.js][identityproviderupdatesample] | Updates an existing IdentityProvider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateIdentityProvider.json | -| [issueGetSample.js][issuegetsample] | Gets API Management issue details x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIssue.json | -| [issueListByServiceSample.js][issuelistbyservicesample] | Lists a collection of issues in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIssues.json | -| [loggerCreateOrUpdateSample.js][loggercreateorupdatesample] | Creates or Updates a logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAILogger.json | -| [loggerDeleteSample.js][loggerdeletesample] | Deletes the specified logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteLogger.json | -| [loggerGetEntityTagSample.js][loggergetentitytagsample] | Gets the entity state (Etag) version of the logger specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadLogger.json | -| [loggerGetSample.js][loggergetsample] | Gets the details of the logger specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetLogger.json | -| [loggerListByServiceSample.js][loggerlistbyservicesample] | Lists a collection of loggers in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListLoggers.json | -| [loggerUpdateSample.js][loggerupdatesample] | Updates an existing logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateLogger.json | -| [namedValueCreateOrUpdateSample.js][namedvaluecreateorupdatesample] | Creates or updates named value. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNamedValue.json | -| [namedValueDeleteSample.js][namedvaluedeletesample] | Deletes specific named value from the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNamedValue.json | -| [namedValueGetEntityTagSample.js][namedvaluegetentitytagsample] | Gets the entity state (Etag) version of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNamedValue.json | -| [namedValueGetSample.js][namedvaluegetsample] | Gets the details of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNamedValue.json | -| [namedValueListByServiceSample.js][namedvaluelistbyservicesample] | Lists a collection of named values defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNamedValues.json | -| [namedValueListValueSample.js][namedvaluelistvaluesample] | Gets the secret of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementNamedValueListValue.json | -| [namedValueRefreshSecretSample.js][namedvaluerefreshsecretsample] | Refresh the secret of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshNamedValue.json | -| [namedValueUpdateSample.js][namedvalueupdatesample] | Updates the specific named value. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateNamedValue.json | -| [networkStatusListByLocationSample.js][networkstatuslistbylocationsample] | Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json | -| [networkStatusListByServiceSample.js][networkstatuslistbyservicesample] | Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatus.json | -| [notificationCreateOrUpdateSample.js][notificationcreateorupdatesample] | Create or Update API Management publisher notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotification.json | -| [notificationGetSample.js][notificationgetsample] | Gets the details of the Notification specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNotification.json | -| [notificationListByServiceSample.js][notificationlistbyservicesample] | Lists a collection of properties defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotifications.json | -| [notificationRecipientEmailCheckEntityExistsSample.js][notificationrecipientemailcheckentityexistssample] | Determine if Notification Recipient Email subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json | -| [notificationRecipientEmailCreateOrUpdateSample.js][notificationrecipientemailcreateorupdatesample] | Adds the Email address to the list of Recipients for the Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json | -| [notificationRecipientEmailDeleteSample.js][notificationrecipientemaildeletesample] | Removes the email from the list of Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json | -| [notificationRecipientEmailListByNotificationSample.js][notificationrecipientemaillistbynotificationsample] | Gets the list of the Notification Recipient Emails subscribed to a notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientEmails.json | -| [notificationRecipientUserCheckEntityExistsSample.js][notificationrecipientusercheckentityexistssample] | Determine if the Notification Recipient User is subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientUser.json | -| [notificationRecipientUserCreateOrUpdateSample.js][notificationrecipientusercreateorupdatesample] | Adds the API Management User to the list of Recipients for the Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientUser.json | -| [notificationRecipientUserDeleteSample.js][notificationrecipientuserdeletesample] | Removes the API Management user from the list of Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json | -| [notificationRecipientUserListByNotificationSample.js][notificationrecipientuserlistbynotificationsample] | Gets the list of the Notification Recipient User subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientUsers.json | -| [openIdConnectProviderCreateOrUpdateSample.js][openidconnectprovidercreateorupdatesample] | Creates or updates the OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json | -| [openIdConnectProviderDeleteSample.js][openidconnectproviderdeletesample] | Deletes specific OpenID Connect Provider of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json | -| [openIdConnectProviderGetEntityTagSample.js][openidconnectprovidergetentitytagsample] | Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json | -| [openIdConnectProviderGetSample.js][openidconnectprovidergetsample] | Gets specific OpenID Connect Provider without secrets. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetOpenIdConnectProvider.json | -| [openIdConnectProviderListByServiceSample.js][openidconnectproviderlistbyservicesample] | Lists of all the OpenId Connect Providers. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOpenIdConnectProviders.json | -| [openIdConnectProviderListSecretsSample.js][openidconnectproviderlistsecretssample] | Gets the client secret details of the OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json | -| [openIdConnectProviderUpdateSample.js][openidconnectproviderupdatesample] | Updates the specific OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json | -| [operationListByTagsSample.js][operationlistbytagssample] | Lists a collection of operations associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationsByTags.json | -| [outboundNetworkDependenciesEndpointsListByServiceSample.js][outboundnetworkdependenciesendpointslistbyservicesample] | Gets the network endpoints of all outbound dependencies of a ApiManagement service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json | -| [performConnectivityCheckAsyncSample.js][performconnectivitycheckasyncsample] | Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json | -| [policyCreateOrUpdateSample.js][policycreateorupdatesample] | Creates or updates the global policy configuration of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePolicy.json | -| [policyDeleteSample.js][policydeletesample] | Deletes the global policy configuration of the Api Management Service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePolicy.json | -| [policyDescriptionListByServiceSample.js][policydescriptionlistbyservicesample] | Lists all policy descriptions. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicyDescriptions.json | -| [policyGetEntityTagSample.js][policygetentitytagsample] | Gets the entity state (Etag) version of the Global policy definition in the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPolicy.json | -| [policyGetSample.js][policygetsample] | Get the Global policy definition of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPolicy.json | -| [policyListByServiceSample.js][policylistbyservicesample] | Lists all the Global Policy definitions of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicies.json | -| [portalRevisionCreateOrUpdateSample.js][portalrevisioncreateorupdatesample] | Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePortalRevision.json | -| [portalRevisionGetEntityTagSample.js][portalrevisiongetentitytagsample] | Gets the developer portal revision specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPortalRevision.json | -| [portalRevisionGetSample.js][portalrevisiongetsample] | Gets the developer portal's revision specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPortalRevision.json | -| [portalRevisionListByServiceSample.js][portalrevisionlistbyservicesample] | Lists developer portal's revisions. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalRevisions.json | -| [portalRevisionUpdateSample.js][portalrevisionupdatesample] | Updates the description of specified portal revision or makes it current. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdatePortalRevision.json | -| [portalSettingsListByServiceSample.js][portalsettingslistbyservicesample] | Lists a collection of portalsettings defined within a service instance.. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalSettings.json | -| [privateEndpointConnectionCreateOrUpdateSample.js][privateendpointconnectioncreateorupdatesample] | Creates a new Private Endpoint Connection or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json | -| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified Private Endpoint Connection. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json | -| [privateEndpointConnectionGetByNameSample.js][privateendpointconnectiongetbynamesample] | Gets the details of the Private Endpoint Connection specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateEndpointConnection.json | -| [privateEndpointConnectionGetPrivateLinkResourceSample.js][privateendpointconnectiongetprivatelinkresourcesample] | Gets the private link resources x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json | -| [privateEndpointConnectionListByServiceSample.js][privateendpointconnectionlistbyservicesample] | Lists all private endpoint connections of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateEndpointConnections.json | -| [privateEndpointConnectionListPrivateLinkResourcesSample.js][privateendpointconnectionlistprivatelinkresourcessample] | Gets the private link resources x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateLinkGroupResources.json | -| [productApiCheckEntityExistsSample.js][productapicheckentityexistssample] | Checks that API entity specified by identifier is associated with the Product entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductApi.json | -| [productApiCreateOrUpdateSample.js][productapicreateorupdatesample] | Adds an API to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductApi.json | -| [productApiDeleteSample.js][productapideletesample] | Deletes the specified API from the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductApi.json | -| [productApiListByProductSample.js][productapilistbyproductsample] | Lists a collection of the APIs associated with a product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductApis.json | -| [productCreateOrUpdateSample.js][productcreateorupdatesample] | Creates or Updates a product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProduct.json | -| [productDeleteSample.js][productdeletesample] | Delete product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProduct.json | -| [productGetEntityTagSample.js][productgetentitytagsample] | Gets the entity state (Etag) version of the product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProduct.json | -| [productGetSample.js][productgetsample] | Gets the details of the product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProduct.json | -| [productGroupCheckEntityExistsSample.js][productgroupcheckentityexistssample] | Checks that Group entity specified by identifier is associated with the Product entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductGroup.json | -| [productGroupCreateOrUpdateSample.js][productgroupcreateorupdatesample] | Adds the association between the specified developer group with the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductGroup.json | -| [productGroupDeleteSample.js][productgroupdeletesample] | Deletes the association between the specified group and product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductGroup.json | -| [productGroupListByProductSample.js][productgrouplistbyproductsample] | Lists the collection of developer groups associated with the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductGroups.json | -| [productListByServiceSample.js][productlistbyservicesample] | Lists a collection of products in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProducts.json | -| [productListByTagsSample.js][productlistbytagssample] | Lists a collection of products associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductsByTags.json | -| [productPolicyCreateOrUpdateSample.js][productpolicycreateorupdatesample] | Creates or updates policy configuration for the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductPolicy.json | -| [productPolicyDeleteSample.js][productpolicydeletesample] | Deletes the policy configuration at the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductPolicy.json | -| [productPolicyGetEntityTagSample.js][productpolicygetentitytagsample] | Get the ETag of the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductPolicy.json | -| [productPolicyGetSample.js][productpolicygetsample] | Get the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductPolicy.json | -| [productPolicyListByProductSample.js][productpolicylistbyproductsample] | Get the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductPolicies.json | -| [productSubscriptionsListSample.js][productsubscriptionslistsample] | Lists the collection of subscriptions to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductSubscriptions.json | -| [productUpdateSample.js][productupdatesample] | Update existing product details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateProduct.json | -| [quotaByCounterKeysListByServiceSample.js][quotabycounterkeyslistbyservicesample] | Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeys.json | -| [quotaByCounterKeysUpdateSample.js][quotabycounterkeysupdatesample] | Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKey.json | -| [quotaByPeriodKeysGetSample.js][quotabyperiodkeysgetsample] | Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json | -| [quotaByPeriodKeysUpdateSample.js][quotabyperiodkeysupdatesample] | Updates an existing quota counter value in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json | -| [regionListByServiceSample.js][regionlistbyservicesample] | Lists all azure regions in which the service exists. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListRegions.json | -| [reportsListByApiSample.js][reportslistbyapisample] | Lists report records by API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByApi.json | -| [reportsListByGeoSample.js][reportslistbygeosample] | Lists report records by geography. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByGeo.json | -| [reportsListByOperationSample.js][reportslistbyoperationsample] | Lists report records by API Operations. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByOperation.json | -| [reportsListByProductSample.js][reportslistbyproductsample] | Lists report records by Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByProduct.json | -| [reportsListByRequestSample.js][reportslistbyrequestsample] | Lists report records by Request. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByRequest.json | -| [reportsListBySubscriptionSample.js][reportslistbysubscriptionsample] | Lists report records by subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsBySubscription.json | -| [reportsListByTimeSample.js][reportslistbytimesample] | Lists report records by Time. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByTime.json | -| [reportsListByUserSample.js][reportslistbyusersample] | Lists report records by User. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByUser.json | -| [signInSettingsCreateOrUpdateSample.js][signinsettingscreateorupdatesample] | Create or Update Sign-In settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignIn.json | -| [signInSettingsGetEntityTagSample.js][signinsettingsgetentitytagsample] | Gets the entity state (Etag) version of the SignInSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignInSettings.json | -| [signInSettingsGetSample.js][signinsettingsgetsample] | Get Sign In Settings for the Portal x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignIn.json | -| [signInSettingsUpdateSample.js][signinsettingsupdatesample] | Update Sign-In settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json | -| [signUpSettingsCreateOrUpdateSample.js][signupsettingscreateorupdatesample] | Create or Update Sign-Up settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignUp.json | -| [signUpSettingsGetEntityTagSample.js][signupsettingsgetentitytagsample] | Gets the entity state (Etag) version of the SignUpSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignUpSettings.json | -| [signUpSettingsGetSample.js][signupsettingsgetsample] | Get Sign Up Settings for the Portal x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignUp.json | -| [signUpSettingsUpdateSample.js][signupsettingsupdatesample] | Update Sign-Up settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json | -| [subscriptionCreateOrUpdateSample.js][subscriptioncreateorupdatesample] | Creates or updates the subscription of specified user to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSubscription.json | -| [subscriptionDeleteSample.js][subscriptiondeletesample] | Deletes the specified subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteSubscription.json | -| [subscriptionGetEntityTagSample.js][subscriptiongetentitytagsample] | Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSubscription.json | -| [subscriptionGetSample.js][subscriptiongetsample] | Gets the specified Subscription entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetSubscription.json | -| [subscriptionListSample.js][subscriptionlistsample] | Lists all subscriptions of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSubscriptions.json | -| [subscriptionListSecretsSample.js][subscriptionlistsecretssample] | Gets the specified Subscription keys. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionListSecrets.json | -| [subscriptionRegeneratePrimaryKeySample.js][subscriptionregenerateprimarykeysample] | Regenerates primary key of existing subscription of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json | -| [subscriptionRegenerateSecondaryKeySample.js][subscriptionregeneratesecondarykeysample] | Regenerates secondary key of existing subscription of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json | -| [subscriptionUpdateSample.js][subscriptionupdatesample] | Updates the details of a subscription specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateSubscription.json | -| [tagAssignToApiSample.js][tagassigntoapisample] | Assign tag to the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTag.json | -| [tagAssignToOperationSample.js][tagassigntooperationsample] | Assign tag to the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationTag.json | -| [tagAssignToProductSample.js][tagassigntoproductsample] | Assign tag to the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductTag.json | -| [tagCreateOrUpdateSample.js][tagcreateorupdatesample] | Creates a tag. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTag.json | -| [tagDeleteSample.js][tagdeletesample] | Deletes specific tag of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTag.json | -| [tagDetachFromApiSample.js][tagdetachfromapisample] | Detach the tag from the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTag.json | -| [tagDetachFromOperationSample.js][tagdetachfromoperationsample] | Detach the tag from the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationTag.json | -| [tagDetachFromProductSample.js][tagdetachfromproductsample] | Detach the tag from the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductTag.json | -| [tagGetByApiSample.js][taggetbyapisample] | Get tag associated with the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTag.json | -| [tagGetByOperationSample.js][taggetbyoperationsample] | Get tag associated with the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationTag.json | -| [tagGetByProductSample.js][taggetbyproductsample] | Get tag associated with the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductTag.json | -| [tagGetEntityStateByApiSample.js][taggetentitystatebyapisample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTag.json | -| [tagGetEntityStateByOperationSample.js][taggetentitystatebyoperationsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationTag.json | -| [tagGetEntityStateByProductSample.js][taggetentitystatebyproductsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductTag.json | -| [tagGetEntityStateSample.js][taggetentitystatesample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTag.json | -| [tagGetSample.js][taggetsample] | Gets the details of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTag.json | -| [tagListByApiSample.js][taglistbyapisample] | Lists all Tags associated with the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTags.json | -| [tagListByOperationSample.js][taglistbyoperationsample] | Lists all Tags associated with the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationTags.json | -| [tagListByProductSample.js][taglistbyproductsample] | Lists all Tags associated with the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductTags.json | -| [tagListByServiceSample.js][taglistbyservicesample] | Lists a collection of tags defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTags.json | -| [tagResourceListByServiceSample.js][tagresourcelistbyservicesample] | Lists a collection of resources associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTagResources.json | -| [tagUpdateSample.js][tagupdatesample] | Updates the details of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTag.json | -| [tenantAccessCreateSample.js][tenantaccesscreatesample] | Update tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTenantAccess.json | -| [tenantAccessGetEntityTagSample.js][tenantaccessgetentitytagsample] | Tenant access metadata x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTenantAccess.json | -| [tenantAccessGetSample.js][tenantaccessgetsample] | Get tenant access information details without secrets. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantAccess.json | -| [tenantAccessGitRegeneratePrimaryKeySample.js][tenantaccessgitregenerateprimarykeysample] | Regenerate primary access key for GIT. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | -| [tenantAccessGitRegenerateSecondaryKeySample.js][tenantaccessgitregeneratesecondarykeysample] | Regenerate secondary access key for GIT. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | -| [tenantAccessListByServiceSample.js][tenantaccesslistbyservicesample] | Returns list of access infos - for Git and Management endpoints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantAccess.json | -| [tenantAccessListSecretsSample.js][tenantaccesslistsecretssample] | Get tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsTenantAccess.json | -| [tenantAccessRegeneratePrimaryKeySample.js][tenantaccessregenerateprimarykeysample] | Regenerate primary access key x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | -| [tenantAccessRegenerateSecondaryKeySample.js][tenantaccessregeneratesecondarykeysample] | Regenerate secondary access key x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | -| [tenantAccessUpdateSample.js][tenantaccessupdatesample] | Update tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTenantAccess.json | -| [tenantConfigurationDeploySample.js][tenantconfigurationdeploysample] | This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationDeploy.json | -| [tenantConfigurationGetSyncStateSample.js][tenantconfigurationgetsyncstatesample] | Gets the status of the most recent synchronization between the configuration database and the Git repository. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessSyncState.json | -| [tenantConfigurationSaveSample.js][tenantconfigurationsavesample] | This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationSave.json | -| [tenantConfigurationValidateSample.js][tenantconfigurationvalidatesample] | This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationValidate.json | -| [tenantSettingsGetSample.js][tenantsettingsgetsample] | Get tenant settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantSettings.json | -| [tenantSettingsListByServiceSample.js][tenantsettingslistbyservicesample] | Public settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantSettings.json | -| [userConfirmationPasswordSendSample.js][userconfirmationpasswordsendsample] | Sends confirmation x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserConfirmationPasswordSend.json | -| [userCreateOrUpdateSample.js][usercreateorupdatesample] | Creates or Updates a user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateUser.json | -| [userDeleteSample.js][userdeletesample] | Deletes specific user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteUser.json | -| [userGenerateSsoUrlSample.js][usergeneratessourlsample] | Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserGenerateSsoUrl.json | -| [userGetEntityTagSample.js][usergetentitytagsample] | Gets the entity state (Etag) version of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadUser.json | -| [userGetSample.js][usergetsample] | Gets the details of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUser.json | -| [userGetSharedAccessTokenSample.js][usergetsharedaccesstokensample] | Gets the Shared Access Authorization Token for the User. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserToken.json | -| [userGroupListSample.js][usergrouplistsample] | Lists all user groups. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserGroups.json | -| [userIdentitiesListSample.js][useridentitieslistsample] | List of all user identities. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserIdentities.json | -| [userListByServiceSample.js][userlistbyservicesample] | Lists a collection of registered users in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUsers.json | -| [userSubscriptionGetSample.js][usersubscriptiongetsample] | Gets the specified Subscription entity associated with a particular user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUserSubscription.json | -| [userSubscriptionListSample.js][usersubscriptionlistsample] | Lists the collection of subscriptions of the specified user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserSubscriptions.json | -| [userUpdateSample.js][userupdatesample] | Updates the details of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateUser.json | +| [apiCreateOrUpdateSample.js][apicreateorupdatesample] | Creates new or updates existing specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApi.json | +| [apiDeleteSample.js][apideletesample] | Deletes the specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApi.json | +| [apiDiagnosticCreateOrUpdateSample.js][apidiagnosticcreateorupdatesample] | Creates a new Diagnostic for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiDiagnostic.json | +| [apiDiagnosticDeleteSample.js][apidiagnosticdeletesample] | Deletes the specified Diagnostic from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiDiagnostic.json | +| [apiDiagnosticGetEntityTagSample.js][apidiagnosticgetentitytagsample] | Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiDiagnostic.json | +| [apiDiagnosticGetSample.js][apidiagnosticgetsample] | Gets the details of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiDiagnostic.json | +| [apiDiagnosticListByServiceSample.js][apidiagnosticlistbyservicesample] | Lists all diagnostics of an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiDiagnostics.json | +| [apiDiagnosticUpdateSample.js][apidiagnosticupdatesample] | Updates the details of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiDiagnostic.json | +| [apiExportGetSample.js][apiexportgetsample] | 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. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json | +| [apiGetEntityTagSample.js][apigetentitytagsample] | Gets the entity state (Etag) version of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApi.json | +| [apiGetSample.js][apigetsample] | Gets the details of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiContract.json | +| [apiIssueAttachmentCreateOrUpdateSample.js][apiissueattachmentcreateorupdatesample] | Creates a new Attachment for the Issue in an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueAttachment.json | +| [apiIssueAttachmentDeleteSample.js][apiissueattachmentdeletesample] | Deletes the specified comment from an Issue. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueAttachment.json | +| [apiIssueAttachmentGetEntityTagSample.js][apiissueattachmentgetentitytagsample] | Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueAttachment.json | +| [apiIssueAttachmentGetSample.js][apiissueattachmentgetsample] | Gets the details of the issue Attachment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueAttachment.json | +| [apiIssueAttachmentListByServiceSample.js][apiissueattachmentlistbyservicesample] | Lists all attachments for the Issue associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueAttachments.json | +| [apiIssueCommentCreateOrUpdateSample.js][apiissuecommentcreateorupdatesample] | Creates a new Comment for the Issue in an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueComment.json | +| [apiIssueCommentDeleteSample.js][apiissuecommentdeletesample] | Deletes the specified comment from an Issue. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueComment.json | +| [apiIssueCommentGetEntityTagSample.js][apiissuecommentgetentitytagsample] | Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueComment.json | +| [apiIssueCommentGetSample.js][apiissuecommentgetsample] | Gets the details of the issue Comment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueComment.json | +| [apiIssueCommentListByServiceSample.js][apiissuecommentlistbyservicesample] | Lists all comments for the Issue associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueComments.json | +| [apiIssueCreateOrUpdateSample.js][apiissuecreateorupdatesample] | Creates a new Issue for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssue.json | +| [apiIssueDeleteSample.js][apiissuedeletesample] | Deletes the specified Issue from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssue.json | +| [apiIssueGetEntityTagSample.js][apiissuegetentitytagsample] | Gets the entity state (Etag) version of the Issue for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssue.json | +| [apiIssueGetSample.js][apiissuegetsample] | Gets the details of the Issue for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssue.json | +| [apiIssueListByServiceSample.js][apiissuelistbyservicesample] | Lists all issues associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssues.json | +| [apiIssueUpdateSample.js][apiissueupdatesample] | Updates an existing issue for an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiIssue.json | +| [apiListByServiceSample.js][apilistbyservicesample] | Lists all APIs of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApis.json | +| [apiListByTagsSample.js][apilistbytagssample] | Lists a collection of apis associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApisByTags.json | +| [apiManagementOperationsListSample.js][apimanagementoperationslistsample] | Lists all of the available REST API operations of the Microsoft.ApiManagement provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOperations.json | +| [apiManagementServiceApplyNetworkConfigurationUpdatesSample.js][apimanagementserviceapplynetworkconfigurationupdatessample] | Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json | +| [apiManagementServiceBackupSample.js][apimanagementservicebackupsample] | Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithAccessKey.json | +| [apiManagementServiceCheckNameAvailabilitySample.js][apimanagementservicechecknameavailabilitysample] | Checks availability and correctness of a name for an API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceCheckNameAvailability.json | +| [apiManagementServiceCreateOrUpdateSample.js][apimanagementservicecreateorupdatesample] | Creates or updates an API Management service. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json | +| [apiManagementServiceDeleteSample.js][apimanagementservicedeletesample] | Deletes an existing API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceDeleteService.json | +| [apiManagementServiceGetDomainOwnershipIdentifierSample.js][apimanagementservicegetdomainownershipidentifiersample] | Get the custom domain ownership identifier for an API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json | +| [apiManagementServiceGetSample.js][apimanagementservicegetsample] | Gets an API Management service resource description. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json | +| [apiManagementServiceGetSsoTokenSample.js][apimanagementservicegetssotokensample] | Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetSsoToken.json | +| [apiManagementServiceListByResourceGroupSample.js][apimanagementservicelistbyresourcegroupsample] | List all API Management services within a resource group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json | +| [apiManagementServiceListSample.js][apimanagementservicelistsample] | Lists all API Management services within an Azure subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscription.json | +| [apiManagementServiceMigrateToStv2Sample.js][apimanagementservicemigratetostv2sample] | Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceMigrateToStv2.json | +| [apiManagementServiceRestoreSample.js][apimanagementservicerestoresample] | Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRestoreWithAccessKey.json | +| [apiManagementServiceSkusListAvailableServiceSkusSample.js][apimanagementserviceskuslistavailableserviceskussample] | Gets all available SKU for a given API Management service x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSKUs-Consumption.json | +| [apiManagementServiceUpdateSample.js][apimanagementserviceupdatesample] | Updates an existing API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServiceDisableTls10.json | +| [apiManagementSkusListSample.js][apimanagementskuslistsample] | Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSku.json | +| [apiOperationCreateOrUpdateSample.js][apioperationcreateorupdatesample] | Creates a new operation in the API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperation.json | +| [apiOperationDeleteSample.js][apioperationdeletesample] | Deletes the specified operation in the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperation.json | +| [apiOperationGetEntityTagSample.js][apioperationgetentitytagsample] | Gets the entity state (Etag) version of the API operation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperation.json | +| [apiOperationGetSample.js][apioperationgetsample] | Gets the details of the API Operation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperation.json | +| [apiOperationListByApiSample.js][apioperationlistbyapisample] | Lists a collection of the operations for the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperations.json | +| [apiOperationPolicyCreateOrUpdateSample.js][apioperationpolicycreateorupdatesample] | Creates or updates policy configuration for the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationPolicy.json | +| [apiOperationPolicyDeleteSample.js][apioperationpolicydeletesample] | Deletes the policy configuration at the Api Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationPolicy.json | +| [apiOperationPolicyGetEntityTagSample.js][apioperationpolicygetentitytagsample] | Gets the entity state (Etag) version of the API operation policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationPolicy.json | +| [apiOperationPolicyGetSample.js][apioperationpolicygetsample] | Get the policy configuration at the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationPolicy.json | +| [apiOperationPolicyListByOperationSample.js][apioperationpolicylistbyoperationsample] | Get the list of policy configuration at the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationPolicies.json | +| [apiOperationUpdateSample.js][apioperationupdatesample] | Updates the details of the operation in the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiOperation.json | +| [apiPolicyCreateOrUpdateSample.js][apipolicycreateorupdatesample] | Creates or updates policy configuration for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiPolicy.json | +| [apiPolicyDeleteSample.js][apipolicydeletesample] | Deletes the policy configuration at the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiPolicy.json | +| [apiPolicyGetEntityTagSample.js][apipolicygetentitytagsample] | Gets the entity state (Etag) version of the API policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiPolicy.json | +| [apiPolicyGetSample.js][apipolicygetsample] | Get the policy configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiPolicy.json | +| [apiPolicyListByApiSample.js][apipolicylistbyapisample] | Get the policy configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiPolicies.json | +| [apiProductListByApisSample.js][apiproductlistbyapissample] | Lists all Products, which the API is part of. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiProducts.json | +| [apiReleaseCreateOrUpdateSample.js][apireleasecreateorupdatesample] | Creates a new Release for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiRelease.json | +| [apiReleaseDeleteSample.js][apireleasedeletesample] | Deletes the specified release in the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiRelease.json | +| [apiReleaseGetEntityTagSample.js][apireleasegetentitytagsample] | Returns the etag of an API release. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiRelease.json | +| [apiReleaseGetSample.js][apireleasegetsample] | Returns the details of an API release. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiRelease.json | +| [apiReleaseListByServiceSample.js][apireleaselistbyservicesample] | 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. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiReleases.json | +| [apiReleaseUpdateSample.js][apireleaseupdatesample] | Updates the details of the release of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiRelease.json | +| [apiRevisionListByServiceSample.js][apirevisionlistbyservicesample] | Lists all revisions of an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiRevisions.json | +| [apiSchemaCreateOrUpdateSample.js][apischemacreateorupdatesample] | Creates or updates schema configuration for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiSchema.json | +| [apiSchemaDeleteSample.js][apischemadeletesample] | Deletes the schema configuration at the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiSchema.json | +| [apiSchemaGetEntityTagSample.js][apischemagetentitytagsample] | Gets the entity state (Etag) version of the schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiSchema.json | +| [apiSchemaGetSample.js][apischemagetsample] | Get the schema configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiSchema.json | +| [apiSchemaListByApiSample.js][apischemalistbyapisample] | Get the schema configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiSchemas.json | +| [apiTagDescriptionCreateOrUpdateSample.js][apitagdescriptioncreateorupdatesample] | Create/Update tag description in scope of the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTagDescription.json | +| [apiTagDescriptionDeleteSample.js][apitagdescriptiondeletesample] | Delete tag description for the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTagDescription.json | +| [apiTagDescriptionGetEntityTagSample.js][apitagdescriptiongetentitytagsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTagDescription.json | +| [apiTagDescriptionGetSample.js][apitagdescriptiongetsample] | Get Tag description in scope of API x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTagDescription.json | +| [apiTagDescriptionListByServiceSample.js][apitagdescriptionlistbyservicesample] | Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTagDescriptions.json | +| [apiUpdateSample.js][apiupdatesample] | Updates the specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApi.json | +| [apiVersionSetCreateOrUpdateSample.js][apiversionsetcreateorupdatesample] | Creates or Updates a Api Version Set. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiVersionSet.json | +| [apiVersionSetDeleteSample.js][apiversionsetdeletesample] | Deletes specific Api Version Set. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiVersionSet.json | +| [apiVersionSetGetEntityTagSample.js][apiversionsetgetentitytagsample] | Gets the entity state (Etag) version of the Api Version Set specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiVersionSet.json | +| [apiVersionSetGetSample.js][apiversionsetgetsample] | Gets the details of the Api Version Set specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiVersionSet.json | +| [apiVersionSetListByServiceSample.js][apiversionsetlistbyservicesample] | Lists a collection of API Version Sets in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiVersionSets.json | +| [apiVersionSetUpdateSample.js][apiversionsetupdatesample] | Updates the details of the Api VersionSet specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiVersionSet.json | +| [apiWikiCreateOrUpdateSample.js][apiwikicreateorupdatesample] | Creates a new Wiki for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWiki.json | +| [apiWikiDeleteSample.js][apiwikideletesample] | Deletes the specified Wiki from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiWiki.json | +| [apiWikiGetEntityTagSample.js][apiwikigetentitytagsample] | Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiWiki.json | +| [apiWikiGetSample.js][apiwikigetsample] | Gets the details of the Wiki for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiWiki.json | +| [apiWikiUpdateSample.js][apiwikiupdatesample] | Updates the details of the Wiki for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiWiki.json | +| [apiWikisListSample.js][apiwikislistsample] | Gets the wikis for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiWikis.json | +| [authorizationAccessPolicyCreateOrUpdateSample.js][authorizationaccesspolicycreateorupdatesample] | Creates or updates Authorization Access Policy. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAccessPolicy.json | +| [authorizationAccessPolicyDeleteSample.js][authorizationaccesspolicydeletesample] | Deletes specific access policy from the Authorization. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationAccessPolicy.json | +| [authorizationAccessPolicyGetSample.js][authorizationaccesspolicygetsample] | Gets the details of the authorization access policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationAccessPolicy.json | +| [authorizationAccessPolicyListByAuthorizationSample.js][authorizationaccesspolicylistbyauthorizationsample] | Lists a collection of authorization access policy defined within a authorization. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationAccessPolicies.json | +| [authorizationConfirmConsentCodeSample.js][authorizationconfirmconsentcodesample] | Confirm valid consent code to suppress Authorizations anti-phishing page. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPostAuthorizationConfirmConsentCodeRequest.json | +| [authorizationCreateOrUpdateSample.js][authorizationcreateorupdatesample] | Creates or updates authorization. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAADAuthCode.json | +| [authorizationDeleteSample.js][authorizationdeletesample] | Deletes specific Authorization from the Authorization provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorization.json | +| [authorizationGetSample.js][authorizationgetsample] | Gets the details of the authorization specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorization.json | +| [authorizationListByAuthorizationProviderSample.js][authorizationlistbyauthorizationprovidersample] | Lists a collection of authorization providers defined within a authorization provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationsAuthCode.json | +| [authorizationLoginLinksPostSample.js][authorizationloginlinkspostsample] | Gets authorization login links. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationLoginRequest.json | +| [authorizationProviderCreateOrUpdateSample.js][authorizationprovidercreateorupdatesample] | Creates or updates authorization provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderAADAuthCode.json | +| [authorizationProviderDeleteSample.js][authorizationproviderdeletesample] | Deletes specific authorization provider from the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationProvider.json | +| [authorizationProviderGetSample.js][authorizationprovidergetsample] | Gets the details of the authorization provider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationProvider.json | +| [authorizationProviderListByServiceSample.js][authorizationproviderlistbyservicesample] | Lists a collection of authorization providers defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationProviders.json | +| [authorizationServerCreateOrUpdateSample.js][authorizationservercreateorupdatesample] | Creates new authorization server or updates an existing authorization server. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationServer.json | +| [authorizationServerDeleteSample.js][authorizationserverdeletesample] | Deletes specific authorization server instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationServer.json | +| [authorizationServerGetEntityTagSample.js][authorizationservergetentitytagsample] | Gets the entity state (Etag) version of the authorizationServer specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadAuthorizationServer.json | +| [authorizationServerGetSample.js][authorizationservergetsample] | Gets the details of the authorization server specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationServer.json | +| [authorizationServerListByServiceSample.js][authorizationserverlistbyservicesample] | Lists a collection of authorization servers defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationServers.json | +| [authorizationServerListSecretsSample.js][authorizationserverlistsecretssample] | Gets the client secret details of the authorization server. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementAuthorizationServerListSecrets.json | +| [authorizationServerUpdateSample.js][authorizationserverupdatesample] | Updates the details of the authorization server specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateAuthorizationServer.json | +| [backendCreateOrUpdateSample.js][backendcreateorupdatesample] | Creates or Updates a backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateBackendProxyBackend.json | +| [backendDeleteSample.js][backenddeletesample] | Deletes the specified backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteBackend.json | +| [backendGetEntityTagSample.js][backendgetentitytagsample] | Gets the entity state (Etag) version of the backend specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadBackend.json | +| [backendGetSample.js][backendgetsample] | Gets the details of the backend specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetBackend.json | +| [backendListByServiceSample.js][backendlistbyservicesample] | Lists a collection of backends in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListBackends.json | +| [backendReconnectSample.js][backendreconnectsample] | Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackendReconnect.json | +| [backendUpdateSample.js][backendupdatesample] | Updates an existing backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateBackend.json | +| [cacheCreateOrUpdateSample.js][cachecreateorupdatesample] | Creates or updates an External Cache to be used in Api Management instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCache.json | +| [cacheDeleteSample.js][cachedeletesample] | Deletes specific Cache. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCache.json | +| [cacheGetEntityTagSample.js][cachegetentitytagsample] | Gets the entity state (Etag) version of the Cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCache.json | +| [cacheGetSample.js][cachegetsample] | Gets the details of the Cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCache.json | +| [cacheListByServiceSample.js][cachelistbyservicesample] | Lists a collection of all external Caches in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCaches.json | +| [cacheUpdateSample.js][cacheupdatesample] | Updates the details of the cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateCache.json | +| [certificateCreateOrUpdateSample.js][certificatecreateorupdatesample] | Creates or updates the certificate being used for authentication with the backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCertificate.json | +| [certificateDeleteSample.js][certificatedeletesample] | Deletes specific certificate. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCertificate.json | +| [certificateGetEntityTagSample.js][certificategetentitytagsample] | Gets the entity state (Etag) version of the certificate specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCertificate.json | +| [certificateGetSample.js][certificategetsample] | Gets the details of the certificate specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCertificate.json | +| [certificateListByServiceSample.js][certificatelistbyservicesample] | Lists a collection of all certificates in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCertificates.json | +| [certificateRefreshSecretSample.js][certificaterefreshsecretsample] | From KeyVault, Refresh the certificate being used for authentication with the backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshCertificate.json | +| [contentItemCreateOrUpdateSample.js][contentitemcreateorupdatesample] | Creates a new developer portal's content item specified by the provided content type. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentTypeContentItem.json | +| [contentItemDeleteSample.js][contentitemdeletesample] | Removes the specified developer portal's content item. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentTypeContentItem.json | +| [contentItemGetEntityTagSample.js][contentitemgetentitytagsample] | Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadContentTypeContentItem.json | +| [contentItemGetSample.js][contentitemgetsample] | Returns the developer portal's content item specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentTypeContentItem.json | +| [contentItemListByServiceSample.js][contentitemlistbyservicesample] | Lists developer portal's content items specified by the provided content type. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypeContentItems.json | +| [contentTypeCreateOrUpdateSample.js][contenttypecreateorupdatesample] | Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentType.json | +| [contentTypeDeleteSample.js][contenttypedeletesample] | Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentType.json | +| [contentTypeGetSample.js][contenttypegetsample] | Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentType.json | +| [contentTypeListByServiceSample.js][contenttypelistbyservicesample] | Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypes.json | +| [delegationSettingsCreateOrUpdateSample.js][delegationsettingscreateorupdatesample] | Create or Update Delegation settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutDelegation.json | +| [delegationSettingsGetEntityTagSample.js][delegationsettingsgetentitytagsample] | Gets the entity state (Etag) version of the DelegationSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDelegationSettings.json | +| [delegationSettingsGetSample.js][delegationsettingsgetsample] | Get Delegation Settings for the Portal. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetDelegation.json | +| [delegationSettingsListSecretsSample.js][delegationsettingslistsecretssample] | Gets the secret validation key of the DelegationSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json | +| [delegationSettingsUpdateSample.js][delegationsettingsupdatesample] | Update Delegation settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json | +| [deletedServicesGetByNameSample.js][deletedservicesgetbynamesample] | Get soft-deleted Api Management Service by name. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDeletedServiceByName.json | +| [deletedServicesListBySubscriptionSample.js][deletedserviceslistbysubscriptionsample] | Lists all soft-deleted services available for undelete for the given subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesListBySubscription.json | +| [deletedServicesPurgeSample.js][deletedservicespurgesample] | Purges Api Management Service (deletes it with no option to undelete). x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesPurge.json | +| [diagnosticCreateOrUpdateSample.js][diagnosticcreateorupdatesample] | Creates a new Diagnostic or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDiagnostic.json | +| [diagnosticDeleteSample.js][diagnosticdeletesample] | Deletes the specified Diagnostic. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDiagnostic.json | +| [diagnosticGetEntityTagSample.js][diagnosticgetentitytagsample] | Gets the entity state (Etag) version of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDiagnostic.json | +| [diagnosticGetSample.js][diagnosticgetsample] | Gets the details of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDiagnostic.json | +| [diagnosticListByServiceSample.js][diagnosticlistbyservicesample] | Lists all diagnostics of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDiagnostics.json | +| [diagnosticUpdateSample.js][diagnosticupdatesample] | Updates the details of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDiagnostic.json | +| [documentationCreateOrUpdateSample.js][documentationcreateorupdatesample] | Creates a new Documentation or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDocumentation.json | +| [documentationDeleteSample.js][documentationdeletesample] | Deletes the specified Documentation from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDocumentation.json | +| [documentationGetEntityTagSample.js][documentationgetentitytagsample] | Gets the entity state (Etag) version of the Documentation by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDocumentation.json | +| [documentationGetSample.js][documentationgetsample] | Gets the details of the Documentation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDocumentation.json | +| [documentationListByServiceSample.js][documentationlistbyservicesample] | Lists all Documentations of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDocumentations.json | +| [documentationUpdateSample.js][documentationupdatesample] | Updates the details of the Documentation for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDocumentation.json | +| [emailTemplateCreateOrUpdateSample.js][emailtemplatecreateorupdatesample] | Updates an Email Template. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTemplate.json | +| [emailTemplateDeleteSample.js][emailtemplatedeletesample] | Reset the Email Template to default template provided by the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTemplate.json | +| [emailTemplateGetEntityTagSample.js][emailtemplategetentitytagsample] | Gets the entity state (Etag) version of the email template specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadEmailTemplate.json | +| [emailTemplateGetSample.js][emailtemplategetsample] | Gets the details of the email template specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTemplate.json | +| [emailTemplateListByServiceSample.js][emailtemplatelistbyservicesample] | Gets all email templates x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTemplates.json | +| [emailTemplateUpdateSample.js][emailtemplateupdatesample] | Updates API Management email template x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTemplate.json | +| [gatewayApiCreateOrUpdateSample.js][gatewayapicreateorupdatesample] | Adds an API to the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayApi.json | +| [gatewayApiDeleteSample.js][gatewayapideletesample] | Deletes the specified API from the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayApi.json | +| [gatewayApiGetEntityTagSample.js][gatewayapigetentitytagsample] | Checks that API entity specified by identifier is associated with the Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayApi.json | +| [gatewayApiListByServiceSample.js][gatewayapilistbyservicesample] | Lists a collection of the APIs associated with a gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayApis.json | +| [gatewayCertificateAuthorityCreateOrUpdateSample.js][gatewaycertificateauthoritycreateorupdatesample] | Assign Certificate entity to Gateway entity as Certificate Authority. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json | +| [gatewayCertificateAuthorityDeleteSample.js][gatewaycertificateauthoritydeletesample] | Remove relationship between Certificate Authority and Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json | +| [gatewayCertificateAuthorityGetEntityTagSample.js][gatewaycertificateauthoritygetentitytagsample] | Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json | +| [gatewayCertificateAuthorityGetSample.js][gatewaycertificateauthoritygetsample] | Get assigned Gateway Certificate Authority details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json | +| [gatewayCertificateAuthorityListByServiceSample.js][gatewaycertificateauthoritylistbyservicesample] | Lists the collection of Certificate Authorities for the specified Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json | +| [gatewayCreateOrUpdateSample.js][gatewaycreateorupdatesample] | Creates or updates a Gateway to be used in Api Management instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGateway.json | +| [gatewayDeleteSample.js][gatewaydeletesample] | Deletes specific Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGateway.json | +| [gatewayGenerateTokenSample.js][gatewaygeneratetokensample] | Gets the Shared Access Authorization Token for the gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayGenerateToken.json | +| [gatewayGetEntityTagSample.js][gatewaygetentitytagsample] | Gets the entity state (Etag) version of the Gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGateway.json | +| [gatewayGetSample.js][gatewaygetsample] | Gets the details of the Gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGateway.json | +| [gatewayHostnameConfigurationCreateOrUpdateSample.js][gatewayhostnameconfigurationcreateorupdatesample] | Creates of updates hostname configuration for a Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json | +| [gatewayHostnameConfigurationDeleteSample.js][gatewayhostnameconfigurationdeletesample] | Deletes the specified hostname configuration from the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json | +| [gatewayHostnameConfigurationGetEntityTagSample.js][gatewayhostnameconfigurationgetentitytagsample] | Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json | +| [gatewayHostnameConfigurationGetSample.js][gatewayhostnameconfigurationgetsample] | Get details of a hostname configuration x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json | +| [gatewayHostnameConfigurationListByServiceSample.js][gatewayhostnameconfigurationlistbyservicesample] | Lists the collection of hostname configurations for the specified gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json | +| [gatewayListByServiceSample.js][gatewaylistbyservicesample] | Lists a collection of gateways registered with service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGateways.json | +| [gatewayListKeysSample.js][gatewaylistkeyssample] | Retrieves gateway keys. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayListKeys.json | +| [gatewayRegenerateKeySample.js][gatewayregeneratekeysample] | Regenerates specified gateway key invalidating any tokens created with it. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayRegenerateKey.json | +| [gatewayUpdateSample.js][gatewayupdatesample] | Updates the details of the gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGateway.json | +| [globalSchemaCreateOrUpdateSample.js][globalschemacreateorupdatesample] | Creates new or updates existing specified Schema of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGlobalSchema1.json | +| [globalSchemaDeleteSample.js][globalschemadeletesample] | Deletes specific Schema. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGlobalSchema.json | +| [globalSchemaGetEntityTagSample.js][globalschemagetentitytagsample] | Gets the entity state (Etag) version of the Schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGlobalSchema.json | +| [globalSchemaGetSample.js][globalschemagetsample] | Gets the details of the Schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGlobalSchema1.json | +| [globalSchemaListByServiceSample.js][globalschemalistbyservicesample] | Lists a collection of schemas registered with service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGlobalSchemas.json | +| [graphQlApiResolverCreateOrUpdateSample.js][graphqlapiresolvercreateorupdatesample] | Creates a new resolver in the GraphQL API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolver.json | +| [graphQlApiResolverDeleteSample.js][graphqlapiresolverdeletesample] | Deletes the specified resolver in the GraphQL API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolver.json | +| [graphQlApiResolverGetEntityTagSample.js][graphqlapiresolvergetentitytagsample] | Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolver.json | +| [graphQlApiResolverGetSample.js][graphqlapiresolvergetsample] | Gets the details of the GraphQL API Resolver specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolver.json | +| [graphQlApiResolverListByApiSample.js][graphqlapiresolverlistbyapisample] | Lists a collection of the resolvers for the specified GraphQL API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolvers.json | +| [graphQlApiResolverPolicyCreateOrUpdateSample.js][graphqlapiresolverpolicycreateorupdatesample] | Creates or updates policy configuration for the GraphQL API Resolver level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolverPolicy.json | +| [graphQlApiResolverPolicyDeleteSample.js][graphqlapiresolverpolicydeletesample] | Deletes the policy configuration at the GraphQL Api Resolver. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolverPolicy.json | +| [graphQlApiResolverPolicyGetEntityTagSample.js][graphqlapiresolverpolicygetentitytagsample] | Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolverPolicy.json | +| [graphQlApiResolverPolicyGetSample.js][graphqlapiresolverpolicygetsample] | Get the policy configuration at the GraphQL API Resolver level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolverPolicy.json | +| [graphQlApiResolverPolicyListByResolverSample.js][graphqlapiresolverpolicylistbyresolversample] | Get the list of policy configuration at the GraphQL API Resolver level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolverPolicies.json | +| [graphQlApiResolverUpdateSample.js][graphqlapiresolverupdatesample] | Updates the details of the resolver in the GraphQL API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGraphQLApiResolver.json | +| [groupCreateOrUpdateSample.js][groupcreateorupdatesample] | Creates or Updates a group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroup.json | +| [groupDeleteSample.js][groupdeletesample] | Deletes specific group of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroup.json | +| [groupGetEntityTagSample.js][groupgetentitytagsample] | Gets the entity state (Etag) version of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroup.json | +| [groupGetSample.js][groupgetsample] | Gets the details of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGroup.json | +| [groupListByServiceSample.js][grouplistbyservicesample] | Lists a collection of groups defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroups.json | +| [groupUpdateSample.js][groupupdatesample] | Updates the details of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGroup.json | +| [groupUserCheckEntityExistsSample.js][groupusercheckentityexistssample] | Checks that user entity specified by identifier is associated with the group entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroupUser.json | +| [groupUserCreateSample.js][groupusercreatesample] | Add existing user to existing group x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroupUser.json | +| [groupUserDeleteSample.js][groupuserdeletesample] | Remove existing user from existing group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroupUser.json | +| [groupUserListSample.js][groupuserlistsample] | Lists a collection of user entities associated with the group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroupUsers.json | +| [identityProviderCreateOrUpdateSample.js][identityprovidercreateorupdatesample] | Creates or Updates the IdentityProvider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateIdentityProvider.json | +| [identityProviderDeleteSample.js][identityproviderdeletesample] | Deletes the specified identity provider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteIdentityProvider.json | +| [identityProviderGetEntityTagSample.js][identityprovidergetentitytagsample] | Gets the entity state (Etag) version of the identityProvider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadIdentityProvider.json | +| [identityProviderGetSample.js][identityprovidergetsample] | Gets the configuration details of the identity Provider configured in specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIdentityProvider.json | +| [identityProviderListByServiceSample.js][identityproviderlistbyservicesample] | Lists a collection of Identity Provider configured in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIdentityProviders.json | +| [identityProviderListSecretsSample.js][identityproviderlistsecretssample] | Gets the client secret details of the Identity Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementIdentityProviderListSecrets.json | +| [identityProviderUpdateSample.js][identityproviderupdatesample] | Updates an existing IdentityProvider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateIdentityProvider.json | +| [issueGetSample.js][issuegetsample] | Gets API Management issue details x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIssue.json | +| [issueListByServiceSample.js][issuelistbyservicesample] | Lists a collection of issues in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIssues.json | +| [loggerCreateOrUpdateSample.js][loggercreateorupdatesample] | Creates or Updates a logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAILogger.json | +| [loggerDeleteSample.js][loggerdeletesample] | Deletes the specified logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteLogger.json | +| [loggerGetEntityTagSample.js][loggergetentitytagsample] | Gets the entity state (Etag) version of the logger specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadLogger.json | +| [loggerGetSample.js][loggergetsample] | Gets the details of the logger specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetLogger.json | +| [loggerListByServiceSample.js][loggerlistbyservicesample] | Lists a collection of loggers in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListLoggers.json | +| [loggerUpdateSample.js][loggerupdatesample] | Updates an existing logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateLogger.json | +| [namedValueCreateOrUpdateSample.js][namedvaluecreateorupdatesample] | Creates or updates named value. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNamedValue.json | +| [namedValueDeleteSample.js][namedvaluedeletesample] | Deletes specific named value from the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNamedValue.json | +| [namedValueGetEntityTagSample.js][namedvaluegetentitytagsample] | Gets the entity state (Etag) version of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNamedValue.json | +| [namedValueGetSample.js][namedvaluegetsample] | Gets the details of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNamedValue.json | +| [namedValueListByServiceSample.js][namedvaluelistbyservicesample] | Lists a collection of named values defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNamedValues.json | +| [namedValueListValueSample.js][namedvaluelistvaluesample] | Gets the secret of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementNamedValueListValue.json | +| [namedValueRefreshSecretSample.js][namedvaluerefreshsecretsample] | Refresh the secret of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshNamedValue.json | +| [namedValueUpdateSample.js][namedvalueupdatesample] | Updates the specific named value. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateNamedValue.json | +| [networkStatusListByLocationSample.js][networkstatuslistbylocationsample] | Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json | +| [networkStatusListByServiceSample.js][networkstatuslistbyservicesample] | Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatus.json | +| [notificationCreateOrUpdateSample.js][notificationcreateorupdatesample] | Create or Update API Management publisher notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotification.json | +| [notificationGetSample.js][notificationgetsample] | Gets the details of the Notification specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNotification.json | +| [notificationListByServiceSample.js][notificationlistbyservicesample] | Lists a collection of properties defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotifications.json | +| [notificationRecipientEmailCheckEntityExistsSample.js][notificationrecipientemailcheckentityexistssample] | Determine if Notification Recipient Email subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json | +| [notificationRecipientEmailCreateOrUpdateSample.js][notificationrecipientemailcreateorupdatesample] | Adds the Email address to the list of Recipients for the Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json | +| [notificationRecipientEmailDeleteSample.js][notificationrecipientemaildeletesample] | Removes the email from the list of Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json | +| [notificationRecipientEmailListByNotificationSample.js][notificationrecipientemaillistbynotificationsample] | Gets the list of the Notification Recipient Emails subscribed to a notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientEmails.json | +| [notificationRecipientUserCheckEntityExistsSample.js][notificationrecipientusercheckentityexistssample] | Determine if the Notification Recipient User is subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientUser.json | +| [notificationRecipientUserCreateOrUpdateSample.js][notificationrecipientusercreateorupdatesample] | Adds the API Management User to the list of Recipients for the Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientUser.json | +| [notificationRecipientUserDeleteSample.js][notificationrecipientuserdeletesample] | Removes the API Management user from the list of Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json | +| [notificationRecipientUserListByNotificationSample.js][notificationrecipientuserlistbynotificationsample] | Gets the list of the Notification Recipient User subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientUsers.json | +| [openIdConnectProviderCreateOrUpdateSample.js][openidconnectprovidercreateorupdatesample] | Creates or updates the OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json | +| [openIdConnectProviderDeleteSample.js][openidconnectproviderdeletesample] | Deletes specific OpenID Connect Provider of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json | +| [openIdConnectProviderGetEntityTagSample.js][openidconnectprovidergetentitytagsample] | Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json | +| [openIdConnectProviderGetSample.js][openidconnectprovidergetsample] | Gets specific OpenID Connect Provider without secrets. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetOpenIdConnectProvider.json | +| [openIdConnectProviderListByServiceSample.js][openidconnectproviderlistbyservicesample] | Lists of all the OpenId Connect Providers. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOpenIdConnectProviders.json | +| [openIdConnectProviderListSecretsSample.js][openidconnectproviderlistsecretssample] | Gets the client secret details of the OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json | +| [openIdConnectProviderUpdateSample.js][openidconnectproviderupdatesample] | Updates the specific OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json | +| [operationListByTagsSample.js][operationlistbytagssample] | Lists a collection of operations associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationsByTags.json | +| [outboundNetworkDependenciesEndpointsListByServiceSample.js][outboundnetworkdependenciesendpointslistbyservicesample] | Gets the network endpoints of all outbound dependencies of a ApiManagement service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json | +| [performConnectivityCheckAsyncSample.js][performconnectivitycheckasyncsample] | Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json | +| [policyCreateOrUpdateSample.js][policycreateorupdatesample] | Creates or updates the global policy configuration of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicy.json | +| [policyDeleteSample.js][policydeletesample] | Deletes the global policy configuration of the Api Management Service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicy.json | +| [policyDescriptionListByServiceSample.js][policydescriptionlistbyservicesample] | Lists all policy descriptions. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyDescriptions.json | +| [policyFragmentCreateOrUpdateSample.js][policyfragmentcreateorupdatesample] | Creates or updates a policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicyFragment.json | +| [policyFragmentDeleteSample.js][policyfragmentdeletesample] | Deletes a policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicyFragment.json | +| [policyFragmentGetEntityTagSample.js][policyfragmentgetentitytagsample] | Gets the entity state (Etag) version of a policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicyFragment.json | +| [policyFragmentGetSample.js][policyfragmentgetsample] | Gets a policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFragment.json | +| [policyFragmentListByServiceSample.js][policyfragmentlistbyservicesample] | Gets all policy fragments. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragments.json | +| [policyFragmentListReferencesSample.js][policyfragmentlistreferencessample] | Lists policy resources that reference the policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragmentReferences.json | +| [policyGetEntityTagSample.js][policygetentitytagsample] | Gets the entity state (Etag) version of the Global policy definition in the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicy.json | +| [policyGetSample.js][policygetsample] | Get the Global policy definition of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicy.json | +| [policyListByServiceSample.js][policylistbyservicesample] | Lists all the Global Policy definitions of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicies.json | +| [portalConfigCreateOrUpdateSample.js][portalconfigcreateorupdatesample] | Create or update the developer portal configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalConfig.json | +| [portalConfigGetEntityTagSample.js][portalconfiggetentitytagsample] | Gets the entity state (Etag) version of the developer portal configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalConfig.json | +| [portalConfigGetSample.js][portalconfiggetsample] | Get the developer portal configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalConfig.json | +| [portalConfigListByServiceSample.js][portalconfiglistbyservicesample] | Lists the developer portal configurations. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalConfig.json | +| [portalConfigUpdateSample.js][portalconfigupdatesample] | Update the developer portal configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalConfig.json | +| [portalRevisionCreateOrUpdateSample.js][portalrevisioncreateorupdatesample] | Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalRevision.json | +| [portalRevisionGetEntityTagSample.js][portalrevisiongetentitytagsample] | Gets the developer portal revision specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalRevision.json | +| [portalRevisionGetSample.js][portalrevisiongetsample] | Gets the developer portal's revision specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPortalRevision.json | +| [portalRevisionListByServiceSample.js][portalrevisionlistbyservicesample] | Lists developer portal's revisions. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalRevisions.json | +| [portalRevisionUpdateSample.js][portalrevisionupdatesample] | Updates the description of specified portal revision or makes it current. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalRevision.json | +| [portalSettingsListByServiceSample.js][portalsettingslistbyservicesample] | Lists a collection of portalsettings defined within a service instance.. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalSettings.json | +| [privateEndpointConnectionCreateOrUpdateSample.js][privateendpointconnectioncreateorupdatesample] | Creates a new Private Endpoint Connection or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json | +| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified Private Endpoint Connection. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json | +| [privateEndpointConnectionGetByNameSample.js][privateendpointconnectiongetbynamesample] | Gets the details of the Private Endpoint Connection specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateEndpointConnection.json | +| [privateEndpointConnectionGetPrivateLinkResourceSample.js][privateendpointconnectiongetprivatelinkresourcesample] | Gets the private link resources x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json | +| [privateEndpointConnectionListByServiceSample.js][privateendpointconnectionlistbyservicesample] | Lists all private endpoint connections of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateEndpointConnections.json | +| [privateEndpointConnectionListPrivateLinkResourcesSample.js][privateendpointconnectionlistprivatelinkresourcessample] | Gets the private link resources x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateLinkGroupResources.json | +| [productApiCheckEntityExistsSample.js][productapicheckentityexistssample] | Checks that API entity specified by identifier is associated with the Product entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductApi.json | +| [productApiCreateOrUpdateSample.js][productapicreateorupdatesample] | Adds an API to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductApi.json | +| [productApiDeleteSample.js][productapideletesample] | Deletes the specified API from the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductApi.json | +| [productApiListByProductSample.js][productapilistbyproductsample] | Lists a collection of the APIs associated with a product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductApis.json | +| [productCreateOrUpdateSample.js][productcreateorupdatesample] | Creates or Updates a product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProduct.json | +| [productDeleteSample.js][productdeletesample] | Delete product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProduct.json | +| [productGetEntityTagSample.js][productgetentitytagsample] | Gets the entity state (Etag) version of the product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProduct.json | +| [productGetSample.js][productgetsample] | Gets the details of the product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProduct.json | +| [productGroupCheckEntityExistsSample.js][productgroupcheckentityexistssample] | Checks that Group entity specified by identifier is associated with the Product entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductGroup.json | +| [productGroupCreateOrUpdateSample.js][productgroupcreateorupdatesample] | Adds the association between the specified developer group with the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductGroup.json | +| [productGroupDeleteSample.js][productgroupdeletesample] | Deletes the association between the specified group and product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductGroup.json | +| [productGroupListByProductSample.js][productgrouplistbyproductsample] | Lists the collection of developer groups associated with the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductGroups.json | +| [productListByServiceSample.js][productlistbyservicesample] | Lists a collection of products in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProducts.json | +| [productListByTagsSample.js][productlistbytagssample] | Lists a collection of products associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductsByTags.json | +| [productPolicyCreateOrUpdateSample.js][productpolicycreateorupdatesample] | Creates or updates policy configuration for the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductPolicy.json | +| [productPolicyDeleteSample.js][productpolicydeletesample] | Deletes the policy configuration at the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductPolicy.json | +| [productPolicyGetEntityTagSample.js][productpolicygetentitytagsample] | Get the ETag of the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductPolicy.json | +| [productPolicyGetSample.js][productpolicygetsample] | Get the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductPolicy.json | +| [productPolicyListByProductSample.js][productpolicylistbyproductsample] | Get the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductPolicies.json | +| [productSubscriptionsListSample.js][productsubscriptionslistsample] | Lists the collection of subscriptions to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductSubscriptions.json | +| [productUpdateSample.js][productupdatesample] | Update existing product details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProduct.json | +| [productWikiCreateOrUpdateSample.js][productwikicreateorupdatesample] | Creates a new Wiki for a Product or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductWiki.json | +| [productWikiDeleteSample.js][productwikideletesample] | Deletes the specified Wiki from a Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductWiki.json | +| [productWikiGetEntityTagSample.js][productwikigetentitytagsample] | Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductWiki.json | +| [productWikiGetSample.js][productwikigetsample] | Gets the details of the Wiki for a Product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductWiki.json | +| [productWikiUpdateSample.js][productwikiupdatesample] | Updates the details of the Wiki for a Product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProductWiki.json | +| [productWikisListSample.js][productwikislistsample] | Gets the details of the Wiki for a Product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductWikis.json | +| [quotaByCounterKeysListByServiceSample.js][quotabycounterkeyslistbyservicesample] | Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeys.json | +| [quotaByCounterKeysUpdateSample.js][quotabycounterkeysupdatesample] | Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKey.json | +| [quotaByPeriodKeysGetSample.js][quotabyperiodkeysgetsample] | Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json | +| [quotaByPeriodKeysUpdateSample.js][quotabyperiodkeysupdatesample] | Updates an existing quota counter value in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json | +| [regionListByServiceSample.js][regionlistbyservicesample] | Lists all azure regions in which the service exists. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListRegions.json | +| [reportsListByApiSample.js][reportslistbyapisample] | Lists report records by API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByApi.json | +| [reportsListByGeoSample.js][reportslistbygeosample] | Lists report records by geography. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByGeo.json | +| [reportsListByOperationSample.js][reportslistbyoperationsample] | Lists report records by API Operations. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByOperation.json | +| [reportsListByProductSample.js][reportslistbyproductsample] | Lists report records by Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByProduct.json | +| [reportsListByRequestSample.js][reportslistbyrequestsample] | Lists report records by Request. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByRequest.json | +| [reportsListBySubscriptionSample.js][reportslistbysubscriptionsample] | Lists report records by subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsBySubscription.json | +| [reportsListByTimeSample.js][reportslistbytimesample] | Lists report records by Time. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByTime.json | +| [reportsListByUserSample.js][reportslistbyusersample] | Lists report records by User. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByUser.json | +| [signInSettingsCreateOrUpdateSample.js][signinsettingscreateorupdatesample] | Create or Update Sign-In settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignIn.json | +| [signInSettingsGetEntityTagSample.js][signinsettingsgetentitytagsample] | Gets the entity state (Etag) version of the SignInSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignInSettings.json | +| [signInSettingsGetSample.js][signinsettingsgetsample] | Get Sign In Settings for the Portal x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignIn.json | +| [signInSettingsUpdateSample.js][signinsettingsupdatesample] | Update Sign-In settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json | +| [signUpSettingsCreateOrUpdateSample.js][signupsettingscreateorupdatesample] | Create or Update Sign-Up settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignUp.json | +| [signUpSettingsGetEntityTagSample.js][signupsettingsgetentitytagsample] | Gets the entity state (Etag) version of the SignUpSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignUpSettings.json | +| [signUpSettingsGetSample.js][signupsettingsgetsample] | Get Sign Up Settings for the Portal x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignUp.json | +| [signUpSettingsUpdateSample.js][signupsettingsupdatesample] | Update Sign-Up settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json | +| [subscriptionCreateOrUpdateSample.js][subscriptioncreateorupdatesample] | Creates or updates the subscription of specified user to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSubscription.json | +| [subscriptionDeleteSample.js][subscriptiondeletesample] | Deletes the specified subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteSubscription.json | +| [subscriptionGetEntityTagSample.js][subscriptiongetentitytagsample] | Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSubscription.json | +| [subscriptionGetSample.js][subscriptiongetsample] | Gets the specified Subscription entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetSubscription.json | +| [subscriptionListSample.js][subscriptionlistsample] | Lists all subscriptions of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSubscriptions.json | +| [subscriptionListSecretsSample.js][subscriptionlistsecretssample] | Gets the specified Subscription keys. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionListSecrets.json | +| [subscriptionRegeneratePrimaryKeySample.js][subscriptionregenerateprimarykeysample] | Regenerates primary key of existing subscription of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json | +| [subscriptionRegenerateSecondaryKeySample.js][subscriptionregeneratesecondarykeysample] | Regenerates secondary key of existing subscription of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json | +| [subscriptionUpdateSample.js][subscriptionupdatesample] | Updates the details of a subscription specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateSubscription.json | +| [tagAssignToApiSample.js][tagassigntoapisample] | Assign tag to the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTag.json | +| [tagAssignToOperationSample.js][tagassigntooperationsample] | Assign tag to the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationTag.json | +| [tagAssignToProductSample.js][tagassigntoproductsample] | Assign tag to the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductTag.json | +| [tagCreateOrUpdateSample.js][tagcreateorupdatesample] | Creates a tag. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTag.json | +| [tagDeleteSample.js][tagdeletesample] | Deletes specific tag of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTag.json | +| [tagDetachFromApiSample.js][tagdetachfromapisample] | Detach the tag from the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTag.json | +| [tagDetachFromOperationSample.js][tagdetachfromoperationsample] | Detach the tag from the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationTag.json | +| [tagDetachFromProductSample.js][tagdetachfromproductsample] | Detach the tag from the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductTag.json | +| [tagGetByApiSample.js][taggetbyapisample] | Get tag associated with the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTag.json | +| [tagGetByOperationSample.js][taggetbyoperationsample] | Get tag associated with the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationTag.json | +| [tagGetByProductSample.js][taggetbyproductsample] | Get tag associated with the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductTag.json | +| [tagGetEntityStateByApiSample.js][taggetentitystatebyapisample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTag.json | +| [tagGetEntityStateByOperationSample.js][taggetentitystatebyoperationsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationTag.json | +| [tagGetEntityStateByProductSample.js][taggetentitystatebyproductsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductTag.json | +| [tagGetEntityStateSample.js][taggetentitystatesample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTag.json | +| [tagGetSample.js][taggetsample] | Gets the details of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTag.json | +| [tagListByApiSample.js][taglistbyapisample] | Lists all Tags associated with the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTags.json | +| [tagListByOperationSample.js][taglistbyoperationsample] | Lists all Tags associated with the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationTags.json | +| [tagListByProductSample.js][taglistbyproductsample] | Lists all Tags associated with the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductTags.json | +| [tagListByServiceSample.js][taglistbyservicesample] | Lists a collection of tags defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTags.json | +| [tagResourceListByServiceSample.js][tagresourcelistbyservicesample] | Lists a collection of resources associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTagResources.json | +| [tagUpdateSample.js][tagupdatesample] | Updates the details of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTag.json | +| [tenantAccessCreateSample.js][tenantaccesscreatesample] | Update tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTenantAccess.json | +| [tenantAccessGetEntityTagSample.js][tenantaccessgetentitytagsample] | Tenant access metadata x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTenantAccess.json | +| [tenantAccessGetSample.js][tenantaccessgetsample] | Get tenant access information details without secrets. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantAccess.json | +| [tenantAccessGitRegeneratePrimaryKeySample.js][tenantaccessgitregenerateprimarykeysample] | Regenerate primary access key for GIT. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | +| [tenantAccessGitRegenerateSecondaryKeySample.js][tenantaccessgitregeneratesecondarykeysample] | Regenerate secondary access key for GIT. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | +| [tenantAccessListByServiceSample.js][tenantaccesslistbyservicesample] | Returns list of access infos - for Git and Management endpoints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantAccess.json | +| [tenantAccessListSecretsSample.js][tenantaccesslistsecretssample] | Get tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsTenantAccess.json | +| [tenantAccessRegeneratePrimaryKeySample.js][tenantaccessregenerateprimarykeysample] | Regenerate primary access key x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | +| [tenantAccessRegenerateSecondaryKeySample.js][tenantaccessregeneratesecondarykeysample] | Regenerate secondary access key x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | +| [tenantAccessUpdateSample.js][tenantaccessupdatesample] | Update tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTenantAccess.json | +| [tenantConfigurationDeploySample.js][tenantconfigurationdeploysample] | This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationDeploy.json | +| [tenantConfigurationGetSyncStateSample.js][tenantconfigurationgetsyncstatesample] | Gets the status of the most recent synchronization between the configuration database and the Git repository. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessSyncState.json | +| [tenantConfigurationSaveSample.js][tenantconfigurationsavesample] | This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationSave.json | +| [tenantConfigurationValidateSample.js][tenantconfigurationvalidatesample] | This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationValidate.json | +| [tenantSettingsGetSample.js][tenantsettingsgetsample] | Get tenant settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantSettings.json | +| [tenantSettingsListByServiceSample.js][tenantsettingslistbyservicesample] | Public settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantSettings.json | +| [userConfirmationPasswordSendSample.js][userconfirmationpasswordsendsample] | Sends confirmation x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserConfirmationPasswordSend.json | +| [userCreateOrUpdateSample.js][usercreateorupdatesample] | Creates or Updates a user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateUser.json | +| [userDeleteSample.js][userdeletesample] | Deletes specific user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteUser.json | +| [userGenerateSsoUrlSample.js][usergeneratessourlsample] | Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserGenerateSsoUrl.json | +| [userGetEntityTagSample.js][usergetentitytagsample] | Gets the entity state (Etag) version of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadUser.json | +| [userGetSample.js][usergetsample] | Gets the details of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUser.json | +| [userGetSharedAccessTokenSample.js][usergetsharedaccesstokensample] | Gets the Shared Access Authorization Token for the User. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserToken.json | +| [userGroupListSample.js][usergrouplistsample] | Lists all user groups. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserGroups.json | +| [userIdentitiesListSample.js][useridentitieslistsample] | List of all user identities. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserIdentities.json | +| [userListByServiceSample.js][userlistbyservicesample] | Lists a collection of registered users in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUsers.json | +| [userSubscriptionGetSample.js][usersubscriptiongetsample] | Gets the specified Subscription entity associated with a particular user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUserSubscription.json | +| [userSubscriptionListSample.js][usersubscriptionlistsample] | Lists the collection of subscriptions of the specified user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserSubscriptions.json | +| [userUpdateSample.js][userupdatesample] | Updates the details of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateUser.json | ## Prerequisites @@ -380,7 +435,7 @@ node apiCreateOrUpdateSample.js Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" node apiCreateOrUpdateSample.js +npx cross-env APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" node apiCreateOrUpdateSample.js ``` ## Next Steps @@ -427,6 +482,7 @@ Take a look at our [API Documentation][apiref] for more information about the AP [apimanagementservicegetssotokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetSsoTokenSample.js [apimanagementservicelistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListByResourceGroupSample.js [apimanagementservicelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListSample.js +[apimanagementservicemigratetostv2sample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceMigrateToStv2Sample.js [apimanagementservicerestoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceRestoreSample.js [apimanagementserviceskuslistavailableserviceskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceSkusListAvailableServiceSkusSample.js [apimanagementserviceupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceUpdateSample.js @@ -472,6 +528,26 @@ Take a look at our [API Documentation][apiref] for more information about the AP [apiversionsetgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetGetSample.js [apiversionsetlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetListByServiceSample.js [apiversionsetupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetUpdateSample.js +[apiwikicreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiCreateOrUpdateSample.js +[apiwikideletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiDeleteSample.js +[apiwikigetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetEntityTagSample.js +[apiwikigetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetSample.js +[apiwikiupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiUpdateSample.js +[apiwikislistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikisListSample.js +[authorizationaccesspolicycreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyCreateOrUpdateSample.js +[authorizationaccesspolicydeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyDeleteSample.js +[authorizationaccesspolicygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyGetSample.js +[authorizationaccesspolicylistbyauthorizationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyListByAuthorizationSample.js +[authorizationconfirmconsentcodesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationConfirmConsentCodeSample.js +[authorizationcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationCreateOrUpdateSample.js +[authorizationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationDeleteSample.js +[authorizationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationGetSample.js +[authorizationlistbyauthorizationprovidersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationListByAuthorizationProviderSample.js +[authorizationloginlinkspostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationLoginLinksPostSample.js +[authorizationprovidercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderCreateOrUpdateSample.js +[authorizationproviderdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderDeleteSample.js +[authorizationprovidergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderGetSample.js +[authorizationproviderlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderListByServiceSample.js [authorizationservercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerCreateOrUpdateSample.js [authorizationserverdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerDeleteSample.js [authorizationservergetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerGetEntityTagSample.js @@ -521,6 +597,12 @@ Take a look at our [API Documentation][apiref] for more information about the AP [diagnosticgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticGetSample.js [diagnosticlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticListByServiceSample.js [diagnosticupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticUpdateSample.js +[documentationcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationCreateOrUpdateSample.js +[documentationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationDeleteSample.js +[documentationgetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetEntityTagSample.js +[documentationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetSample.js +[documentationlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationListByServiceSample.js +[documentationupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationUpdateSample.js [emailtemplatecreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateCreateOrUpdateSample.js [emailtemplatedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateDeleteSample.js [emailtemplategetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateGetEntityTagSample.js @@ -555,6 +637,17 @@ Take a look at our [API Documentation][apiref] for more information about the AP [globalschemagetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetEntityTagSample.js [globalschemagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetSample.js [globalschemalistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaListByServiceSample.js +[graphqlapiresolvercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverCreateOrUpdateSample.js +[graphqlapiresolverdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverDeleteSample.js +[graphqlapiresolvergetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetEntityTagSample.js +[graphqlapiresolvergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetSample.js +[graphqlapiresolverlistbyapisample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverListByApiSample.js +[graphqlapiresolverpolicycreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyCreateOrUpdateSample.js +[graphqlapiresolverpolicydeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyDeleteSample.js +[graphqlapiresolverpolicygetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetEntityTagSample.js +[graphqlapiresolverpolicygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetSample.js +[graphqlapiresolverpolicylistbyresolversample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyListByResolverSample.js +[graphqlapiresolverupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverUpdateSample.js [groupcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupCreateOrUpdateSample.js [groupdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupDeleteSample.js [groupgetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupGetEntityTagSample.js @@ -614,9 +707,20 @@ Take a look at our [API Documentation][apiref] for more information about the AP [policycreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyCreateOrUpdateSample.js [policydeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDeleteSample.js [policydescriptionlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDescriptionListByServiceSample.js +[policyfragmentcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentCreateOrUpdateSample.js +[policyfragmentdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentDeleteSample.js +[policyfragmentgetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetEntityTagSample.js +[policyfragmentgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetSample.js +[policyfragmentlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListByServiceSample.js +[policyfragmentlistreferencessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListReferencesSample.js [policygetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetEntityTagSample.js [policygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetSample.js [policylistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyListByServiceSample.js +[portalconfigcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigCreateOrUpdateSample.js +[portalconfiggetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetEntityTagSample.js +[portalconfiggetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetSample.js +[portalconfiglistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigListByServiceSample.js +[portalconfigupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigUpdateSample.js [portalrevisioncreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionCreateOrUpdateSample.js [portalrevisiongetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetEntityTagSample.js [portalrevisiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetSample.js @@ -650,6 +754,12 @@ Take a look at our [API Documentation][apiref] for more information about the AP [productpolicylistbyproductsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyListByProductSample.js [productsubscriptionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productSubscriptionsListSample.js [productupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productUpdateSample.js +[productwikicreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiCreateOrUpdateSample.js +[productwikideletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiDeleteSample.js +[productwikigetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetEntityTagSample.js +[productwikigetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetSample.js +[productwikiupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiUpdateSample.js +[productwikislistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikisListSample.js [quotabycounterkeyslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysListByServiceSample.js [quotabycounterkeysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysUpdateSample.js [quotabyperiodkeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByPeriodKeysGetSample.js diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiCreateOrUpdateSample.js index 1f2b63f1c991..785a26204fab 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApi.json */ async function apiManagementCreateApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -52,7 +52,7 @@ async function apiManagementCreateApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiClone.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiClone.json */ async function apiManagementCreateApiClone() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -85,7 +85,7 @@ async function apiManagementCreateApiClone() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiNewVersionUsingExistingApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiNewVersionUsingExistingApi.json */ async function apiManagementCreateApiNewVersionUsingExistingApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -122,7 +122,7 @@ async function apiManagementCreateApiNewVersionUsingExistingApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiRevisionFromExistingApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiRevisionFromExistingApi.json */ async function apiManagementCreateApiRevisionFromExistingApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -151,7 +151,7 @@ async function apiManagementCreateApiRevisionFromExistingApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json */ async function apiManagementCreateApiUsingImportOverrideServiceUrl() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -179,7 +179,7 @@ async function apiManagementCreateApiUsingImportOverrideServiceUrl() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingOai3Import.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingOai3Import.json */ async function apiManagementCreateApiUsingOai3Import() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -207,7 +207,36 @@ async function apiManagementCreateApiUsingOai3Import() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingSwaggerImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct.json + */ +async function apiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "petstore"; + const parameters = { + format: "openapi-link", + path: "petstore", + translateRequiredQueryParametersConduct: "template", + value: + "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml", + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.api.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. + * + * @summary Creates new or updates existing specified API of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingSwaggerImport.json */ async function apiManagementCreateApiUsingSwaggerImport() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -234,7 +263,7 @@ async function apiManagementCreateApiUsingSwaggerImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingWadlImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingWadlImport.json */ async function apiManagementCreateApiUsingWadlImport() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -262,7 +291,91 @@ async function apiManagementCreateApiUsingWadlImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiWithOpenIdConnect.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWithMultipleAuthServers.json + */ +async function apiManagementCreateApiWithMultipleAuthServers() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "tempgroup"; + const parameters = { + path: "newapiPath", + description: "apidescription5200", + authenticationSettings: { + oAuth2AuthenticationSettings: [ + { + authorizationServerId: "authorizationServerId2283", + scope: "oauth2scope2580", + }, + { + authorizationServerId: "authorizationServerId2284", + scope: "oauth2scope2581", + }, + ], + }, + displayName: "apiname1463", + protocols: ["https", "http"], + serviceUrl: "http://newechoapi.cloudapp.net/api", + subscriptionKeyParameterNames: { header: "header4520", query: "query3037" }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.api.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. + * + * @summary Creates new or updates existing specified API of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWithMultipleOpenIdConnectProviders.json + */ +async function apiManagementCreateApiWithMultipleOpenIdConnectProviders() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "tempgroup"; + const parameters = { + path: "newapiPath", + description: "apidescription5200", + authenticationSettings: { + openidAuthenticationSettings: [ + { + bearerTokenSendingMethods: ["authorizationHeader"], + openidProviderId: "openidProviderId2283", + }, + { + bearerTokenSendingMethods: ["authorizationHeader"], + openidProviderId: "openidProviderId2284", + }, + ], + }, + displayName: "apiname1463", + protocols: ["https", "http"], + serviceUrl: "http://newechoapi.cloudapp.net/api", + subscriptionKeyParameterNames: { header: "header4520", query: "query3037" }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.api.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. + * + * @summary Creates new or updates existing specified API of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWithOpenIdConnect.json */ async function apiManagementCreateApiWithOpenIdConnect() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -302,7 +415,7 @@ async function apiManagementCreateApiWithOpenIdConnect() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGraphQLApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApi.json */ async function apiManagementCreateGraphQlApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -332,7 +445,7 @@ async function apiManagementCreateGraphQlApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSoapPassThroughApiUsingWsdlImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSoapPassThroughApiUsingWsdlImport.json */ async function apiManagementCreateSoapPassThroughApiUsingWsdlImport() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -364,7 +477,7 @@ async function apiManagementCreateSoapPassThroughApiUsingWsdlImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSoapToRestApiUsingWsdlImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSoapToRestApiUsingWsdlImport.json */ async function apiManagementCreateSoapToRestApiUsingWsdlImport() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -395,7 +508,7 @@ async function apiManagementCreateSoapToRestApiUsingWsdlImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateWebsocketApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateWebsocketApi.json */ async function apiManagementCreateWebSocketApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -428,8 +541,11 @@ async function main() { apiManagementCreateApiRevisionFromExistingApi(); apiManagementCreateApiUsingImportOverrideServiceUrl(); apiManagementCreateApiUsingOai3Import(); + apiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct(); apiManagementCreateApiUsingSwaggerImport(); apiManagementCreateApiUsingWadlImport(); + apiManagementCreateApiWithMultipleAuthServers(); + apiManagementCreateApiWithMultipleOpenIdConnectProviders(); apiManagementCreateApiWithOpenIdConnect(); apiManagementCreateGraphQlApi(); apiManagementCreateSoapPassThroughApiUsingWsdlImport(); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDeleteSample.js index 8f5c5aea1236..a3338ad386d7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified API of the API Management service instance. * * @summary Deletes the specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApi.json */ async function apiManagementDeleteApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticCreateOrUpdateSample.js index 2db6b4473088..e21f48878d08 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new Diagnostic for an API or updates an existing one. * * @summary Creates a new Diagnostic for an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiDiagnostic.json */ async function apiManagementCreateApiDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticDeleteSample.js index 42201a6e5275..b7be2b7285a7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified Diagnostic from an API. * * @summary Deletes the specified Diagnostic from an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiDiagnostic.json */ async function apiManagementDeleteApiDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticGetEntityTagSample.js index b795ecb0e2a0..98d340014fd3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiDiagnostic.json */ async function apiManagementHeadApiDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticGetSample.js index 587c7cbc704a..50c02ff24365 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the Diagnostic for an API specified by its identifier. * * @summary Gets the details of the Diagnostic for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiDiagnostic.json */ async function apiManagementGetApiDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticListByServiceSample.js index 8f2926407372..41cc6ff1fb9b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all diagnostics of an API. * * @summary Lists all diagnostics of an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiDiagnostics.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiDiagnostics.json */ async function apiManagementListApiDiagnostics() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticUpdateSample.js index d9ed5ac0f786..7b33982333fe 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiDiagnosticUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the Diagnostic for an API specified by its identifier. * * @summary Updates the details of the Diagnostic for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiDiagnostic.json */ async function apiManagementUpdateApiDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiExportGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiExportGetSample.js index 3213b4123b32..10065bd68ebf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiExportGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiExportGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to 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. * * @summary 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. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json */ async function apiManagementGetApiExportInOpenApi2Dot0() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -41,7 +41,7 @@ async function apiManagementGetApiExportInOpenApi2Dot0() { * This sample demonstrates how to 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. * * @summary 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. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiExportInOpenApi3dot0.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiExportInOpenApi3dot0.json */ async function apiManagementGetApiExportInOpenApi3Dot0() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiGetEntityTagSample.js index d6c246aa23a3..f7ac7dcead25 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API specified by its identifier. * * @summary Gets the entity state (Etag) version of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApi.json */ async function apiManagementHeadApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiGetSample.js index 14f90317d5e3..2c6f983cc2cc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the API specified by its identifier. * * @summary Gets the details of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiContract.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiContract.json */ async function apiManagementGetApiContract() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function apiManagementGetApiContract() { * This sample demonstrates how to Gets the details of the API specified by its identifier. * * @summary Gets the details of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiRevision.json */ async function apiManagementGetApiRevisionContract() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentCreateOrUpdateSample.js index 329cfe237f99..7a7b3fea3023 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new Attachment for the Issue in an API or updates an existing one. * * @summary Creates a new Attachment for the Issue in an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueAttachment.json */ async function apiManagementCreateApiIssueAttachment() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentDeleteSample.js index 288c1343cd56..e354b1174667 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified comment from an Issue. * * @summary Deletes the specified comment from an Issue. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueAttachment.json */ async function apiManagementDeleteApiIssueAttachment() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentGetEntityTagSample.js index 4f5faeac82ba..b6243b273f30 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueAttachment.json */ async function apiManagementHeadApiIssueAttachment() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentGetSample.js index 33c3f4332f39..eb224ef2cdfb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the issue Attachment for an API specified by its identifier. * * @summary Gets the details of the issue Attachment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueAttachment.json */ async function apiManagementGetApiIssueAttachment() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentListByServiceSample.js index 6f31afab1397..bd3d8cfaa789 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueAttachmentListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all attachments for the Issue associated with the specified API. * * @summary Lists all attachments for the Issue associated with the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueAttachments.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueAttachments.json */ async function apiManagementListApiIssueAttachments() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentCreateOrUpdateSample.js index c7281276aa34..8f1fe1f16d6c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new Comment for the Issue in an API or updates an existing one. * * @summary Creates a new Comment for the Issue in an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueComment.json */ async function apiManagementCreateApiIssueComment() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentDeleteSample.js index a3e199d2bc66..3410568fb1ee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified comment from an Issue. * * @summary Deletes the specified comment from an Issue. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueComment.json */ async function apiManagementDeleteApiIssueComment() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentGetEntityTagSample.js index 3fe9007bb297..fadc62ab95eb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueComment.json */ async function apiManagementHeadApiIssueComment() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentGetSample.js index a7a6bf6d2d18..078c7142e000 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the issue Comment for an API specified by its identifier. * * @summary Gets the details of the issue Comment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueComment.json */ async function apiManagementGetApiIssueComment() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentListByServiceSample.js index 34fb5899d85d..cf3a4d7d4b14 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCommentListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all comments for the Issue associated with the specified API. * * @summary Lists all comments for the Issue associated with the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueComments.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueComments.json */ async function apiManagementListApiIssueComments() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCreateOrUpdateSample.js index 1194aa053f48..0fc8c23f8bfc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new Issue for an API or updates an existing one. * * @summary Creates a new Issue for an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssue.json */ async function apiManagementCreateApiIssue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueDeleteSample.js index 0ba4c1150300..98a236206c74 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified Issue from an API. * * @summary Deletes the specified Issue from an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssue.json */ async function apiManagementDeleteApiIssue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueGetEntityTagSample.js index 023abd5bc171..4cfdd2fb2520 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Issue for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the Issue for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssue.json */ async function apiManagementHeadApiIssue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueGetSample.js index 23ed709376f8..b170196fb1a9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the Issue for an API specified by its identifier. * * @summary Gets the details of the Issue for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssue.json */ async function apiManagementGetApiIssue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueListByServiceSample.js index 46c5650d87b2..758695dd58f5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all issues associated with the specified API. * * @summary Lists all issues associated with the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssues.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssues.json */ async function apiManagementListApiIssues() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueUpdateSample.js index 58f366f48bec..55c4d1884767 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiIssueUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an existing issue for an API. * * @summary Updates an existing issue for an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiIssue.json */ async function apiManagementUpdateApiIssue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiListByServiceSample.js index f25ed05f1e21..faa650479900 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all APIs of the API Management service instance. * * @summary Lists all APIs of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApis.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApis.json */ async function apiManagementListApis() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiListByTagsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiListByTagsSample.js index efb934e1eb7c..2889e8275d96 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiListByTagsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiListByTagsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of apis associated with tags. * * @summary Lists a collection of apis associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApisByTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApisByTags.json */ async function apiManagementListApisByTags() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementOperationsListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementOperationsListSample.js index d551ef48307a..a9cb1c5f6d04 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementOperationsListSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementOperationsListSample.js @@ -16,13 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.ApiManagement provider. * * @summary Lists all of the available REST API operations of the Microsoft.ApiManagement provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOperations.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOperations.json */ async function apiManagementListOperations() { - const subscriptionId = - process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); - const client = new ApiManagementClient(credential, subscriptionId); + const client = new ApiManagementClient(credential); const resArray = new Array(); for await (let item of client.apiManagementOperations.list()) { resArray.push(item); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceApplyNetworkConfigurationUpdatesSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceApplyNetworkConfigurationUpdatesSample.js index b67e1e417959..f7fee8f17c5a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceApplyNetworkConfigurationUpdatesSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceApplyNetworkConfigurationUpdatesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. * * @summary Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json */ async function apiManagementApplyNetworkConfigurationUpdates() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceBackupSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceBackupSample.js index 1c88a27b8b57..0ed9091356c8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceBackupSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceBackupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. * * @summary Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithAccessKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithAccessKey.json */ async function apiManagementBackupWithAccessKey() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -43,7 +43,7 @@ async function apiManagementBackupWithAccessKey() { * This sample demonstrates how to Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. * * @summary Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithSystemManagedIdentity.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithSystemManagedIdentity.json */ async function apiManagementBackupWithSystemManagedIdentity() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -69,7 +69,7 @@ async function apiManagementBackupWithSystemManagedIdentity() { * This sample demonstrates how to Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. * * @summary Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithUserAssignedManagedIdentity.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithUserAssignedManagedIdentity.json */ async function apiManagementBackupWithUserAssignedManagedIdentity() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceCheckNameAvailabilitySample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceCheckNameAvailabilitySample.js index f87657049a67..935eeb1bc426 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceCheckNameAvailabilitySample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks availability and correctness of a name for an API Management service. * * @summary Checks availability and correctness of a name for an API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceCheckNameAvailability.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceCheckNameAvailability.json */ async function apiManagementServiceCheckNameAvailability() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceCreateOrUpdateSample.js index 0c38e5788ab6..47c2befb2361 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json */ async function apiManagementCreateMultiRegionServiceWithCustomHostname() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -73,7 +73,7 @@ async function apiManagementCreateMultiRegionServiceWithCustomHostname() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateService.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateService.json */ async function apiManagementCreateService() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -100,7 +100,7 @@ async function apiManagementCreateService() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceHavingMsi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceHavingMsi.json */ async function apiManagementCreateServiceHavingMsi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -128,7 +128,7 @@ async function apiManagementCreateServiceHavingMsi() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceInVnetWithPublicIP.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceInVnetWithPublicIP.json */ async function apiManagementCreateServiceInVnetWithPublicIP() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -163,7 +163,7 @@ async function apiManagementCreateServiceInVnetWithPublicIP() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceInZones.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceInZones.json */ async function apiManagementCreateServiceInZones() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -191,7 +191,7 @@ async function apiManagementCreateServiceInZones() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceWithCustomHostnameKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithCustomHostnameKeyVault.json */ async function apiManagementCreateServiceWithCustomHostnameKeyVault() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -248,7 +248,35 @@ async function apiManagementCreateServiceWithCustomHostnameKeyVault() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceWithSystemCertificates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithNatGatewayEnabled.json + */ +async function apiManagementCreateServiceWithNatGatewayEnabled() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const parameters = { + location: "East US", + natGatewayState: "Enabled", + publisherEmail: "apim@autorestsdk.com", + publisherName: "autorestsdk", + sku: { name: "Premium", capacity: 1 }, + tags: { tag1: "value1", tag2: "value2", tag3: "value3" }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiManagementService.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. + * + * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithSystemCertificates.json */ async function apiManagementCreateServiceWithSystemCertificates() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -282,7 +310,7 @@ async function apiManagementCreateServiceWithSystemCertificates() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceWithUserAssignedIdentity.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithUserAssignedIdentity.json */ async function apiManagementCreateServiceWithUserAssignedIdentity() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -316,7 +344,7 @@ async function apiManagementCreateServiceWithUserAssignedIdentity() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUndelete.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUndelete.json */ async function apiManagementUndelete() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -346,6 +374,7 @@ async function main() { apiManagementCreateServiceInVnetWithPublicIP(); apiManagementCreateServiceInZones(); apiManagementCreateServiceWithCustomHostnameKeyVault(); + apiManagementCreateServiceWithNatGatewayEnabled(); apiManagementCreateServiceWithSystemCertificates(); apiManagementCreateServiceWithUserAssignedIdentity(); apiManagementUndelete(); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceDeleteSample.js index 12bf49d1d622..13a07043ef92 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing API Management service. * * @summary Deletes an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceDeleteService.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceDeleteService.json */ async function apiManagementServiceDeleteService() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetDomainOwnershipIdentifierSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetDomainOwnershipIdentifierSample.js index d7a8864af9c1..f41a64b516a4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetDomainOwnershipIdentifierSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetDomainOwnershipIdentifierSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the custom domain ownership identifier for an API Management service. * * @summary Get the custom domain ownership identifier for an API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json */ async function apiManagementServiceGetDomainOwnershipIdentifier() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetSample.js index 5c296a09ec86..4ef10c93c64d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets an API Management service resource description. * * @summary Gets an API Management service resource description. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json */ async function apiManagementServiceGetMultiRegionInternalVnet() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function apiManagementServiceGetMultiRegionInternalVnet() { * This sample demonstrates how to Gets an API Management service resource description. * * @summary Gets an API Management service resource description. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetService.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetService.json */ async function apiManagementServiceGetService() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -48,7 +48,7 @@ async function apiManagementServiceGetService() { * This sample demonstrates how to Gets an API Management service resource description. * * @summary Gets an API Management service resource description. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetServiceHavingMsi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetServiceHavingMsi.json */ async function apiManagementServiceGetServiceHavingMsi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetSsoTokenSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetSsoTokenSample.js index d752cac65ed9..bbd2139755b3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetSsoTokenSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceGetSsoTokenSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. * * @summary Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetSsoToken.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetSsoToken.json */ async function apiManagementServiceGetSsoToken() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListByResourceGroupSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListByResourceGroupSample.js index 23422d8c5809..444ff428e44a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListByResourceGroupSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all API Management services within a resource group. * * @summary List all API Management services within a resource group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json */ async function apiManagementListServiceBySubscriptionAndResourceGroup() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListSample.js index 011960bca647..06a7fbddab18 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all API Management services within an Azure subscription. * * @summary Lists all API Management services within an Azure subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscription.json */ async function apiManagementListServiceBySubscription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceMigrateToStv2Sample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceMigrateToStv2Sample.js new file mode 100644 index 000000000000..e82ec6f44a01 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceMigrateToStv2Sample.js @@ -0,0 +1,38 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete. + * + * @summary Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceMigrateToStv2.json + */ +async function apiManagementMigrateService() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiManagementService.beginMigrateToStv2AndWait( + resourceGroupName, + serviceName + ); + console.log(result); +} + +async function main() { + apiManagementMigrateService(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceRestoreSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceRestoreSample.js index bbf9f1dce0d6..b7733a3b39aa 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceRestoreSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceRestoreSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. * * @summary Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRestoreWithAccessKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRestoreWithAccessKey.json */ async function apiManagementRestoreService() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceSkusListAvailableServiceSkusSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceSkusListAvailableServiceSkusSample.js index aa194a880fc2..c17f5a2862dc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceSkusListAvailableServiceSkusSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceSkusListAvailableServiceSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets all available SKU for a given API Management service * * @summary Gets all available SKU for a given API Management service - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSKUs-Consumption.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSKUs-Consumption.json */ async function apiManagementListSkUsConsumption() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function apiManagementListSkUsConsumption() { * This sample demonstrates how to Gets all available SKU for a given API Management service * * @summary Gets all available SKU for a given API Management service - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSKUs-Dedicated.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSKUs-Dedicated.json */ async function apiManagementListSkUsDedicated() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceUpdateSample.js index 231f524b8e09..15bab42b5981 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementServiceUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an existing API Management service. * * @summary Updates an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServiceDisableTls10.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServiceDisableTls10.json */ async function apiManagementUpdateServiceDisableTls10() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -41,7 +41,7 @@ async function apiManagementUpdateServiceDisableTls10() { * This sample demonstrates how to Updates an existing API Management service. * * @summary Updates an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServicePublisherDetails.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServicePublisherDetails.json */ async function apiManagementUpdateServicePublisherDetails() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -65,7 +65,7 @@ async function apiManagementUpdateServicePublisherDetails() { * This sample demonstrates how to Updates an existing API Management service. * * @summary Updates an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServiceToNewVnetAndAZs.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServiceToNewVnetAndAZs.json */ async function apiManagementUpdateServiceToNewVnetAndAvailabilityZones() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementSkusListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementSkusListSample.js index 17a79901c3f3..3641a9a92bef 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementSkusListSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiManagementSkusListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. * * @summary Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSku.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSku.json */ async function listsAllAvailableResourceSkUs() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationCreateOrUpdateSample.js index a1d1cb369233..ff72a1b80aac 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new operation in the API or updates an existing one. * * @summary Creates a new operation in the API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperation.json */ async function apiManagementCreateApiOperation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationDeleteSample.js index 137995a16893..390e3cba2102 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified operation in the API. * * @summary Deletes the specified operation in the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperation.json */ async function apiManagementDeleteApiOperation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationGetEntityTagSample.js index ea49a71f86d2..82b0750f2264 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API operation specified by its identifier. * * @summary Gets the entity state (Etag) version of the API operation specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperation.json */ async function apiManagementHeadApiOperation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationGetSample.js index d35fda82503d..7b9f5f92f718 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the API Operation specified by its identifier. * * @summary Gets the details of the API Operation specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperation.json */ async function apiManagementGetApiOperation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,7 @@ async function apiManagementGetApiOperation() { * This sample demonstrates how to Gets the details of the API Operation specified by its identifier. * * @summary Gets the details of the API Operation specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationPetStore.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationPetStore.json */ async function apiManagementGetApiOperationPetStore() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationListByApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationListByApiSample.js index c52406d5e83b..3e2d0ad8865b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationListByApiSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationListByApiSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of the operations for the specified API. * * @summary Lists a collection of the operations for the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperations.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperations.json */ async function apiManagementListApiOperations() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyCreateOrUpdateSample.js index 9a7117482ec7..5ac902af6c0e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates policy configuration for the API Operation level. * * @summary Creates or updates policy configuration for the API Operation level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationPolicy.json */ async function apiManagementCreateApiOperationPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyDeleteSample.js index c276f02bfeb8..32aaf127cd23 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the policy configuration at the Api Operation. * * @summary Deletes the policy configuration at the Api Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationPolicy.json */ async function apiManagementDeleteApiOperationPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyGetEntityTagSample.js index 65cf551c71ab..e5247f3ab37a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API operation policy specified by its identifier. * * @summary Gets the entity state (Etag) version of the API operation policy specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationPolicy.json */ async function apiManagementHeadApiOperationPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyGetSample.js index 71ca80f911bb..1db392242b95 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the policy configuration at the API Operation level. * * @summary Get the policy configuration at the API Operation level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationPolicy.json */ async function apiManagementGetApiOperationPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyListByOperationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyListByOperationSample.js index 3d0739e5ee6e..ce4867b987c1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyListByOperationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationPolicyListByOperationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the list of policy configuration at the API Operation level. * * @summary Get the list of policy configuration at the API Operation level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationPolicies.json */ async function apiManagementListApiOperationPolicies() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationUpdateSample.js index 5158570ee241..89bc1ffc2ab6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiOperationUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the operation in the API specified by its identifier. * * @summary Updates the details of the operation in the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiOperation.json */ async function apiManagementUpdateApiOperation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyCreateOrUpdateSample.js index dc025dc50e49..18a50edda550 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates policy configuration for the API. * * @summary Creates or updates policy configuration for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiPolicy.json */ async function apiManagementCreateApiPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -48,7 +48,7 @@ async function apiManagementCreateApiPolicy() { * This sample demonstrates how to Creates or updates policy configuration for the API. * * @summary Creates or updates policy configuration for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiPolicyNonXmlEncoded.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiPolicyNonXmlEncoded.json */ async function apiManagementCreateApiPolicyNonXmlEncoded() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyDeleteSample.js index a033cc2bc052..e86712e7b46a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the policy configuration at the Api. * * @summary Deletes the policy configuration at the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiPolicy.json */ async function apiManagementDeleteApiPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyGetEntityTagSample.js index c36d8dd5fc3b..27a23a621c5d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API policy specified by its identifier. * * @summary Gets the entity state (Etag) version of the API policy specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiPolicy.json */ async function apiManagementHeadApiPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyGetSample.js index 67b95d8f3610..58232fb82eb3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the policy configuration at the API level. * * @summary Get the policy configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiPolicy.json */ async function apiManagementGetApiPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyListByApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyListByApiSample.js index 9af6849d4997..b804de3e2654 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyListByApiSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiPolicyListByApiSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the policy configuration at the API level. * * @summary Get the policy configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiPolicies.json */ async function apiManagementListApiPolicies() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiProductListByApisSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiProductListByApisSample.js index 7912d36b1af5..9552a7895a9c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiProductListByApisSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiProductListByApisSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all Products, which the API is part of. * * @summary Lists all Products, which the API is part of. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiProducts.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiProducts.json */ async function apiManagementListApiProducts() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseCreateOrUpdateSample.js index 6b7eedf83622..0c6e1f9eae37 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new Release for the API. * * @summary Creates a new Release for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiRelease.json */ async function apiManagementCreateApiRelease() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseDeleteSample.js index 2cfbdca40446..7737170f6aaf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified release in the API. * * @summary Deletes the specified release in the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiRelease.json */ async function apiManagementDeleteApiRelease() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseGetEntityTagSample.js index 11b72a62be05..570adb93dd10 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the etag of an API release. * * @summary Returns the etag of an API release. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiRelease.json */ async function apiManagementHeadApiRelease() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseGetSample.js index 597c3bc5d53b..9d6e94afc58d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the details of an API release. * * @summary Returns the details of an API release. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiRelease.json */ async function apiManagementGetApiRelease() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseListByServiceSample.js index c1f3762da44a..7af52d61792b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to 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. * * @summary 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. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiReleases.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiReleases.json */ async function apiManagementListApiReleases() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseUpdateSample.js index 265e52b0fdcb..237359b274d2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiReleaseUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the release of the API specified by its identifier. * * @summary Updates the details of the release of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiRelease.json */ async function apiManagementUpdateApiRelease() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiRevisionListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiRevisionListByServiceSample.js index 5b5c7b39c260..5136c01a7870 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiRevisionListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiRevisionListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all revisions of an API. * * @summary Lists all revisions of an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiRevisions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiRevisions.json */ async function apiManagementListApiRevisions() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaCreateOrUpdateSample.js index 6a210d5a27e4..fe6a1c36682c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates schema configuration for the API. * * @summary Creates or updates schema configuration for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiSchema.json */ async function apiManagementCreateApiSchema() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaDeleteSample.js index b1e83d19b274..9a693c66ff79 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the schema configuration at the Api. * * @summary Deletes the schema configuration at the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiSchema.json */ async function apiManagementDeleteApiSchema() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaGetEntityTagSample.js index 3751c83171f2..bb8c84e709ea 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the schema specified by its identifier. * * @summary Gets the entity state (Etag) version of the schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiSchema.json */ async function apiManagementHeadApiSchema() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaGetSample.js index aea3656161ee..3112f750045c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the schema configuration at the API level. * * @summary Get the schema configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiSchema.json */ async function apiManagementGetApiSchema() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaListByApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaListByApiSample.js index 15a624c5ca8a..7c1251a6c793 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaListByApiSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiSchemaListByApiSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the schema configuration at the API level. * * @summary Get the schema configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiSchemas.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiSchemas.json */ async function apiManagementListApiSchemas() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionCreateOrUpdateSample.js index 76ba34c987e2..91bbd96722b6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create/Update tag description in scope of the Api. * * @summary Create/Update tag description in scope of the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTagDescription.json */ async function apiManagementCreateApiTagDescription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionDeleteSample.js index 23e949614d28..6cd8a558aaf3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete tag description for the Api. * * @summary Delete tag description for the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTagDescription.json */ async function apiManagementDeleteApiTagDescription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionGetEntityTagSample.js index cfe63fa66c1a..ca27977653ee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTagDescription.json */ async function apiManagementHeadApiTagDescription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionGetSample.js index ee59d9125893..ea4bf4c9106a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get Tag description in scope of API * * @summary Get Tag description in scope of API - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTagDescription.json */ async function apiManagementGetApiTagDescription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionListByServiceSample.js index 9b77e53ab594..ebae773fabf7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiTagDescriptionListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations * * @summary Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTagDescriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTagDescriptions.json */ async function apiManagementListApiTagDescriptions() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiUpdateSample.js index 57c48bc902ff..d1c04c825556 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the specified API of the API Management service instance. * * @summary Updates the specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApi.json */ async function apiManagementUpdateApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetCreateOrUpdateSample.js index ff8d1c4c6633..ff17e78f63ec 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or Updates a Api Version Set. * * @summary Creates or Updates a Api Version Set. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiVersionSet.json */ async function apiManagementCreateApiVersionSet() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetDeleteSample.js index 98b7a2204cc5..d6e55104774d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific Api Version Set. * * @summary Deletes specific Api Version Set. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiVersionSet.json */ async function apiManagementDeleteApiVersionSet() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetGetEntityTagSample.js index 77e1831c95d7..674ef09874a3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Api Version Set specified by its identifier. * * @summary Gets the entity state (Etag) version of the Api Version Set specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiVersionSet.json */ async function apiManagementHeadApiVersionSet() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetGetSample.js index add485357d9d..b4f1a62a8494 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the Api Version Set specified by its identifier. * * @summary Gets the details of the Api Version Set specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiVersionSet.json */ async function apiManagementGetApiVersionSet() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetListByServiceSample.js index f9fbd5641060..8b254657dafb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of API Version Sets in the specified service instance. * * @summary Lists a collection of API Version Sets in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiVersionSets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiVersionSets.json */ async function apiManagementListApiVersionSets() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetUpdateSample.js index 167e20fb7987..c4ba89ab738b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiVersionSetUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the Api VersionSet specified by its identifier. * * @summary Updates the details of the Api VersionSet specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiVersionSet.json */ async function apiManagementUpdateApiVersionSet() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiCreateOrUpdateSample.js new file mode 100644 index 000000000000..70268843ba1e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiCreateOrUpdateSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates a new Wiki for an API or updates an existing one. + * + * @summary Creates a new Wiki for an API or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWiki.json + */ +async function apiManagementCreateApiWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const parameters = { + documents: [{ documentationId: "docId1" }, { documentationId: "docId2" }], + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.createOrUpdate( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiDeleteSample.js new file mode 100644 index 000000000000..7e087f4edf61 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiDeleteSample.js @@ -0,0 +1,37 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the specified Wiki from an API. + * + * @summary Deletes the specified Wiki from an API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiWiki.json + */ +async function apiManagementDeleteApiWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.delete(resourceGroupName, serviceName, apiId, ifMatch); + console.log(result); +} + +async function main() { + apiManagementDeleteApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetEntityTagSample.js new file mode 100644 index 000000000000..990dad387dbc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetEntityTagSample.js @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiWiki.json + */ +async function apiManagementHeadApiWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.getEntityTag(resourceGroupName, serviceName, apiId); + console.log(result); +} + +async function main() { + apiManagementHeadApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetSample.js new file mode 100644 index 000000000000..600194c58a53 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiGetSample.js @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the Wiki for an API specified by its identifier. + * + * @summary Gets the details of the Wiki for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiWiki.json + */ +async function apiManagementGetApiWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.get(resourceGroupName, serviceName, apiId); + console.log(result); +} + +async function main() { + apiManagementGetApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiUpdateSample.js new file mode 100644 index 000000000000..2e382cd55ace --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikiUpdateSample.js @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates the details of the Wiki for an API specified by its identifier. + * + * @summary Updates the details of the Wiki for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiWiki.json + */ +async function apiManagementUpdateApiWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const parameters = { + documents: [{ documentationId: "docId1" }], + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.update( + resourceGroupName, + serviceName, + apiId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikisListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikisListSample.js new file mode 100644 index 000000000000..240b0b297931 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/apiWikisListSample.js @@ -0,0 +1,39 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the wikis for an API specified by its identifier. + * + * @summary Gets the wikis for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiWikis.json + */ +async function apiManagementListApiWikis() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.apiWikis.list(resourceGroupName, serviceName, apiId)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListApiWikis(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyCreateOrUpdateSample.js new file mode 100644 index 000000000000..f238e32d7b6d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyCreateOrUpdateSample.js @@ -0,0 +1,49 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates Authorization Access Policy. + * + * @summary Creates or updates Authorization Access Policy. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAccessPolicy.json + */ +async function apiManagementCreateAuthorizationAccessPolicy() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const authorizationAccessPolicyId = "fe0bed83-631f-4149-bd0b-0464b1bc7cab"; + const parameters = { + objectId: "fe0bed83-631f-4149-bd0b-0464b1bc7cab", + tenantId: "13932a0d-5c63-4d37-901d-1df9c97722ff", + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationAccessPolicy.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateAuthorizationAccessPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyDeleteSample.js new file mode 100644 index 000000000000..e91921b1c554 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyDeleteSample.js @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes specific access policy from the Authorization. + * + * @summary Deletes specific access policy from the Authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationAccessPolicy.json + */ +async function apiManagementDeleteAuthorizationAccessPolicy() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const authorizationAccessPolicyId = "fe0bed83-631f-4149-bd0b-0464b1bc7cab"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationAccessPolicy.delete( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteAuthorizationAccessPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyGetSample.js new file mode 100644 index 000000000000..da0f334ba728 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyGetSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the authorization access policy specified by its identifier. + * + * @summary Gets the details of the authorization access policy specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationAccessPolicy.json + */ +async function apiManagementGetAuthorizationAccessPolicy() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const authorizationAccessPolicyId = "fe0bed83-631f-4149-bd0b-0464b1bc7cab"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationAccessPolicy.get( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorizationAccessPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyListByAuthorizationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyListByAuthorizationSample.js new file mode 100644 index 000000000000..4d43c4942f07 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationAccessPolicyListByAuthorizationSample.js @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists a collection of authorization access policy defined within a authorization. + * + * @summary Lists a collection of authorization access policy defined within a authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationAccessPolicies.json + */ +async function apiManagementListAuthorizationAccessPolicies() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorizationAccessPolicy.listByAuthorization( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListAuthorizationAccessPolicies(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationConfirmConsentCodeSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationConfirmConsentCodeSample.js new file mode 100644 index 000000000000..fd3c2108be08 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationConfirmConsentCodeSample.js @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Confirm valid consent code to suppress Authorizations anti-phishing page. + * + * @summary Confirm valid consent code to suppress Authorizations anti-phishing page. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPostAuthorizationConfirmConsentCodeRequest.json + */ +async function apiManagementPostAuthorizationConfirmConsentCodeRequest() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const parameters = { + consentCode: "theconsentcode", + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.confirmConsentCode( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementPostAuthorizationConfirmConsentCodeRequest(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationCreateOrUpdateSample.js new file mode 100644 index 000000000000..83989ac40f96 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationCreateOrUpdateSample.js @@ -0,0 +1,80 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates authorization. + * + * @summary Creates or updates authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAADAuthCode.json + */ +async function apiManagementCreateAuthorizationAadAuthCode() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz2"; + const parameters = { + authorizationType: "OAuth2", + oAuth2GrantType: "AuthorizationCode", + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization. + * + * @summary Creates or updates authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAADClientCred.json + */ +async function apiManagementCreateAuthorizationAadClientCred() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithclientcred"; + const authorizationId = "authz1"; + const parameters = { + authorizationType: "OAuth2", + oAuth2GrantType: "AuthorizationCode", + parameters: { + clientId: "", + clientSecret: "", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateAuthorizationAadAuthCode(); + apiManagementCreateAuthorizationAadClientCred(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationDeleteSample.js new file mode 100644 index 000000000000..f7d714a8fc4c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationDeleteSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes specific Authorization from the Authorization provider. + * + * @summary Deletes specific Authorization from the Authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorization.json + */ +async function apiManagementDeleteAuthorization() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.delete( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteAuthorization(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationGetSample.js new file mode 100644 index 000000000000..f9900f377ab9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationGetSample.js @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the authorization specified by its identifier. + * + * @summary Gets the details of the authorization specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorization.json + */ +async function apiManagementGetAuthorization() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.get( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorization(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationListByAuthorizationProviderSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationListByAuthorizationProviderSample.js new file mode 100644 index 000000000000..8e6c323aa5fc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationListByAuthorizationProviderSample.js @@ -0,0 +1,68 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists a collection of authorization providers defined within a authorization provider. + * + * @summary Lists a collection of authorization providers defined within a authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationsAuthCode.json + */ +async function apiManagementListAuthorizationsAuthCode() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorization.listByAuthorizationProvider( + resourceGroupName, + serviceName, + authorizationProviderId + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists a collection of authorization providers defined within a authorization provider. + * + * @summary Lists a collection of authorization providers defined within a authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationsClientCred.json + */ +async function apiManagementListAuthorizationsClientCred() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithclientcred"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorization.listByAuthorizationProvider( + resourceGroupName, + serviceName, + authorizationProviderId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListAuthorizationsAuthCode(); + apiManagementListAuthorizationsClientCred(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationLoginLinksPostSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationLoginLinksPostSample.js new file mode 100644 index 000000000000..826aaf4c0506 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationLoginLinksPostSample.js @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets authorization login links. + * + * @summary Gets authorization login links. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationLoginRequest.json + */ +async function apiManagementGetAuthorizationLoginRequest() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const parameters = { + postLoginRedirectUrl: "https://www.bing.com/", + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationLoginLinks.post( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorizationLoginRequest(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderCreateOrUpdateSample.js new file mode 100644 index 000000000000..25c4c3f9857c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderCreateOrUpdateSample.js @@ -0,0 +1,174 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderAADAuthCode.json + */ +async function apiManagementCreateAuthorizationProviderAadAuthCode() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const parameters = { + displayName: "aadwithauthcode", + identityProvider: "aad", + oauth2: { + grantTypes: { + authorizationCode: { + clientId: "", + clientSecret: "", + resourceUri: "https://graph.microsoft.com", + scopes: "User.Read.All Group.Read.All", + }, + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderAADClientCred.json + */ +async function apiManagementCreateAuthorizationProviderAadClientCred() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithclientcred"; + const parameters = { + displayName: "aadwithclientcred", + identityProvider: "aad", + oauth2: { + grantTypes: { + authorizationCode: { + resourceUri: "https://graph.microsoft.com", + scopes: "User.Read.All Group.Read.All", + }, + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderGenericOAuth2.json + */ +async function apiManagementCreateAuthorizationProviderGenericOAuth2() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "eventbrite"; + const parameters = { + displayName: "eventbrite", + identityProvider: "oauth2", + oauth2: { + grantTypes: { + authorizationCode: { + authorizationUrl: "https://www.eventbrite.com/oauth/authorize", + clientId: "", + clientSecret: "", + refreshUrl: "https://www.eventbrite.com/oauth/token", + scopes: "", + tokenUrl: "https://www.eventbrite.com/oauth/token", + }, + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderOOBGoogle.json + */ +async function apiManagementCreateAuthorizationProviderOobGoogle() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "google"; + const parameters = { + displayName: "google", + identityProvider: "google", + oauth2: { + grantTypes: { + authorizationCode: { + clientId: "", + clientSecret: "", + scopes: + "openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email", + }, + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateAuthorizationProviderAadAuthCode(); + apiManagementCreateAuthorizationProviderAadClientCred(); + apiManagementCreateAuthorizationProviderGenericOAuth2(); + apiManagementCreateAuthorizationProviderOobGoogle(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderDeleteSample.js new file mode 100644 index 000000000000..b99dbe990979 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderDeleteSample.js @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes specific authorization provider from the API Management service instance. + * + * @summary Deletes specific authorization provider from the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationProvider.json + */ +async function apiManagementDeleteAuthorizationProvider() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.delete( + resourceGroupName, + serviceName, + authorizationProviderId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteAuthorizationProvider(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderGetSample.js new file mode 100644 index 000000000000..f6b912f3c77f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderGetSample.js @@ -0,0 +1,40 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the authorization provider specified by its identifier. + * + * @summary Gets the details of the authorization provider specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationProvider.json + */ +async function apiManagementGetAuthorizationProvider() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.get( + resourceGroupName, + serviceName, + authorizationProviderId + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorizationProvider(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderListByServiceSample.js new file mode 100644 index 000000000000..3dc8718a04cf --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationProviderListByServiceSample.js @@ -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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists a collection of authorization providers defined within a service instance. + * + * @summary Lists a collection of authorization providers defined within a service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationProviders.json + */ +async function apiManagementListAuthorizationProviders() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorizationProvider.listByService( + resourceGroupName, + serviceName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListAuthorizationProviders(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerCreateOrUpdateSample.js index 0421d4afcc45..b7979a3de617 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates new authorization server or updates an existing authorization server. * * @summary Creates new authorization server or updates an existing authorization server. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationServer.json */ async function apiManagementCreateAuthorizationServer() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -38,6 +38,8 @@ async function apiManagementCreateAuthorizationServer() { resourceOwnerUsername: "un", supportState: true, tokenEndpoint: "https://www.contoso.com/oauth2/token", + useInApiDocumentation: true, + useInTestConsole: false, }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerDeleteSample.js index f80a894c8b36..eb91f5a8415e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific authorization server instance. * * @summary Deletes specific authorization server instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationServer.json */ async function apiManagementDeleteAuthorizationServer() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerGetEntityTagSample.js index cebd6c48a853..fc5d593841cf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the authorizationServer specified by its identifier. * * @summary Gets the entity state (Etag) version of the authorizationServer specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadAuthorizationServer.json */ async function apiManagementHeadAuthorizationServer() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerGetSample.js index 7f6c78b430bb..ce2df09edb9e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the authorization server specified by its identifier. * * @summary Gets the details of the authorization server specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationServer.json */ async function apiManagementGetAuthorizationServer() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerListByServiceSample.js index 2bb948c72845..5b6b5402645b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of authorization servers defined within a service instance. * * @summary Lists a collection of authorization servers defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListAuthorizationServers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationServers.json */ async function apiManagementListAuthorizationServers() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerListSecretsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerListSecretsSample.js index 0c4f0a5c224c..28a46978d721 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerListSecretsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerListSecretsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the client secret details of the authorization server. * * @summary Gets the client secret details of the authorization server. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementAuthorizationServerListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementAuthorizationServerListSecrets.json */ async function apiManagementAuthorizationServerListSecrets() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerUpdateSample.js index 949091f9c7e8..954d9bbabd69 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/authorizationServerUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the authorization server specified by its identifier. * * @summary Updates the details of the authorization server specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateAuthorizationServer.json */ async function apiManagementUpdateAuthorizationServer() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -27,6 +27,8 @@ async function apiManagementUpdateAuthorizationServer() { const parameters = { clientId: "update", clientSecret: "updated", + useInApiDocumentation: true, + useInTestConsole: false, }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendCreateOrUpdateSample.js index 0253b4f58c29..4ca13db624a8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or Updates a backend. * * @summary Creates or Updates a backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateBackendProxyBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateBackendProxyBackend.json */ async function apiManagementCreateBackendProxyBackend() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -54,7 +54,7 @@ async function apiManagementCreateBackendProxyBackend() { * This sample demonstrates how to Creates or Updates a backend. * * @summary Creates or Updates a backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateBackendServiceFabric.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateBackendServiceFabric.json */ async function apiManagementCreateBackendServiceFabric() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendDeleteSample.js index e6dd82c03e3d..69ab6f0fad93 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified backend. * * @summary Deletes the specified backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteBackend.json */ async function apiManagementDeleteBackend() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendGetEntityTagSample.js index ce810c73487e..730c49ab75ef 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the backend specified by its identifier. * * @summary Gets the entity state (Etag) version of the backend specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadBackend.json */ async function apiManagementHeadBackend() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendGetSample.js index e3e78689ad0f..49420fae5702 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the backend specified by its identifier. * * @summary Gets the details of the backend specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetBackend.json */ async function apiManagementGetBackend() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendListByServiceSample.js index e544760f9515..3e00e5a53142 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of backends in the specified service instance. * * @summary Lists a collection of backends in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListBackends.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListBackends.json */ async function apiManagementListBackends() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendReconnectSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendReconnectSample.js index 2920baf79fc8..938e8857f985 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendReconnectSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendReconnectSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. + * This sample demonstrates how to Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. * - * @summary Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackendReconnect.json + * @summary Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackendReconnect.json */ async function apiManagementBackendReconnect() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendUpdateSample.js index b1a7b1401cdc..0a59b7cd9133 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/backendUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an existing backend. * * @summary Updates an existing backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateBackend.json */ async function apiManagementUpdateBackend() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheCreateOrUpdateSample.js index c17a3544895e..df2ed678f398 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates an External Cache to be used in Api Management instance. * * @summary Creates or updates an External Cache to be used in Api Management instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCache.json */ async function apiManagementCreateCache() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheDeleteSample.js index 605a111cbf0d..8d53112af1ad 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific Cache. * * @summary Deletes specific Cache. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCache.json */ async function apiManagementDeleteCache() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheGetEntityTagSample.js index 7e68d37b88f6..4c3351ecfaff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Cache specified by its identifier. * * @summary Gets the entity state (Etag) version of the Cache specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCache.json */ async function apiManagementHeadCache() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheGetSample.js index bc3ed3ed7c14..076a92ae3ebc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the Cache specified by its identifier. * * @summary Gets the details of the Cache specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCache.json */ async function apiManagementGetCache() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheListByServiceSample.js index f4b14b662a20..1a01269c9975 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of all external Caches in the specified service instance. * * @summary Lists a collection of all external Caches in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCaches.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCaches.json */ async function apiManagementListCaches() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheUpdateSample.js index 6b0571ab7238..6cc255506788 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/cacheUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the cache specified by its identifier. * * @summary Updates the details of the cache specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateCache.json */ async function apiManagementUpdateCache() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateCreateOrUpdateSample.js index 41df359bc37b..1340bb5d0cf5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates the certificate being used for authentication with the backend. * * @summary Creates or updates the certificate being used for authentication with the backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCertificate.json */ async function apiManagementCreateCertificate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -42,7 +42,7 @@ async function apiManagementCreateCertificate() { * This sample demonstrates how to Creates or updates the certificate being used for authentication with the backend. * * @summary Creates or updates the certificate being used for authentication with the backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCertificateWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCertificateWithKeyVault.json */ async function apiManagementCreateCertificateWithKeyVault() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateDeleteSample.js index 013cfe0e3155..12ecde944b3f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific certificate. * * @summary Deletes specific certificate. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCertificate.json */ async function apiManagementDeleteCertificate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateGetEntityTagSample.js index 7f336ba2c4db..8bad2ee05230 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the certificate specified by its identifier. * * @summary Gets the entity state (Etag) version of the certificate specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCertificate.json */ async function apiManagementHeadCertificate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateGetSample.js index e3049a15c116..2002cc5a040f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the certificate specified by its identifier. * * @summary Gets the details of the certificate specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCertificate.json */ async function apiManagementGetCertificate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function apiManagementGetCertificate() { * This sample demonstrates how to Gets the details of the certificate specified by its identifier. * * @summary Gets the details of the certificate specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCertificateWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCertificateWithKeyVault.json */ async function apiManagementGetCertificateWithKeyVault() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateListByServiceSample.js index dc35d6a22f0a..81c3f2defeff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of all certificates in the specified service instance. * * @summary Lists a collection of all certificates in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCertificates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCertificates.json */ async function apiManagementListCertificates() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateRefreshSecretSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateRefreshSecretSample.js index 04488c6a94c0..c4dca8ef303c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateRefreshSecretSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/certificateRefreshSecretSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to From KeyVault, Refresh the certificate being used for authentication with the backend. * * @summary From KeyVault, Refresh the certificate being used for authentication with the backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshCertificate.json */ async function apiManagementRefreshCertificate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemCreateOrUpdateSample.js index df10af1f1cf3..1095ba94380d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new developer portal's content item specified by the provided content type. * * @summary Creates a new developer portal's content item specified by the provided content type. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentTypeContentItem.json */ async function apiManagementCreateContentTypeContentItem() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemDeleteSample.js index d290e60cd690..6a24e308366c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Removes the specified developer portal's content item. * * @summary Removes the specified developer portal's content item. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentTypeContentItem.json */ async function apiManagementDeleteContentTypeContentItem() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemGetEntityTagSample.js index 86baeea3592e..1edc51ee90a1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. * * @summary Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadContentTypeContentItem.json */ async function apiManagementHeadContentTypeContentItem() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemGetSample.js index 307a79d87672..63829913d79f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the developer portal's content item specified by its identifier. * * @summary Returns the developer portal's content item specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentTypeContentItem.json */ async function apiManagementGetContentTypeContentItem() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemListByServiceSample.js index 826b52fd03ce..8a28b59e3086 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentItemListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists developer portal's content items specified by the provided content type. * * @summary Lists developer portal's content items specified by the provided content type. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypeContentItems.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypeContentItems.json */ async function apiManagementListContentTypeContentItems() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeCreateOrUpdateSample.js index 0412d39d1a7a..05714fdc3355 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. * * @summary Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentType.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentType.json */ async function apiManagementCreateContentType() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeDeleteSample.js index 63d16d2536c4..2f3c09449cf1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. * * @summary Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentType.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentType.json */ async function apiManagementDeleteContentType() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeGetSample.js index e8b13b81942f..7fa86169014b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. * * @summary Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentType.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentType.json */ async function apiManagementGetContentType() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeListByServiceSample.js index 229c9e5d7b96..28090f798ae2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/contentTypeListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. * * @summary Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypes.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypes.json */ async function apiManagementListContentTypes() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsCreateOrUpdateSample.js index 9df5b4c2e815..6963ce064e52 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or Update Delegation settings. * * @summary Create or Update Delegation settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutDelegation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutDelegation.json */ async function apiManagementPortalSettingsUpdateDelegation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsGetEntityTagSample.js index aad4ca30cea7..3cbe316cf2fd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the DelegationSettings. * * @summary Gets the entity state (Etag) version of the DelegationSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDelegationSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDelegationSettings.json */ async function apiManagementHeadDelegationSettings() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsGetSample.js index 76aea1ad37e1..2714c0ec38c7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get Delegation Settings for the Portal. * * @summary Get Delegation Settings for the Portal. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetDelegation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetDelegation.json */ async function apiManagementPortalSettingsGetDelegation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsListSecretsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsListSecretsSample.js index ba32b2c759c8..4f75a4c8b56c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsListSecretsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsListSecretsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the secret validation key of the DelegationSettings. * * @summary Gets the secret validation key of the DelegationSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json */ async function apiManagementListSecretsPortalSettings() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsUpdateSample.js index 4cefa6e95ade..630e5cab3965 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/delegationSettingsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update Delegation settings. * * @summary Update Delegation settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json */ async function apiManagementPortalSettingsUpdateDelegation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesGetByNameSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesGetByNameSample.js index 4cfbeef53f31..c3f08bdc9343 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesGetByNameSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesGetByNameSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get soft-deleted Api Management Service by name. * * @summary Get soft-deleted Api Management Service by name. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDeletedServiceByName.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDeletedServiceByName.json */ async function apiManagementGetDeletedServiceByName() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesListBySubscriptionSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesListBySubscriptionSample.js index 6c1d1307d49b..17c4571cb186 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesListBySubscriptionSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all soft-deleted services available for undelete for the given subscription. * * @summary Lists all soft-deleted services available for undelete for the given subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesListBySubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesListBySubscription.json */ async function apiManagementDeletedServicesListBySubscription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesPurgeSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesPurgeSample.js index 424a1b91823e..3d1da4b755d2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesPurgeSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/deletedServicesPurgeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Purges Api Management Service (deletes it with no option to undelete). * * @summary Purges Api Management Service (deletes it with no option to undelete). - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesPurge.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesPurge.json */ async function apiManagementDeletedServicesPurge() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticCreateOrUpdateSample.js index b113f6c9fdd2..6ed9fb22716a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new Diagnostic or updates an existing one. * * @summary Creates a new Diagnostic or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDiagnostic.json */ async function apiManagementCreateDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticDeleteSample.js index 65e23cde1df6..00c559568141 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified Diagnostic. * * @summary Deletes the specified Diagnostic. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDiagnostic.json */ async function apiManagementDeleteDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticGetEntityTagSample.js index 6ea0e58d3490..5aacbd92b7bb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Diagnostic specified by its identifier. * * @summary Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDiagnostic.json */ async function apiManagementHeadDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticGetSample.js index 3e3bd9cd9daf..b9cf8b606385 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the Diagnostic specified by its identifier. * * @summary Gets the details of the Diagnostic specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDiagnostic.json */ async function apiManagementGetDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticListByServiceSample.js index 98140c2deed0..e6a0d5b3e513 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all diagnostics of the API Management service instance. * * @summary Lists all diagnostics of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListDiagnostics.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDiagnostics.json */ async function apiManagementListDiagnostics() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticUpdateSample.js index 9dc03d1bf95f..fa9e61cd27a0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/diagnosticUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the Diagnostic specified by its identifier. * * @summary Updates the details of the Diagnostic specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDiagnostic.json */ async function apiManagementUpdateDiagnostic() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationCreateOrUpdateSample.js new file mode 100644 index 000000000000..fc340f3fb3cb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationCreateOrUpdateSample.js @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates a new Documentation or updates an existing one. + * + * @summary Creates a new Documentation or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDocumentation.json + */ +async function apiManagementCreateDocumentation() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const parameters = { + content: "content", + title: "Title", + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.createOrUpdate( + resourceGroupName, + serviceName, + documentationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationDeleteSample.js new file mode 100644 index 000000000000..8b91cd1bfb31 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationDeleteSample.js @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the specified Documentation from an API. + * + * @summary Deletes the specified Documentation from an API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDocumentation.json + */ +async function apiManagementDeleteDocumentation() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.delete( + resourceGroupName, + serviceName, + documentationId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetEntityTagSample.js new file mode 100644 index 000000000000..b69de368cd61 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetEntityTagSample.js @@ -0,0 +1,40 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the Documentation by its identifier. + * + * @summary Gets the entity state (Etag) version of the Documentation by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDocumentation.json + */ +async function apiManagementHeadDocumentation() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.getEntityTag( + resourceGroupName, + serviceName, + documentationId + ); + console.log(result); +} + +async function main() { + apiManagementHeadDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetSample.js new file mode 100644 index 000000000000..2b8327cbeca4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationGetSample.js @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the Documentation specified by its identifier. + * + * @summary Gets the details of the Documentation specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDocumentation.json + */ +async function apiManagementGetDocumentation() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.get(resourceGroupName, serviceName, documentationId); + console.log(result); +} + +async function main() { + apiManagementGetDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationListByServiceSample.js new file mode 100644 index 000000000000..6e097b5efecd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationListByServiceSample.js @@ -0,0 +1,38 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists all Documentations of the API Management service instance. + * + * @summary Lists all Documentations of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDocumentations.json + */ +async function apiManagementListApis() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.documentation.listByService(resourceGroupName, serviceName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListApis(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationUpdateSample.js new file mode 100644 index 000000000000..d5dbf5573fcb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/documentationUpdateSample.js @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates the details of the Documentation for an API specified by its identifier. + * + * @summary Updates the details of the Documentation for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDocumentation.json + */ +async function apiManagementUpdateDocumentation() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const parameters = { + content: "content updated", + title: "Title updated", + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.update( + resourceGroupName, + serviceName, + documentationId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateCreateOrUpdateSample.js index 36eab3fb6135..f2bc4d83c249 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an Email Template. * * @summary Updates an Email Template. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTemplate.json */ async function apiManagementCreateTemplate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateDeleteSample.js index a4157bae4f39..0c3e62c1c42d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reset the Email Template to default template provided by the API Management service instance. * * @summary Reset the Email Template to default template provided by the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTemplate.json */ async function apiManagementDeleteTemplate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateGetEntityTagSample.js index 6d9eab478656..0a8e69533322 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the email template specified by its identifier. * * @summary Gets the entity state (Etag) version of the email template specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadEmailTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadEmailTemplate.json */ async function apiManagementHeadEmailTemplate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateGetSample.js index c8e31853a780..bf10c6bc39c8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the email template specified by its identifier. * * @summary Gets the details of the email template specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTemplate.json */ async function apiManagementGetTemplate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateListByServiceSample.js index d4cbef1c80b4..9f0b7e5a85ec 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets all email templates * * @summary Gets all email templates - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTemplates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTemplates.json */ async function apiManagementListTemplates() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateUpdateSample.js index ecea377c1790..dd5dabdf3153 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/emailTemplateUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates API Management email template * * @summary Updates API Management email template - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTemplate.json */ async function apiManagementUpdateTemplate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiCreateOrUpdateSample.js index 5126a2021c0d..27af0ce2c617 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Adds an API to the specified Gateway. * * @summary Adds an API to the specified Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayApi.json */ async function apiManagementCreateGatewayApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiDeleteSample.js index 228ba5bc6252..9e0fe5b09392 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified API from the specified Gateway. * * @summary Deletes the specified API from the specified Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayApi.json */ async function apiManagementDeleteGatewayApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiGetEntityTagSample.js index 8164f7a7f640..1db0bafe1f8a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks that API entity specified by identifier is associated with the Gateway entity. * * @summary Checks that API entity specified by identifier is associated with the Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayApi.json */ async function apiManagementHeadGatewayApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiListByServiceSample.js index 57974ff924f1..438b01851fce 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayApiListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of the APIs associated with a gateway. * * @summary Lists a collection of the APIs associated with a gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayApis.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayApis.json */ async function apiManagementListGatewayApis() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityCreateOrUpdateSample.js index d7696ed64109..15c62b3c17f8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Assign Certificate entity to Gateway entity as Certificate Authority. * * @summary Assign Certificate entity to Gateway entity as Certificate Authority. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json */ async function apiManagementCreateGatewayCertificateAuthority() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityDeleteSample.js index e7adfe7252a5..f67ff86c7652 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Remove relationship between Certificate Authority and Gateway entity. * * @summary Remove relationship between Certificate Authority and Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json */ async function apiManagementDeleteGatewayCertificateAuthority() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityGetEntityTagSample.js index 9729d81a7bed..ed253feb0c2c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. * * @summary Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json */ async function apiManagementHeadGatewayCertificateAuthority() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityGetSample.js index 56ae75e27bec..a366bc0e3bad 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get assigned Gateway Certificate Authority details. * * @summary Get assigned Gateway Certificate Authority details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json */ async function apiManagementGetGatewayCertificateAuthority() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityListByServiceSample.js index af1c756a5df0..ed2a64ca95d2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCertificateAuthorityListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the collection of Certificate Authorities for the specified Gateway entity. * * @summary Lists the collection of Certificate Authorities for the specified Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json */ async function apiManagementListGatewaycertificateAuthorities() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCreateOrUpdateSample.js index 9b8ee950847a..ff8a9bc6405a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates a Gateway to be used in Api Management instance. * * @summary Creates or updates a Gateway to be used in Api Management instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGateway.json */ async function apiManagementCreateGateway() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayDeleteSample.js index dd90437bd8f1..c4e9acbdf08d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific Gateway. * * @summary Deletes specific Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGateway.json */ async function apiManagementDeleteGateway() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGenerateTokenSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGenerateTokenSample.js index 987fe86067af..678bbf0c198e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGenerateTokenSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGenerateTokenSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Shared Access Authorization Token for the gateway. * * @summary Gets the Shared Access Authorization Token for the gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayGenerateToken.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayGenerateToken.json */ async function apiManagementGatewayGenerateToken() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGetEntityTagSample.js index ca4f6bfeed16..9ca21b97fb8c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Gateway specified by its identifier. * * @summary Gets the entity state (Etag) version of the Gateway specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGateway.json */ async function apiManagementHeadGateway() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGetSample.js index 85f1fab0f735..f4998b04558b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the Gateway specified by its identifier. * * @summary Gets the details of the Gateway specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGateway.json */ async function apiManagementGetGateway() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationCreateOrUpdateSample.js index c6cb550ce1eb..1324f0a92902 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates of updates hostname configuration for a Gateway. * * @summary Creates of updates hostname configuration for a Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json */ async function apiManagementCreateGatewayHostnameConfiguration() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationDeleteSample.js index 1b40705849b1..695ab07c6c00 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified hostname configuration from the specified Gateway. * * @summary Deletes the specified hostname configuration from the specified Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json */ async function apiManagementDeleteGatewayHostnameConfiguration() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationGetEntityTagSample.js index 27caedb23676..faa573d62a95 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. * * @summary Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json */ async function apiManagementHeadGatewayHostnameConfiguration() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationGetSample.js index 900d5f997117..9d087c2a1444 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of a hostname configuration * * @summary Get details of a hostname configuration - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json */ async function apiManagementGetGatewayHostnameConfiguration() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationListByServiceSample.js index 4f84859bc635..0748fdc01255 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayHostnameConfigurationListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the collection of hostname configurations for the specified gateway. * * @summary Lists the collection of hostname configurations for the specified gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json */ async function apiManagementListGatewayHostnameConfigurations() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayListByServiceSample.js index 225863a21b55..aed212883848 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of gateways registered with service instance. * * @summary Lists a collection of gateways registered with service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGateways.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGateways.json */ async function apiManagementListGateways() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayListKeysSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayListKeysSample.js index 019ddf1a61f7..c77d66d4c757 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayListKeysSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayListKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves gateway keys. * * @summary Retrieves gateway keys. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayListKeys.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayListKeys.json */ async function apiManagementGatewayListKeys() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayRegenerateKeySample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayRegenerateKeySample.js index 41bf34f285e9..14b92c46df6d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayRegenerateKeySample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayRegenerateKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerates specified gateway key invalidating any tokens created with it. * * @summary Regenerates specified gateway key invalidating any tokens created with it. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayRegenerateKey.json */ async function apiManagementGatewayRegenerateKey() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayUpdateSample.js index 5308cb2449fa..480f2f452414 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/gatewayUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the gateway specified by its identifier. * * @summary Updates the details of the gateway specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGateway.json */ async function apiManagementUpdateGateway() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaCreateOrUpdateSample.js index 41af6acfc8da..1374244fc7d4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates new or updates existing specified Schema of the API Management service instance. * * @summary Creates new or updates existing specified Schema of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGlobalSchema1.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGlobalSchema1.json */ async function apiManagementCreateSchema1() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -44,7 +44,7 @@ async function apiManagementCreateSchema1() { * This sample demonstrates how to Creates new or updates existing specified Schema of the API Management service instance. * * @summary Creates new or updates existing specified Schema of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGlobalSchema2.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGlobalSchema2.json */ async function apiManagementCreateSchema2() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaDeleteSample.js index ad49833155d3..307dcf1c1505 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific Schema. * * @summary Deletes specific Schema. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGlobalSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGlobalSchema.json */ async function apiManagementDeleteSchema() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetEntityTagSample.js index 1e4c3d2a5591..5ce9c7bd16a5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Schema specified by its identifier. * * @summary Gets the entity state (Etag) version of the Schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGlobalSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGlobalSchema.json */ async function apiManagementHeadApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetSample.js index e587b1d1bada..0396ab805d56 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the Schema specified by its identifier. * * @summary Gets the details of the Schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGlobalSchema1.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGlobalSchema1.json */ async function apiManagementGetSchema1() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function apiManagementGetSchema1() { * This sample demonstrates how to Gets the details of the Schema specified by its identifier. * * @summary Gets the details of the Schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGlobalSchema2.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGlobalSchema2.json */ async function apiManagementGetSchema2() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaListByServiceSample.js index a8c3f3a6bdbf..3789e8f1951d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/globalSchemaListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of schemas registered with service instance. * * @summary Lists a collection of schemas registered with service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGlobalSchemas.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGlobalSchemas.json */ async function apiManagementListSchemas() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverCreateOrUpdateSample.js new file mode 100644 index 000000000000..7446b897ec9e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverCreateOrUpdateSample.js @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates a new resolver in the GraphQL API or updates an existing one. + * + * @summary Creates a new resolver in the GraphQL API or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolver.json + */ +async function apiManagementCreateGraphQlApiResolver() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "someAPI"; + const resolverId = "newResolver"; + const parameters = { + path: "Query/users", + description: "A GraphQL Resolver example", + displayName: "Query Users", + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.createOrUpdate( + resourceGroupName, + serviceName, + apiId, + resolverId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverDeleteSample.js new file mode 100644 index 000000000000..879f05dc0ce6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverDeleteSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the specified resolver in the GraphQL API. + * + * @summary Deletes the specified resolver in the GraphQL API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolver.json + */ +async function apiManagementDeleteGraphQlApiResolver() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const resolverId = "57d2ef278aa04f0ad01d6cdc"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.delete( + resourceGroupName, + serviceName, + apiId, + resolverId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetEntityTagSample.js new file mode 100644 index 000000000000..9ba071082a23 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetEntityTagSample.js @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolver.json + */ +async function apiManagementHeadGraphQlApiResolver() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const resolverId = "57d2ef278aa04f0ad01d6cdc"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.getEntityTag( + resourceGroupName, + serviceName, + apiId, + resolverId + ); + console.log(result); +} + +async function main() { + apiManagementHeadGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetSample.js new file mode 100644 index 000000000000..d32f9c5af123 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverGetSample.js @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the GraphQL API Resolver specified by its identifier. + * + * @summary Gets the details of the GraphQL API Resolver specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolver.json + */ +async function apiManagementGetGraphQlApiResolver() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const resolverId = "57d2ef278aa04f0ad01d6cdc"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.get( + resourceGroupName, + serviceName, + apiId, + resolverId + ); + console.log(result); +} + +async function main() { + apiManagementGetGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverListByApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverListByApiSample.js new file mode 100644 index 000000000000..e1cf0676756d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverListByApiSample.js @@ -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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists a collection of the resolvers for the specified GraphQL API. + * + * @summary Lists a collection of the resolvers for the specified GraphQL API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolvers.json + */ +async function apiManagementListGraphQlApiResolvers() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.graphQLApiResolver.listByApi( + resourceGroupName, + serviceName, + apiId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListGraphQlApiResolvers(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyCreateOrUpdateSample.js new file mode 100644 index 000000000000..fa882eed61ca --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyCreateOrUpdateSample.js @@ -0,0 +1,55 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates policy configuration for the GraphQL API Resolver level. + * + * @summary Creates or updates policy configuration for the GraphQL API Resolver level. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolverPolicy.json + */ +async function apiManagementCreateGraphQlApiResolverPolicy() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "5600b57e7e8880006a040001"; + const resolverId = "5600b57e7e8880006a080001"; + const policyId = "policy"; + const ifMatch = "*"; + const parameters = { + format: "xml", + value: + 'GET/api/users', + }; + const options = { + ifMatch, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.createOrUpdate( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + parameters, + options + ); + console.log(result); +} + +async function main() { + apiManagementCreateGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyDeleteSample.js new file mode 100644 index 000000000000..b787dc1fa8d9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyDeleteSample.js @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the policy configuration at the GraphQL Api Resolver. + * + * @summary Deletes the policy configuration at the GraphQL Api Resolver. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolverPolicy.json + */ +async function apiManagementDeleteGraphQlApiResolverPolicy() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "testapi"; + const resolverId = "testResolver"; + const policyId = "policy"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.delete( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetEntityTagSample.js new file mode 100644 index 000000000000..cae6d329209f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetEntityTagSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolverPolicy.json + */ +async function apiManagementHeadGraphQlApiResolverPolicy() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "5600b539c53f5b0062040001"; + const resolverId = "5600b53ac53f5b0062080006"; + const policyId = "policy"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.getEntityTag( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId + ); + console.log(result); +} + +async function main() { + apiManagementHeadGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetSample.js new file mode 100644 index 000000000000..3876fc2dec14 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyGetSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the policy configuration at the GraphQL API Resolver level. + * + * @summary Get the policy configuration at the GraphQL API Resolver level. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolverPolicy.json + */ +async function apiManagementGetGraphQlApiResolverPolicy() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "5600b539c53f5b0062040001"; + const resolverId = "5600b53ac53f5b0062080006"; + const policyId = "policy"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.get( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId + ); + console.log(result); +} + +async function main() { + apiManagementGetGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyListByResolverSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyListByResolverSample.js new file mode 100644 index 000000000000..88aa7e02ffed --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverPolicyListByResolverSample.js @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the list of policy configuration at the GraphQL API Resolver level. + * + * @summary Get the list of policy configuration at the GraphQL API Resolver level. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolverPolicies.json + */ +async function apiManagementListGraphQlApiResolverPolicies() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "599e2953193c3c0bd0b3e2fa"; + const resolverId = "599e29ab193c3c0bd0b3e2fb"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.graphQLApiResolverPolicy.listByResolver( + resourceGroupName, + serviceName, + apiId, + resolverId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListGraphQlApiResolverPolicies(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverUpdateSample.js new file mode 100644 index 000000000000..0046b8365166 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/graphQlApiResolverUpdateSample.js @@ -0,0 +1,50 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates the details of the resolver in the GraphQL API specified by its identifier. + * + * @summary Updates the details of the resolver in the GraphQL API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGraphQLApiResolver.json + */ +async function apiManagementUpdateGraphQlApiResolver() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "echo-api"; + const resolverId = "resolverId"; + const ifMatch = "*"; + const parameters = { + path: "Query/adminUsers", + description: "A GraphQL Resolver example", + displayName: "Query AdminUsers", + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.update( + resourceGroupName, + serviceName, + apiId, + resolverId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupCreateOrUpdateSample.js index 8ae1850a90dc..72e59cd9bc86 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or Updates a group. * * @summary Creates or Updates a group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroup.json */ async function apiManagementCreateGroup() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function apiManagementCreateGroup() { * This sample demonstrates how to Creates or Updates a group. * * @summary Creates or Updates a group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroupExternal.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroupExternal.json */ async function apiManagementCreateGroupExternal() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupDeleteSample.js index f70d87b7bd37..39644a63e528 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific group of the API Management service instance. * * @summary Deletes specific group of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroup.json */ async function apiManagementDeleteGroup() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupGetEntityTagSample.js index e9517bd67fd6..93385aacf98a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the group specified by its identifier. * * @summary Gets the entity state (Etag) version of the group specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroup.json */ async function apiManagementHeadGroup() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupGetSample.js index 6074e771c521..47dec95a83e8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the group specified by its identifier. * * @summary Gets the details of the group specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGroup.json */ async function apiManagementGetGroup() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupListByServiceSample.js index 2ab7a7ba1ced..601ccdc5e9f1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of groups defined within a service instance. * * @summary Lists a collection of groups defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroups.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroups.json */ async function apiManagementListGroups() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUpdateSample.js index c0aa95942a9b..136002f1b049 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the group specified by its identifier. * * @summary Updates the details of the group specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGroup.json */ async function apiManagementUpdateGroup() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserCheckEntityExistsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserCheckEntityExistsSample.js index 4656bd665902..133f9ae9f2e4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserCheckEntityExistsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserCheckEntityExistsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks that user entity specified by identifier is associated with the group entity. * * @summary Checks that user entity specified by identifier is associated with the group entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroupUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroupUser.json */ async function apiManagementHeadGroupUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserCreateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserCreateSample.js index 60e5de1cbb9d..c366837cb6ba 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserCreateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Add existing user to existing group * * @summary Add existing user to existing group - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroupUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroupUser.json */ async function apiManagementCreateGroupUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserDeleteSample.js index 2cc78d973ac0..68ce703a17f8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Remove existing user from existing group. * * @summary Remove existing user from existing group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroupUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroupUser.json */ async function apiManagementDeleteGroupUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserListSample.js index 0bf30dfc8044..c61c33a10711 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserListSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/groupUserListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of user entities associated with the group. * * @summary Lists a collection of user entities associated with the group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroupUsers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroupUsers.json */ async function apiManagementListGroupUsers() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderCreateOrUpdateSample.js index ee1ab5c1dc58..313523eefc0b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or Updates the IdentityProvider configuration. * * @summary Creates or Updates the IdentityProvider configuration. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateIdentityProvider.json */ async function apiManagementCreateIdentityProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderDeleteSample.js index 87b309b077ce..f1d47f00e8fe 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified identity provider configuration. * * @summary Deletes the specified identity provider configuration. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteIdentityProvider.json */ async function apiManagementDeleteIdentityProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderGetEntityTagSample.js index 726ec1fad6f7..67b92489be42 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the identityProvider specified by its identifier. * * @summary Gets the entity state (Etag) version of the identityProvider specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadIdentityProvider.json */ async function apiManagementHeadIdentityProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderGetSample.js index cc3f287bbfdc..4d5475ad9479 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the configuration details of the identity Provider configured in specified service instance. * * @summary Gets the configuration details of the identity Provider configured in specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIdentityProvider.json */ async function apiManagementGetIdentityProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderListByServiceSample.js index eb7b4157a1b1..d22ad1585be8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of Identity Provider configured in the specified service instance. * * @summary Lists a collection of Identity Provider configured in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIdentityProviders.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIdentityProviders.json */ async function apiManagementListIdentityProviders() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderListSecretsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderListSecretsSample.js index bcc386031196..8f715900b2b4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderListSecretsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderListSecretsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the client secret details of the Identity Provider. * * @summary Gets the client secret details of the Identity Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementIdentityProviderListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementIdentityProviderListSecrets.json */ async function apiManagementIdentityProviderListSecrets() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderUpdateSample.js index 824eeb0f62a3..0e054ddd597d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/identityProviderUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an existing IdentityProvider configuration. * * @summary Updates an existing IdentityProvider configuration. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateIdentityProvider.json */ async function apiManagementUpdateIdentityProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/issueGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/issueGetSample.js index 797e7f1592a3..3b3e585ac812 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/issueGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/issueGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets API Management issue details * * @summary Gets API Management issue details - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIssue.json */ async function apiManagementGetIssue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/issueListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/issueListByServiceSample.js index 436c9a7bc97c..c413e7d2b53e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/issueListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/issueListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of issues in the specified service instance. * * @summary Lists a collection of issues in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIssues.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIssues.json */ async function apiManagementListIssues() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerCreateOrUpdateSample.js index cb6b69361a7d..f3ef8807e9af 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or Updates a logger. * * @summary Creates or Updates a logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAILogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAILogger.json */ async function apiManagementCreateAiLogger() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -43,7 +43,7 @@ async function apiManagementCreateAiLogger() { * This sample demonstrates how to Creates or Updates a logger. * * @summary Creates or Updates a logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateEHLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateEHLogger.json */ async function apiManagementCreateEhLogger() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerDeleteSample.js index d147cd8e8588..26cb68f5ccfc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified logger. * * @summary Deletes the specified logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteLogger.json */ async function apiManagementDeleteLogger() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerGetEntityTagSample.js index 2243e7c5152e..ea06381cafce 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the logger specified by its identifier. * * @summary Gets the entity state (Etag) version of the logger specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadLogger.json */ async function apiManagementHeadLogger() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerGetSample.js index f39b49e9035d..81f5ccff4b6b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the logger specified by its identifier. * * @summary Gets the details of the logger specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetLogger.json */ async function apiManagementGetLogger() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerListByServiceSample.js index 0b1b27edc712..42b164573667 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of loggers in the specified service instance. * * @summary Lists a collection of loggers in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListLoggers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListLoggers.json */ async function apiManagementListLoggers() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerUpdateSample.js index 1ec697a22f02..409f22365f7e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/loggerUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an existing logger. * * @summary Updates an existing logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateLogger.json */ async function apiManagementUpdateLogger() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueCreateOrUpdateSample.js index 9593c5d31bfc..e5c7eaca2d7f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates named value. * * @summary Creates or updates named value. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNamedValue.json */ async function apiManagementCreateNamedValue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -44,7 +44,7 @@ async function apiManagementCreateNamedValue() { * This sample demonstrates how to Creates or updates named value. * * @summary Creates or updates named value. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNamedValueWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNamedValueWithKeyVault.json */ async function apiManagementCreateNamedValueWithKeyVault() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueDeleteSample.js index b72bc3e48a9e..8f048bb20e22 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific named value from the API Management service instance. * * @summary Deletes specific named value from the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNamedValue.json */ async function apiManagementDeleteNamedValue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueGetEntityTagSample.js index 91a90744523b..fc83a8b98e52 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the named value specified by its identifier. * * @summary Gets the entity state (Etag) version of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNamedValue.json */ async function apiManagementHeadNamedValue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueGetSample.js index c48904568637..147aa9e4b940 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the named value specified by its identifier. * * @summary Gets the details of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNamedValue.json */ async function apiManagementGetNamedValue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function apiManagementGetNamedValue() { * This sample demonstrates how to Gets the details of the named value specified by its identifier. * * @summary Gets the details of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNamedValueWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNamedValueWithKeyVault.json */ async function apiManagementGetNamedValueWithKeyVault() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueListByServiceSample.js index 755d7e62f380..9c3c773bd8a5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of named values defined within a service instance. * * @summary Lists a collection of named values defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNamedValues.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNamedValues.json */ async function apiManagementListNamedValues() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueListValueSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueListValueSample.js index ba758f05e745..9ce3223c67fa 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueListValueSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueListValueSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the secret of the named value specified by its identifier. * * @summary Gets the secret of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementNamedValueListValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementNamedValueListValue.json */ async function apiManagementNamedValueListValue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueRefreshSecretSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueRefreshSecretSample.js index 28c9f9cbc411..5508bf88ffbb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueRefreshSecretSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueRefreshSecretSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Refresh the secret of the named value specified by its identifier. * * @summary Refresh the secret of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshNamedValue.json */ async function apiManagementRefreshNamedValue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueUpdateSample.js index a20caf9090de..83b2d824cc0e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/namedValueUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the specific named value. * * @summary Updates the specific named value. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateNamedValue.json */ async function apiManagementUpdateNamedValue() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/networkStatusListByLocationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/networkStatusListByLocationSample.js index 533c4ff18bd6..fcecbefce3c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/networkStatusListByLocationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/networkStatusListByLocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. * * @summary Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json */ async function apiManagementServiceGetNetworkStatusByLocation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/networkStatusListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/networkStatusListByServiceSample.js index cfbbde2b5348..2dfa920a0edf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/networkStatusListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/networkStatusListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. * * @summary Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatus.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatus.json */ async function apiManagementServiceGetNetworkStatus() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationCreateOrUpdateSample.js index fd43fea884a8..d56a46917077 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or Update API Management publisher notification. * * @summary Create or Update API Management publisher notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotification.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotification.json */ async function apiManagementCreateNotification() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationGetSample.js index 7a47a588b743..f114e561e227 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the Notification specified by its identifier. * * @summary Gets the details of the Notification specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNotification.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNotification.json */ async function apiManagementGetNotification() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationListByServiceSample.js index 58862e4947e1..4ea02a659af0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of properties defined within a service instance. * * @summary Lists a collection of properties defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotifications.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotifications.json */ async function apiManagementListNotifications() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailCheckEntityExistsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailCheckEntityExistsSample.js index 1c9555f0b914..32ba1b78f618 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailCheckEntityExistsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailCheckEntityExistsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Determine if Notification Recipient Email subscribed to the notification. * * @summary Determine if Notification Recipient Email subscribed to the notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json */ async function apiManagementHeadNotificationRecipientEmail() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailCreateOrUpdateSample.js index 3bcdefc0bc64..9a95c65e4031 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Adds the Email address to the list of Recipients for the Notification. * * @summary Adds the Email address to the list of Recipients for the Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json */ async function apiManagementCreateNotificationRecipientEmail() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailDeleteSample.js index c3d4d765e4d7..e30dc518ae8f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Removes the email from the list of Notification. * * @summary Removes the email from the list of Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json */ async function apiManagementDeleteNotificationRecipientEmail() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailListByNotificationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailListByNotificationSample.js index dc2787bab72c..21a8de8282b4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailListByNotificationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientEmailListByNotificationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of the Notification Recipient Emails subscribed to a notification. * * @summary Gets the list of the Notification Recipient Emails subscribed to a notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientEmails.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientEmails.json */ async function apiManagementListNotificationRecipientEmails() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserCheckEntityExistsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserCheckEntityExistsSample.js index e6f06048a317..ddbace184db3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserCheckEntityExistsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserCheckEntityExistsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Determine if the Notification Recipient User is subscribed to the notification. * * @summary Determine if the Notification Recipient User is subscribed to the notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientUser.json */ async function apiManagementHeadNotificationRecipientUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserCreateOrUpdateSample.js index 6d2175343c0a..94e057384dcf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Adds the API Management User to the list of Recipients for the Notification. * * @summary Adds the API Management User to the list of Recipients for the Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientUser.json */ async function apiManagementCreateNotificationRecipientUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserDeleteSample.js index 1ba30b0afdc0..4d5a6fe43eff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Removes the API Management user from the list of Notification. * * @summary Removes the API Management user from the list of Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json */ async function apiManagementDeleteNotificationRecipientUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserListByNotificationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserListByNotificationSample.js index dd58b5f815a7..99d2dd58e019 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserListByNotificationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/notificationRecipientUserListByNotificationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of the Notification Recipient User subscribed to the notification. * * @summary Gets the list of the Notification Recipient User subscribed to the notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientUsers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientUsers.json */ async function apiManagementListNotificationRecipientUsers() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderCreateOrUpdateSample.js index 57cf8e5ab379..f72e1e03de52 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates the OpenID Connect Provider. * * @summary Creates or updates the OpenID Connect Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json */ async function apiManagementCreateOpenIdConnectProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -28,6 +28,8 @@ async function apiManagementCreateOpenIdConnectProvider() { clientSecret: "x", displayName: "templateoidprovider3", metadataEndpoint: "https://oidprovider-template3.net", + useInApiDocumentation: true, + useInTestConsole: false, }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderDeleteSample.js index 5053495c8f18..7d9448207f0f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific OpenID Connect Provider of the API Management service instance. * * @summary Deletes specific OpenID Connect Provider of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json */ async function apiManagementDeleteOpenIdConnectProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderGetEntityTagSample.js index d99b89b40a4b..538a40f1895d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. * * @summary Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json */ async function apiManagementHeadOpenIdConnectProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderGetSample.js index 6852ddc565b1..e9faea22e622 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets specific OpenID Connect Provider without secrets. * * @summary Gets specific OpenID Connect Provider without secrets. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetOpenIdConnectProvider.json */ async function apiManagementGetOpenIdConnectProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderListByServiceSample.js index 7f6088bab2a4..ef55d3e4b814 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists of all the OpenId Connect Providers. * * @summary Lists of all the OpenId Connect Providers. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOpenIdConnectProviders.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOpenIdConnectProviders.json */ async function apiManagementListOpenIdConnectProviders() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderListSecretsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderListSecretsSample.js index a14435dd9707..ca44f3a5b5a8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderListSecretsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderListSecretsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the client secret details of the OpenID Connect Provider. * * @summary Gets the client secret details of the OpenID Connect Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json */ async function apiManagementOpenidConnectProviderListSecrets() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderUpdateSample.js index 6c276e1e0d1f..eb365b56cde4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/openIdConnectProviderUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the specific OpenID Connect Provider. * * @summary Updates the specific OpenID Connect Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json */ async function apiManagementUpdateOpenIdConnectProvider() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -26,6 +26,8 @@ async function apiManagementUpdateOpenIdConnectProvider() { const ifMatch = "*"; const parameters = { clientSecret: "updatedsecret", + useInApiDocumentation: true, + useInTestConsole: false, }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/operationListByTagsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/operationListByTagsSample.js index 79def0a34d27..8e9e26afafff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/operationListByTagsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/operationListByTagsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of operations associated with tags. * * @summary Lists a collection of operations associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationsByTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationsByTags.json */ async function apiManagementListApiOperationsByTags() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/outboundNetworkDependenciesEndpointsListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/outboundNetworkDependenciesEndpointsListByServiceSample.js index 8723b72b37b5..8b273712155b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/outboundNetworkDependenciesEndpointsListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/outboundNetworkDependenciesEndpointsListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the network endpoints of all outbound dependencies of a ApiManagement service. * * @summary Gets the network endpoints of all outbound dependencies of a ApiManagement service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json */ async function apiManagementServiceGetOutboundNetworkDependenciesEndpoints() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/performConnectivityCheckAsyncSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/performConnectivityCheckAsyncSample.js index 079de28438ea..3b146cfb3229 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/performConnectivityCheckAsyncSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/performConnectivityCheckAsyncSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. * * @summary Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json */ async function httpConnectivityCheck() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -48,7 +48,7 @@ async function httpConnectivityCheck() { * This sample demonstrates how to Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. * * @summary Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPerformConnectivityCheck.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPerformConnectivityCheck.json */ async function tcpConnectivityCheck() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyCreateOrUpdateSample.js index 788b2a0a3631..a577cdeb9c79 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates the global policy configuration of the Api Management service. * * @summary Creates or updates the global policy configuration of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicy.json */ async function apiManagementCreatePolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDeleteSample.js index 88699bb6b243..684337199838 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the global policy configuration of the Api Management Service. * * @summary Deletes the global policy configuration of the Api Management Service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicy.json */ async function apiManagementDeletePolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDescriptionListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDescriptionListByServiceSample.js index 1129b025c370..02538ce3a9ca 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDescriptionListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyDescriptionListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all policy descriptions. * * @summary Lists all policy descriptions. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicyDescriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyDescriptions.json */ async function apiManagementListPolicyDescriptions() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentCreateOrUpdateSample.js new file mode 100644 index 000000000000..9759a8aad7f9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentCreateOrUpdateSample.js @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a policy fragment. + * + * @summary Creates or updates a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicyFragment.json + */ +async function apiManagementCreatePolicy() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const parameters = { + format: "xml", + description: "A policy fragment example", + value: '', + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + id, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreatePolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentDeleteSample.js new file mode 100644 index 000000000000..aca4c62840db --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentDeleteSample.js @@ -0,0 +1,37 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a policy fragment. + * + * @summary Deletes a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicyFragment.json + */ +async function apiManagementDeletePolicy() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.delete(resourceGroupName, serviceName, id, ifMatch); + console.log(result); +} + +async function main() { + apiManagementDeletePolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetEntityTagSample.js new file mode 100644 index 000000000000..cb7803427b6e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetEntityTagSample.js @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of a policy fragment. + * + * @summary Gets the entity state (Etag) version of a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicyFragment.json + */ +async function apiManagementHeadPolicyFragment() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.getEntityTag(resourceGroupName, serviceName, id); + console.log(result); +} + +async function main() { + apiManagementHeadPolicyFragment(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetSample.js new file mode 100644 index 000000000000..41cbfad2d20e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentGetSample.js @@ -0,0 +1,56 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a policy fragment. + * + * @summary Gets a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFragment.json + */ +async function apiManagementGetPolicyFragment() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.get(resourceGroupName, serviceName, id); + console.log(result); +} + +/** + * This sample demonstrates how to Gets a policy fragment. + * + * @summary Gets a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFragmentFormat.json + */ +async function apiManagementGetPolicyFragmentFormat() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const format = "rawxml"; + const options = { format }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.get(resourceGroupName, serviceName, id, options); + console.log(result); +} + +async function main() { + apiManagementGetPolicyFragment(); + apiManagementGetPolicyFragmentFormat(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListByServiceSample.js new file mode 100644 index 000000000000..b05b301f7b9a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListByServiceSample.js @@ -0,0 +1,35 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets all policy fragments. + * + * @summary Gets all policy fragments. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragments.json + */ +async function apiManagementListPolicyFragments() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.listByService(resourceGroupName, serviceName); + console.log(result); +} + +async function main() { + apiManagementListPolicyFragments(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListReferencesSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListReferencesSample.js new file mode 100644 index 000000000000..4b8d4c0758ca --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyFragmentListReferencesSample.js @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists policy resources that reference the policy fragment. + * + * @summary Lists policy resources that reference the policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragmentReferences.json + */ +async function apiManagementListPolicyFragmentReferences() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.listReferences(resourceGroupName, serviceName, id); + console.log(result); +} + +async function main() { + apiManagementListPolicyFragmentReferences(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetEntityTagSample.js index ff0c66aa20d7..fcc225e7b0fb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Global policy definition in the Api Management service. * * @summary Gets the entity state (Etag) version of the Global policy definition in the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicy.json */ async function apiManagementHeadPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetSample.js index 4c53696a3bc0..185fdd850105 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the Global policy definition of the Api Management service. * * @summary Get the Global policy definition of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicy.json */ async function apiManagementGetPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function apiManagementGetPolicy() { * This sample demonstrates how to Get the Global policy definition of the Api Management service. * * @summary Get the Global policy definition of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPolicyFormat.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFormat.json */ async function apiManagementGetPolicyFormat() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyListByServiceSample.js index 3434cb18b82f..84c4551b9494 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/policyListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the Global Policy definitions of the Api Management service. * * @summary Lists all the Global Policy definitions of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicies.json */ async function apiManagementListPolicies() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigCreateOrUpdateSample.js new file mode 100644 index 000000000000..c0837fd0a78e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigCreateOrUpdateSample.js @@ -0,0 +1,65 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update the developer portal configuration. + * + * @summary Create or update the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalConfig.json + */ +async function apiManagementCreatePortalConfig() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const ifMatch = "*"; + const parameters = { + cors: { allowedOrigins: ["https://contoso.com"] }, + csp: { + allowedSources: ["*.contoso.com"], + mode: "reportOnly", + reportUri: ["https://report.contoso.com"], + }, + delegation: { + delegateRegistration: false, + delegateSubscription: false, + delegationUrl: undefined, + validationKey: undefined, + }, + enableBasicAuth: true, + signin: { require: false }, + signup: { + termsOfService: { + requireConsent: false, + text: "I agree to the service terms and conditions.", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.createOrUpdate( + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreatePortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetEntityTagSample.js new file mode 100644 index 000000000000..e3aaf0822c04 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetEntityTagSample.js @@ -0,0 +1,40 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the developer portal configuration. + * + * @summary Gets the entity state (Etag) version of the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalConfig.json + */ +async function apiManagementHeadPortalConfig() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.getEntityTag( + resourceGroupName, + serviceName, + portalConfigId + ); + console.log(result); +} + +async function main() { + apiManagementHeadPortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetSample.js new file mode 100644 index 000000000000..21e7f5c58b40 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigGetSample.js @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the developer portal configuration. + * + * @summary Get the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalConfig.json + */ +async function apiManagementPortalConfig() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.get(resourceGroupName, serviceName, portalConfigId); + console.log(result); +} + +async function main() { + apiManagementPortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigListByServiceSample.js new file mode 100644 index 000000000000..6c02dcbd0b16 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigListByServiceSample.js @@ -0,0 +1,35 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists the developer portal configurations. + * + * @summary Lists the developer portal configurations. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalConfig.json + */ +async function apiManagementListPortalConfig() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.listByService(resourceGroupName, serviceName); + console.log(result); +} + +async function main() { + apiManagementListPortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigUpdateSample.js new file mode 100644 index 000000000000..529851321c71 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalConfigUpdateSample.js @@ -0,0 +1,65 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Update the developer portal configuration. + * + * @summary Update the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalConfig.json + */ +async function apiManagementUpdatePortalConfig() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const ifMatch = "*"; + const parameters = { + cors: { allowedOrigins: ["https://contoso.com"] }, + csp: { + allowedSources: ["*.contoso.com"], + mode: "reportOnly", + reportUri: ["https://report.contoso.com"], + }, + delegation: { + delegateRegistration: false, + delegateSubscription: false, + delegationUrl: undefined, + validationKey: undefined, + }, + enableBasicAuth: true, + signin: { require: false }, + signup: { + termsOfService: { + requireConsent: false, + text: "I agree to the service terms and conditions.", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.update( + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdatePortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionCreateOrUpdateSample.js index 7b8b8b0d0ca3..f05ce432e1a1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. * * @summary Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalRevision.json */ async function apiManagementCreatePortalRevision() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetEntityTagSample.js index f0efea7c55f6..3ef0bad6fc1a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the developer portal revision specified by its identifier. * * @summary Gets the developer portal revision specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalRevision.json */ async function apiManagementHeadPortalRevision() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetSample.js index f58a78b42d2f..57fbbb9cc935 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the developer portal's revision specified by its identifier. * * @summary Gets the developer portal's revision specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPortalRevision.json */ async function apiManagementGetPortalRevision() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionListByServiceSample.js index 486c29e7faaa..7b8e84068393 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists developer portal's revisions. * * @summary Lists developer portal's revisions. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalRevisions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalRevisions.json */ async function apiManagementListPortalRevisions() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionUpdateSample.js index 1d331bd0cb9e..de1e2281d03b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalRevisionUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the description of specified portal revision or makes it current. * * @summary Updates the description of specified portal revision or makes it current. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdatePortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalRevision.json */ async function apiManagementUpdatePortalRevision() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalSettingsListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalSettingsListByServiceSample.js index 7a6ccdd8e9cf..c1e452000614 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalSettingsListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/portalSettingsListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of portalsettings defined within a service instance.. * * @summary Lists a collection of portalsettings defined within a service instance.. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalSettings.json */ async function apiManagementListPortalSettings() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionCreateOrUpdateSample.js index 7123853249b2..12d886a6877c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new Private Endpoint Connection or updates an existing one. * * @summary Creates a new Private Endpoint Connection or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json */ async function apiManagementApproveOrRejectPrivateEndpointConnection() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionDeleteSample.js index fa119f3a62e9..fb4788cc7243 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified Private Endpoint Connection. * * @summary Deletes the specified Private Endpoint Connection. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json */ async function apiManagementDeletePrivateEndpointConnection() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionGetByNameSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionGetByNameSample.js index 6b26b5e82d4d..6e48b3b5b55f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionGetByNameSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionGetByNameSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the Private Endpoint Connection specified by its identifier. * * @summary Gets the details of the Private Endpoint Connection specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateEndpointConnection.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateEndpointConnection.json */ async function apiManagementGetPrivateEndpointConnection() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionGetPrivateLinkResourceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionGetPrivateLinkResourceSample.js index dad2dd760fb6..21f4a101e5d2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionGetPrivateLinkResourceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionGetPrivateLinkResourceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private link resources * * @summary Gets the private link resources - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json */ async function apiManagementGetPrivateLinkGroupResource() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionListByServiceSample.js index f300b72f0f68..08128754fab0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all private endpoint connections of the API Management service instance. * * @summary Lists all private endpoint connections of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateEndpointConnections.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateEndpointConnections.json */ async function apiManagementListPrivateEndpointConnections() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionListPrivateLinkResourcesSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionListPrivateLinkResourcesSample.js index 03a4353b4239..07ce5c14409a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionListPrivateLinkResourcesSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/privateEndpointConnectionListPrivateLinkResourcesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private link resources * * @summary Gets the private link resources - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateLinkGroupResources.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateLinkGroupResources.json */ async function apiManagementListPrivateLinkGroupResources() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiCheckEntityExistsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiCheckEntityExistsSample.js index c4b35ccde8d8..4e2f666b1c78 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiCheckEntityExistsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiCheckEntityExistsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks that API entity specified by identifier is associated with the Product entity. * * @summary Checks that API entity specified by identifier is associated with the Product entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductApi.json */ async function apiManagementHeadProductApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiCreateOrUpdateSample.js index f970064d3c0d..5cf9f78065bc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Adds an API to the specified product. * * @summary Adds an API to the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductApi.json */ async function apiManagementCreateProductApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiDeleteSample.js index 1dc7f3639a9d..bc0e062e7f40 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified API from the specified product. * * @summary Deletes the specified API from the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductApi.json */ async function apiManagementDeleteProductApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiListByProductSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiListByProductSample.js index 3665786424eb..56783a4d64f3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiListByProductSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productApiListByProductSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of the APIs associated with a product. * * @summary Lists a collection of the APIs associated with a product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductApis.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductApis.json */ async function apiManagementListProductApis() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productCreateOrUpdateSample.js index fc3ad2712c2c..b498d17f7861 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or Updates a product. * * @summary Creates or Updates a product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProduct.json */ async function apiManagementCreateProduct() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productDeleteSample.js index aac95222793a..58a330e87563 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete product. * * @summary Delete product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProduct.json */ async function apiManagementDeleteProduct() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGetEntityTagSample.js index eefdf73b367f..2f102f71a948 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the product specified by its identifier. * * @summary Gets the entity state (Etag) version of the product specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProduct.json */ async function apiManagementHeadProduct() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGetSample.js index cf52a3fd01b6..29e840d33298 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the product specified by its identifier. * * @summary Gets the details of the product specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProduct.json */ async function apiManagementGetProduct() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupCheckEntityExistsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupCheckEntityExistsSample.js index 0c9e0d9f23c0..773af1e6b568 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupCheckEntityExistsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupCheckEntityExistsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks that Group entity specified by identifier is associated with the Product entity. * * @summary Checks that Group entity specified by identifier is associated with the Product entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductGroup.json */ async function apiManagementHeadProductGroup() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupCreateOrUpdateSample.js index 4fad1d5396ea..9e7a1f5321f8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Adds the association between the specified developer group with the specified product. * * @summary Adds the association between the specified developer group with the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductGroup.json */ async function apiManagementCreateProductGroup() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupDeleteSample.js index 16cee23f99a0..85e615fe3ab5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the association between the specified group and product. * * @summary Deletes the association between the specified group and product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductGroup.json */ async function apiManagementDeleteProductGroup() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupListByProductSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupListByProductSample.js index e0e05533d640..f30a2536a246 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupListByProductSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productGroupListByProductSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the collection of developer groups associated with the specified product. * * @summary Lists the collection of developer groups associated with the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductGroups.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductGroups.json */ async function apiManagementListProductGroups() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productListByServiceSample.js index e1180edc44a0..8a6b5934fead 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of products in the specified service instance. * * @summary Lists a collection of products in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProducts.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProducts.json */ async function apiManagementListProducts() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productListByTagsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productListByTagsSample.js index fe1297df74b1..2f93c4de95a7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productListByTagsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productListByTagsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of products associated with tags. * * @summary Lists a collection of products associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductsByTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductsByTags.json */ async function apiManagementListProductsByTags() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyCreateOrUpdateSample.js index 679a4513a239..72f2850b3beb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates policy configuration for the Product. * * @summary Creates or updates policy configuration for the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductPolicy.json */ async function apiManagementCreateProductPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyDeleteSample.js index 2361b46280eb..6dc5480affca 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the policy configuration at the Product. * * @summary Deletes the policy configuration at the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductPolicy.json */ async function apiManagementDeleteProductPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyGetEntityTagSample.js index 3b0792282146..6b000dd88a20 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the ETag of the policy configuration at the Product level. * * @summary Get the ETag of the policy configuration at the Product level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductPolicy.json */ async function apiManagementHeadProductPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyGetSample.js index b725a6185b4f..ac2720557e60 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the policy configuration at the Product level. * * @summary Get the policy configuration at the Product level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductPolicy.json */ async function apiManagementGetProductPolicy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyListByProductSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyListByProductSample.js index 13dcac453bdf..bf604abb9040 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyListByProductSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productPolicyListByProductSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the policy configuration at the Product level. * * @summary Get the policy configuration at the Product level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductPolicies.json */ async function apiManagementListProductPolicies() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productSubscriptionsListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productSubscriptionsListSample.js index d546143a5c00..ddd2a6c842ca 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productSubscriptionsListSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productSubscriptionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the collection of subscriptions to the specified product. * * @summary Lists the collection of subscriptions to the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductSubscriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductSubscriptions.json */ async function apiManagementListProductSubscriptions() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productUpdateSample.js index 9e98a7af5be2..776f63448cbd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update existing product details. * * @summary Update existing product details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProduct.json */ async function apiManagementUpdateProduct() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiCreateOrUpdateSample.js new file mode 100644 index 000000000000..10bb0d9d8751 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiCreateOrUpdateSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates a new Wiki for a Product or updates an existing one. + * + * @summary Creates a new Wiki for a Product or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductWiki.json + */ +async function apiManagementCreateProductWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const parameters = { + documents: [{ documentationId: "docId1" }, { documentationId: "docId2" }], + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.createOrUpdate( + resourceGroupName, + serviceName, + productId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiDeleteSample.js new file mode 100644 index 000000000000..5b6abcb3173d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiDeleteSample.js @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the specified Wiki from a Product. + * + * @summary Deletes the specified Wiki from a Product. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductWiki.json + */ +async function apiManagementDeleteProductWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.delete( + resourceGroupName, + serviceName, + productId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetEntityTagSample.js new file mode 100644 index 000000000000..4bd7437888d5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetEntityTagSample.js @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductWiki.json + */ +async function apiManagementHeadProductWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.getEntityTag(resourceGroupName, serviceName, productId); + console.log(result); +} + +async function main() { + apiManagementHeadProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetSample.js new file mode 100644 index 000000000000..b5d8aaaa1d86 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiGetSample.js @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the Wiki for a Product specified by its identifier. + * + * @summary Gets the details of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductWiki.json + */ +async function apiManagementGetProductWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.get(resourceGroupName, serviceName, productId); + console.log(result); +} + +async function main() { + apiManagementGetProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiUpdateSample.js new file mode 100644 index 000000000000..971fc63e196a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikiUpdateSample.js @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates the details of the Wiki for a Product specified by its identifier. + * + * @summary Updates the details of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProductWiki.json + */ +async function apiManagementUpdateProductWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const parameters = { + documents: [{ documentationId: "docId1" }], + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.update( + resourceGroupName, + serviceName, + productId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikisListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikisListSample.js new file mode 100644 index 000000000000..cf04c810dde3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/productWikisListSample.js @@ -0,0 +1,39 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ApiManagementClient } = require("@azure/arm-apimanagement"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the Wiki for a Product specified by its identifier. + * + * @summary Gets the details of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductWikis.json + */ +async function apiManagementGetApiWiki() { + const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.productWikis.list(resourceGroupName, serviceName, productId)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementGetApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysListByServiceSample.js index 179b5972915d..2941677d3e10 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. * * @summary Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeys.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeys.json */ async function apiManagementGetQuotaCounterKeys() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysUpdateSample.js index 0491a1bc021f..f621a6fd1d09 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByCounterKeysUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. * * @summary Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKey.json */ async function apiManagementUpdateQuotaCounterKey() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByPeriodKeysGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByPeriodKeysGetSample.js index 58c863c9d65a..8e12793dce01 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByPeriodKeysGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByPeriodKeysGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. * * @summary Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json */ async function apiManagementGetQuotaCounterKeysByQuotaPeriod() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByPeriodKeysUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByPeriodKeysUpdateSample.js index c901a1a8e335..0b60d2ee57dd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByPeriodKeysUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/quotaByPeriodKeysUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an existing quota counter value in the specified service instance. * * @summary Updates an existing quota counter value in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json */ async function apiManagementUpdateQuotaCounterKeyByQuotaPeriod() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/regionListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/regionListByServiceSample.js index 00b9fd9aea09..94038a11078b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/regionListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/regionListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all azure regions in which the service exists. * * @summary Lists all azure regions in which the service exists. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListRegions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListRegions.json */ async function apiManagementListRegions() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByApiSample.js index e8e5529d0189..712ee9917a97 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByApiSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByApiSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists report records by API. * * @summary Lists report records by API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByApi.json */ async function apiManagementGetReportsByApi() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByGeoSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByGeoSample.js index e5bcddd747e3..84747253ca3a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByGeoSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByGeoSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists report records by geography. * * @summary Lists report records by geography. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByGeo.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByGeo.json */ async function apiManagementGetReportsByGeo() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByOperationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByOperationSample.js index 204d12b2a4fb..427f688edafe 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByOperationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByOperationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists report records by API Operations. * * @summary Lists report records by API Operations. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByOperation.json */ async function apiManagementGetReportsByOperation() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByProductSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByProductSample.js index 6f526920ba03..d2c09e0cef82 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByProductSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByProductSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists report records by Product. * * @summary Lists report records by Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByProduct.json */ async function apiManagementGetReportsByProduct() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByRequestSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByRequestSample.js index 3b9fad36530b..dbc9cfc038f2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByRequestSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByRequestSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists report records by Request. * * @summary Lists report records by Request. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByRequest.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByRequest.json */ async function apiManagementGetReportsByRequest() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListBySubscriptionSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListBySubscriptionSample.js index 970663b26811..d55e09d3b584 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListBySubscriptionSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists report records by subscription. * * @summary Lists report records by subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsBySubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsBySubscription.json */ async function apiManagementGetReportsBySubscription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByTimeSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByTimeSample.js index e556de8d5198..9d2a96ab9b69 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByTimeSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByTimeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists report records by Time. * * @summary Lists report records by Time. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByTime.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByTime.json */ async function apiManagementGetReportsByTime() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByUserSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByUserSample.js index bb7a94ceb894..345018a7fc7a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByUserSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/reportsListByUserSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists report records by User. * * @summary Lists report records by User. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByUser.json */ async function apiManagementGetReportsByUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsCreateOrUpdateSample.js index b2426bca7ec4..57d1cd32f6f3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or Update Sign-In settings. * * @summary Create or Update Sign-In settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignIn.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignIn.json */ async function apiManagementPortalSettingsUpdateSignIn() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsGetEntityTagSample.js index 13978675d5be..46673b482da3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the SignInSettings. * * @summary Gets the entity state (Etag) version of the SignInSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignInSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignInSettings.json */ async function apiManagementHeadSignInSettings() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsGetSample.js index d2c4c174718f..455c87f76414 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get Sign In Settings for the Portal * * @summary Get Sign In Settings for the Portal - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignIn.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignIn.json */ async function apiManagementPortalSettingsGetSignIn() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsUpdateSample.js index 55895f11f4a3..49dbf570b1b5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signInSettingsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update Sign-In settings. * * @summary Update Sign-In settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json */ async function apiManagementPortalSettingsUpdateSignIn() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsCreateOrUpdateSample.js index 71f1765ebfb2..2d10a55600d1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or Update Sign-Up settings. * * @summary Create or Update Sign-Up settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignUp.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignUp.json */ async function apiManagementPortalSettingsUpdateSignUp() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsGetEntityTagSample.js index 81bdd9077057..f53b9ae13d61 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the SignUpSettings. * * @summary Gets the entity state (Etag) version of the SignUpSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignUpSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignUpSettings.json */ async function apiManagementHeadSignUpSettings() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsGetSample.js index 60c5989d0c1d..bc3b78502b76 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get Sign Up Settings for the Portal * * @summary Get Sign Up Settings for the Portal - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignUp.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignUp.json */ async function apiManagementPortalSettingsGetSignUp() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsUpdateSample.js index a50ede0be072..42afceca3f7d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/signUpSettingsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update Sign-Up settings. * * @summary Update Sign-Up settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json */ async function apiManagementPortalSettingsUpdateSignUp() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionCreateOrUpdateSample.js index 11ee44928b33..f8efe6a46c0b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates the subscription of specified user to the specified product. * * @summary Creates or updates the subscription of specified user to the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSubscription.json */ async function apiManagementCreateSubscription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionDeleteSample.js index 20bab7e67a71..ea4a27be5986 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified subscription. * * @summary Deletes the specified subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteSubscription.json */ async function apiManagementDeleteSubscription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionGetEntityTagSample.js index a8e60c90aa6f..a2f7fd17da68 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. * * @summary Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSubscription.json */ async function apiManagementHeadSubscription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionGetSample.js index fa697dedeede..fc75b7acfc53 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specified Subscription entity. * * @summary Gets the specified Subscription entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetSubscription.json */ async function apiManagementGetSubscription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionListSample.js index 8687e9488539..97f5300a5c35 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionListSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all subscriptions of the API Management service instance. * * @summary Lists all subscriptions of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSubscriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSubscriptions.json */ async function apiManagementListSubscriptions() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionListSecretsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionListSecretsSample.js index 5f9a53a84ddf..bc1230be8fa1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionListSecretsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionListSecretsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specified Subscription keys. * * @summary Gets the specified Subscription keys. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionListSecrets.json */ async function apiManagementSubscriptionListSecrets() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionRegeneratePrimaryKeySample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionRegeneratePrimaryKeySample.js index b0a78bb57b32..9e80bd7828e3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionRegeneratePrimaryKeySample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionRegeneratePrimaryKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerates primary key of existing subscription of the API Management service instance. * * @summary Regenerates primary key of existing subscription of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json */ async function apiManagementSubscriptionRegeneratePrimaryKey() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionRegenerateSecondaryKeySample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionRegenerateSecondaryKeySample.js index 44867efa777b..97edf8dd37e9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionRegenerateSecondaryKeySample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionRegenerateSecondaryKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerates secondary key of existing subscription of the API Management service instance. * * @summary Regenerates secondary key of existing subscription of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json */ async function apiManagementSubscriptionRegenerateSecondaryKey() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionUpdateSample.js index 19efa5e97851..ba235a8bda69 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/subscriptionUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of a subscription specified by its identifier. * * @summary Updates the details of a subscription specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateSubscription.json */ async function apiManagementUpdateSubscription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToApiSample.js index 8225b9f278d9..d9a181016caf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToApiSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToApiSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Assign tag to the Api. * * @summary Assign tag to the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTag.json */ async function apiManagementCreateApiTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToOperationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToOperationSample.js index 1581a9d15b14..2baea0741055 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToOperationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToOperationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Assign tag to the Operation. * * @summary Assign tag to the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationTag.json */ async function apiManagementCreateApiOperationTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToProductSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToProductSample.js index bb503c045ddd..f7371c3d6777 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToProductSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagAssignToProductSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Assign tag to the Product. * * @summary Assign tag to the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductTag.json */ async function apiManagementCreateProductTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagCreateOrUpdateSample.js index 9d8c3bef60e4..287baa3f513a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a tag. * * @summary Creates a tag. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTag.json */ async function apiManagementCreateTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDeleteSample.js index 2999246788e2..51df1c361807 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific tag of the API Management service instance. * * @summary Deletes specific tag of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTag.json */ async function apiManagementDeleteTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromApiSample.js index 9a12fe4daef0..849dfc74cf77 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromApiSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromApiSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Detach the tag from the Api. * * @summary Detach the tag from the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTag.json */ async function apiManagementDeleteApiTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromOperationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromOperationSample.js index d889c50e9e75..19f3bf7b0211 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromOperationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromOperationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Detach the tag from the Operation. * * @summary Detach the tag from the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationTag.json */ async function apiManagementDeleteApiOperationTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromProductSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromProductSample.js index 8bd4fa939b6b..b67971d9a867 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromProductSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagDetachFromProductSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Detach the tag from the Product. * * @summary Detach the tag from the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductTag.json */ async function apiManagementDeleteProductTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByApiSample.js index 75006db3ee75..e02d19370d3d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByApiSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByApiSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get tag associated with the API. * * @summary Get tag associated with the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTag.json */ async function apiManagementGetApiTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByOperationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByOperationSample.js index a29d79f81c4f..74a109f4d7c5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByOperationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByOperationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get tag associated with the Operation. * * @summary Get tag associated with the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationTag.json */ async function apiManagementGetApiOperationTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByProductSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByProductSample.js index 836fb5213525..8d11a3b6fb04 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByProductSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetByProductSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get tag associated with the Product. * * @summary Get tag associated with the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductTag.json */ async function apiManagementGetProductTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByApiSample.js index ad6c8608a091..a888d7b4ebc2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByApiSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByApiSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTag.json */ async function apiManagementHeadApiTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByOperationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByOperationSample.js index 7bc429398ecf..67023d5307b6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByOperationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByOperationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationTag.json */ async function apiManagementHeadApiOperationTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByProductSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByProductSample.js index 51543997e0a4..0005fe15c122 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByProductSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateByProductSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductTag.json */ async function apiManagementHeadProductTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateSample.js index 1edf5acba265..57d98a339c62 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetEntityStateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTag.json */ async function apiManagementHeadTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetSample.js index d5ba51453ba5..0ed7c484c5bf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the tag specified by its identifier. * * @summary Gets the details of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTag.json */ async function apiManagementGetTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByApiSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByApiSample.js index e74b6345808f..6b67d9345dae 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByApiSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByApiSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all Tags associated with the API. * * @summary Lists all Tags associated with the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTags.json */ async function apiManagementListApiTags() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByOperationSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByOperationSample.js index fb75eb0e7a9f..550065000767 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByOperationSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByOperationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all Tags associated with the Operation. * * @summary Lists all Tags associated with the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationTags.json */ async function apiManagementListApiOperationTags() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByProductSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByProductSample.js index b6019fafde8f..6c1e173be15b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByProductSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByProductSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all Tags associated with the Product. * * @summary Lists all Tags associated with the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductTags.json */ async function apiManagementListProductTags() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByServiceSample.js index f50240388d54..d3a2718d829c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of tags defined within a service instance. * * @summary Lists a collection of tags defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTags.json */ async function apiManagementListTags() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagResourceListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagResourceListByServiceSample.js index 8825c9ca8111..9188cae6add9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagResourceListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagResourceListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of resources associated with tags. * * @summary Lists a collection of resources associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTagResources.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTagResources.json */ async function apiManagementListTagResources() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagUpdateSample.js index 2ef776b5c9b5..142a584ff36e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tagUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the tag specified by its identifier. * * @summary Updates the details of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTag.json */ async function apiManagementUpdateTag() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessCreateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessCreateSample.js index f1750e862e62..7199358a1d8d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessCreateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update tenant access information details. * * @summary Update tenant access information details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTenantAccess.json */ async function apiManagementCreateTenantAccess() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGetEntityTagSample.js index c631495b9f95..d7b2746a972d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Tenant access metadata * * @summary Tenant access metadata - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTenantAccess.json */ async function apiManagementHeadTenantAccess() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGetSample.js index a7addc75bfd8..f895c5cdfc56 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get tenant access information details without secrets. * * @summary Get tenant access information details without secrets. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantAccess.json */ async function apiManagementGetTenantAccess() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function apiManagementGetTenantAccess() { * This sample demonstrates how to Get tenant access information details without secrets. * * @summary Get tenant access information details without secrets. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantGitAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantGitAccess.json */ async function apiManagementGetTenantGitAccess() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGitRegeneratePrimaryKeySample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGitRegeneratePrimaryKeySample.js index 554be420204d..d92babb5454e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGitRegeneratePrimaryKeySample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGitRegeneratePrimaryKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerate primary access key for GIT. * * @summary Regenerate primary access key for GIT. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGitRegenerateSecondaryKeySample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGitRegenerateSecondaryKeySample.js index 43e345e22a37..dde18bcb2e09 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGitRegenerateSecondaryKeySample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessGitRegenerateSecondaryKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerate secondary access key for GIT. * * @summary Regenerate secondary access key for GIT. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessListByServiceSample.js index dfaf61111720..4bc0777393cf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns list of access infos - for Git and Management endpoints. * * @summary Returns list of access infos - for Git and Management endpoints. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantAccess.json */ async function apiManagementListTenantAccess() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessListSecretsSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessListSecretsSample.js index a5f20aa122d8..20574ed6f3bb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessListSecretsSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessListSecretsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get tenant access information details. * * @summary Get tenant access information details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsTenantAccess.json */ async function apiManagementListSecretsTenantAccess() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessRegeneratePrimaryKeySample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessRegeneratePrimaryKeySample.js index b4f366c75de8..174deab22f0f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessRegeneratePrimaryKeySample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessRegeneratePrimaryKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerate primary access key * * @summary Regenerate primary access key - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessRegenerateSecondaryKeySample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessRegenerateSecondaryKeySample.js index a99e6d378e10..12595b1f3478 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessRegenerateSecondaryKeySample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessRegenerateSecondaryKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerate secondary access key * * @summary Regenerate secondary access key - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessUpdateSample.js index 8312ac60c58c..6e83a0511933 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantAccessUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update tenant access information details. * * @summary Update tenant access information details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTenantAccess.json */ async function apiManagementUpdateTenantAccess() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationDeploySample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationDeploySample.js index f2bbdc1ad9ee..687ee0edc36d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationDeploySample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationDeploySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. * * @summary This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationDeploy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationDeploy.json */ async function apiManagementTenantConfigurationDeploy() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationGetSyncStateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationGetSyncStateSample.js index 69b6d443ad4b..ddd1b90076b9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationGetSyncStateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationGetSyncStateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the status of the most recent synchronization between the configuration database and the Git repository. * * @summary Gets the status of the most recent synchronization between the configuration database and the Git repository. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessSyncState.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessSyncState.json */ async function apiManagementTenantAccessSyncState() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationSaveSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationSaveSample.js index 35eb4156d9ee..5f08a9dd92ba 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationSaveSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationSaveSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. * * @summary This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationSave.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationSave.json */ async function apiManagementTenantConfigurationSave() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationValidateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationValidateSample.js index b0d21f38b168..8fb54c64a354 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationValidateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantConfigurationValidateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. * * @summary This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationValidate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationValidate.json */ async function apiManagementTenantConfigurationValidate() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantSettingsGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantSettingsGetSample.js index fc6178328e7f..3b7b01825994 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantSettingsGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantSettingsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get tenant settings. * * @summary Get tenant settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantSettings.json */ async function apiManagementGetTenantSettings() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantSettingsListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantSettingsListByServiceSample.js index 942d74758fc2..f0dff1d51ca4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantSettingsListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/tenantSettingsListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Public settings. * * @summary Public settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantSettings.json */ async function apiManagementListTenantSettings() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userConfirmationPasswordSendSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userConfirmationPasswordSendSample.js index d5524ecfb1aa..accd972e90bd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userConfirmationPasswordSendSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userConfirmationPasswordSendSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Sends confirmation * * @summary Sends confirmation - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserConfirmationPasswordSend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserConfirmationPasswordSend.json */ async function apiManagementUserConfirmationPasswordSend() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userCreateOrUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userCreateOrUpdateSample.js index 7076e32e5cdd..6163e39d9537 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userCreateOrUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or Updates a user. * * @summary Creates or Updates a user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateUser.json */ async function apiManagementCreateUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userDeleteSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userDeleteSample.js index b1800402d664..6e4721d262dc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userDeleteSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific user. * * @summary Deletes specific user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteUser.json */ async function apiManagementDeleteUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGenerateSsoUrlSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGenerateSsoUrlSample.js index b1cd48bae8b3..f06c3c69120c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGenerateSsoUrlSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGenerateSsoUrlSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. * * @summary Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserGenerateSsoUrl.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserGenerateSsoUrl.json */ async function apiManagementUserGenerateSsoUrl() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetEntityTagSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetEntityTagSample.js index ca42fb7c5ede..62d9ca586b01 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetEntityTagSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetEntityTagSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the entity state (Etag) version of the user specified by its identifier. * * @summary Gets the entity state (Etag) version of the user specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadUser.json */ async function apiManagementHeadUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetSample.js index d21f8d4fc444..e0e411fa3ce9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the details of the user specified by its identifier. * * @summary Gets the details of the user specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUser.json */ async function apiManagementGetUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetSharedAccessTokenSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetSharedAccessTokenSample.js index 4c7fb82fe229..e599324ddf2a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetSharedAccessTokenSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGetSharedAccessTokenSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Shared Access Authorization Token for the User. * * @summary Gets the Shared Access Authorization Token for the User. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserToken.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserToken.json */ async function apiManagementUserToken() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGroupListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGroupListSample.js index 72d77a88c38e..240d8f0d4755 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGroupListSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userGroupListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all user groups. * * @summary Lists all user groups. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserGroups.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserGroups.json */ async function apiManagementListUserGroups() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userIdentitiesListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userIdentitiesListSample.js index 67526e9ec5dd..1e5b6e106841 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userIdentitiesListSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userIdentitiesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List of all user identities. * * @summary List of all user identities. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserIdentities.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserIdentities.json */ async function apiManagementListUserIdentities() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userListByServiceSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userListByServiceSample.js index 8084b564598e..b4d6747fc954 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userListByServiceSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userListByServiceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists a collection of registered users in the specified service instance. * * @summary Lists a collection of registered users in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUsers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUsers.json */ async function apiManagementListUsers() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userSubscriptionGetSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userSubscriptionGetSample.js index c8b2c82bad50..8ff32c59599a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userSubscriptionGetSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userSubscriptionGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specified Subscription entity associated with a particular user. * * @summary Gets the specified Subscription entity associated with a particular user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUserSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUserSubscription.json */ async function apiManagementGetUserSubscription() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userSubscriptionListSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userSubscriptionListSample.js index 305858ceb9fa..f5aa8feb4891 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userSubscriptionListSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userSubscriptionListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the collection of subscriptions of the specified user. * * @summary Lists the collection of subscriptions of the specified user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserSubscriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserSubscriptions.json */ async function apiManagementListUserSubscriptions() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userUpdateSample.js b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userUpdateSample.js index a165d7e9e9a8..3898ccc4d0c1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userUpdateSample.js +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/javascript/userUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the details of the user specified by its identifier. * * @summary Updates the details of the user specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateUser.json */ async function apiManagementUpdateUser() { const subscriptionId = process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/README.md b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/README.md index aa50c606d0fb..f7bb7416aaf9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/README.md +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/README.md @@ -4,350 +4,405 @@ These sample programs show how to use the TypeScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [apiCreateOrUpdateSample.ts][apicreateorupdatesample] | Creates new or updates existing specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApi.json | -| [apiDeleteSample.ts][apideletesample] | Deletes the specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApi.json | -| [apiDiagnosticCreateOrUpdateSample.ts][apidiagnosticcreateorupdatesample] | Creates a new Diagnostic for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiDiagnostic.json | -| [apiDiagnosticDeleteSample.ts][apidiagnosticdeletesample] | Deletes the specified Diagnostic from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiDiagnostic.json | -| [apiDiagnosticGetEntityTagSample.ts][apidiagnosticgetentitytagsample] | Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiDiagnostic.json | -| [apiDiagnosticGetSample.ts][apidiagnosticgetsample] | Gets the details of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiDiagnostic.json | -| [apiDiagnosticListByServiceSample.ts][apidiagnosticlistbyservicesample] | Lists all diagnostics of an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiDiagnostics.json | -| [apiDiagnosticUpdateSample.ts][apidiagnosticupdatesample] | Updates the details of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiDiagnostic.json | -| [apiExportGetSample.ts][apiexportgetsample] | 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. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json | -| [apiGetEntityTagSample.ts][apigetentitytagsample] | Gets the entity state (Etag) version of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApi.json | -| [apiGetSample.ts][apigetsample] | Gets the details of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiContract.json | -| [apiIssueAttachmentCreateOrUpdateSample.ts][apiissueattachmentcreateorupdatesample] | Creates a new Attachment for the Issue in an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueAttachment.json | -| [apiIssueAttachmentDeleteSample.ts][apiissueattachmentdeletesample] | Deletes the specified comment from an Issue. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueAttachment.json | -| [apiIssueAttachmentGetEntityTagSample.ts][apiissueattachmentgetentitytagsample] | Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueAttachment.json | -| [apiIssueAttachmentGetSample.ts][apiissueattachmentgetsample] | Gets the details of the issue Attachment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueAttachment.json | -| [apiIssueAttachmentListByServiceSample.ts][apiissueattachmentlistbyservicesample] | Lists all attachments for the Issue associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueAttachments.json | -| [apiIssueCommentCreateOrUpdateSample.ts][apiissuecommentcreateorupdatesample] | Creates a new Comment for the Issue in an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueComment.json | -| [apiIssueCommentDeleteSample.ts][apiissuecommentdeletesample] | Deletes the specified comment from an Issue. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueComment.json | -| [apiIssueCommentGetEntityTagSample.ts][apiissuecommentgetentitytagsample] | Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueComment.json | -| [apiIssueCommentGetSample.ts][apiissuecommentgetsample] | Gets the details of the issue Comment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueComment.json | -| [apiIssueCommentListByServiceSample.ts][apiissuecommentlistbyservicesample] | Lists all comments for the Issue associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueComments.json | -| [apiIssueCreateOrUpdateSample.ts][apiissuecreateorupdatesample] | Creates a new Issue for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssue.json | -| [apiIssueDeleteSample.ts][apiissuedeletesample] | Deletes the specified Issue from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssue.json | -| [apiIssueGetEntityTagSample.ts][apiissuegetentitytagsample] | Gets the entity state (Etag) version of the Issue for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssue.json | -| [apiIssueGetSample.ts][apiissuegetsample] | Gets the details of the Issue for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssue.json | -| [apiIssueListByServiceSample.ts][apiissuelistbyservicesample] | Lists all issues associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssues.json | -| [apiIssueUpdateSample.ts][apiissueupdatesample] | Updates an existing issue for an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiIssue.json | -| [apiListByServiceSample.ts][apilistbyservicesample] | Lists all APIs of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApis.json | -| [apiListByTagsSample.ts][apilistbytagssample] | Lists a collection of apis associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApisByTags.json | -| [apiManagementOperationsListSample.ts][apimanagementoperationslistsample] | Lists all of the available REST API operations of the Microsoft.ApiManagement provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOperations.json | -| [apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts][apimanagementserviceapplynetworkconfigurationupdatessample] | Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json | -| [apiManagementServiceBackupSample.ts][apimanagementservicebackupsample] | Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithAccessKey.json | -| [apiManagementServiceCheckNameAvailabilitySample.ts][apimanagementservicechecknameavailabilitysample] | Checks availability and correctness of a name for an API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceCheckNameAvailability.json | -| [apiManagementServiceCreateOrUpdateSample.ts][apimanagementservicecreateorupdatesample] | Creates or updates an API Management service. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json | -| [apiManagementServiceDeleteSample.ts][apimanagementservicedeletesample] | Deletes an existing API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceDeleteService.json | -| [apiManagementServiceGetDomainOwnershipIdentifierSample.ts][apimanagementservicegetdomainownershipidentifiersample] | Get the custom domain ownership identifier for an API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json | -| [apiManagementServiceGetSample.ts][apimanagementservicegetsample] | Gets an API Management service resource description. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json | -| [apiManagementServiceGetSsoTokenSample.ts][apimanagementservicegetssotokensample] | Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetSsoToken.json | -| [apiManagementServiceListByResourceGroupSample.ts][apimanagementservicelistbyresourcegroupsample] | List all API Management services within a resource group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json | -| [apiManagementServiceListSample.ts][apimanagementservicelistsample] | Lists all API Management services within an Azure subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscription.json | -| [apiManagementServiceRestoreSample.ts][apimanagementservicerestoresample] | Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRestoreWithAccessKey.json | -| [apiManagementServiceSkusListAvailableServiceSkusSample.ts][apimanagementserviceskuslistavailableserviceskussample] | Gets all available SKU for a given API Management service x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSKUs-Consumption.json | -| [apiManagementServiceUpdateSample.ts][apimanagementserviceupdatesample] | Updates an existing API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServiceDisableTls10.json | -| [apiManagementSkusListSample.ts][apimanagementskuslistsample] | Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSku.json | -| [apiOperationCreateOrUpdateSample.ts][apioperationcreateorupdatesample] | Creates a new operation in the API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperation.json | -| [apiOperationDeleteSample.ts][apioperationdeletesample] | Deletes the specified operation in the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperation.json | -| [apiOperationGetEntityTagSample.ts][apioperationgetentitytagsample] | Gets the entity state (Etag) version of the API operation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperation.json | -| [apiOperationGetSample.ts][apioperationgetsample] | Gets the details of the API Operation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperation.json | -| [apiOperationListByApiSample.ts][apioperationlistbyapisample] | Lists a collection of the operations for the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperations.json | -| [apiOperationPolicyCreateOrUpdateSample.ts][apioperationpolicycreateorupdatesample] | Creates or updates policy configuration for the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationPolicy.json | -| [apiOperationPolicyDeleteSample.ts][apioperationpolicydeletesample] | Deletes the policy configuration at the Api Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationPolicy.json | -| [apiOperationPolicyGetEntityTagSample.ts][apioperationpolicygetentitytagsample] | Gets the entity state (Etag) version of the API operation policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationPolicy.json | -| [apiOperationPolicyGetSample.ts][apioperationpolicygetsample] | Get the policy configuration at the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationPolicy.json | -| [apiOperationPolicyListByOperationSample.ts][apioperationpolicylistbyoperationsample] | Get the list of policy configuration at the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationPolicies.json | -| [apiOperationUpdateSample.ts][apioperationupdatesample] | Updates the details of the operation in the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiOperation.json | -| [apiPolicyCreateOrUpdateSample.ts][apipolicycreateorupdatesample] | Creates or updates policy configuration for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiPolicy.json | -| [apiPolicyDeleteSample.ts][apipolicydeletesample] | Deletes the policy configuration at the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiPolicy.json | -| [apiPolicyGetEntityTagSample.ts][apipolicygetentitytagsample] | Gets the entity state (Etag) version of the API policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiPolicy.json | -| [apiPolicyGetSample.ts][apipolicygetsample] | Get the policy configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiPolicy.json | -| [apiPolicyListByApiSample.ts][apipolicylistbyapisample] | Get the policy configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiPolicies.json | -| [apiProductListByApisSample.ts][apiproductlistbyapissample] | Lists all Products, which the API is part of. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiProducts.json | -| [apiReleaseCreateOrUpdateSample.ts][apireleasecreateorupdatesample] | Creates a new Release for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiRelease.json | -| [apiReleaseDeleteSample.ts][apireleasedeletesample] | Deletes the specified release in the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiRelease.json | -| [apiReleaseGetEntityTagSample.ts][apireleasegetentitytagsample] | Returns the etag of an API release. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiRelease.json | -| [apiReleaseGetSample.ts][apireleasegetsample] | Returns the details of an API release. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiRelease.json | -| [apiReleaseListByServiceSample.ts][apireleaselistbyservicesample] | 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. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiReleases.json | -| [apiReleaseUpdateSample.ts][apireleaseupdatesample] | Updates the details of the release of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiRelease.json | -| [apiRevisionListByServiceSample.ts][apirevisionlistbyservicesample] | Lists all revisions of an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiRevisions.json | -| [apiSchemaCreateOrUpdateSample.ts][apischemacreateorupdatesample] | Creates or updates schema configuration for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiSchema.json | -| [apiSchemaDeleteSample.ts][apischemadeletesample] | Deletes the schema configuration at the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiSchema.json | -| [apiSchemaGetEntityTagSample.ts][apischemagetentitytagsample] | Gets the entity state (Etag) version of the schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiSchema.json | -| [apiSchemaGetSample.ts][apischemagetsample] | Get the schema configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiSchema.json | -| [apiSchemaListByApiSample.ts][apischemalistbyapisample] | Get the schema configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiSchemas.json | -| [apiTagDescriptionCreateOrUpdateSample.ts][apitagdescriptioncreateorupdatesample] | Create/Update tag description in scope of the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTagDescription.json | -| [apiTagDescriptionDeleteSample.ts][apitagdescriptiondeletesample] | Delete tag description for the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTagDescription.json | -| [apiTagDescriptionGetEntityTagSample.ts][apitagdescriptiongetentitytagsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTagDescription.json | -| [apiTagDescriptionGetSample.ts][apitagdescriptiongetsample] | Get Tag description in scope of API x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTagDescription.json | -| [apiTagDescriptionListByServiceSample.ts][apitagdescriptionlistbyservicesample] | Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTagDescriptions.json | -| [apiUpdateSample.ts][apiupdatesample] | Updates the specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApi.json | -| [apiVersionSetCreateOrUpdateSample.ts][apiversionsetcreateorupdatesample] | Creates or Updates a Api Version Set. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiVersionSet.json | -| [apiVersionSetDeleteSample.ts][apiversionsetdeletesample] | Deletes specific Api Version Set. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiVersionSet.json | -| [apiVersionSetGetEntityTagSample.ts][apiversionsetgetentitytagsample] | Gets the entity state (Etag) version of the Api Version Set specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiVersionSet.json | -| [apiVersionSetGetSample.ts][apiversionsetgetsample] | Gets the details of the Api Version Set specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiVersionSet.json | -| [apiVersionSetListByServiceSample.ts][apiversionsetlistbyservicesample] | Lists a collection of API Version Sets in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiVersionSets.json | -| [apiVersionSetUpdateSample.ts][apiversionsetupdatesample] | Updates the details of the Api VersionSet specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiVersionSet.json | -| [authorizationServerCreateOrUpdateSample.ts][authorizationservercreateorupdatesample] | Creates new authorization server or updates an existing authorization server. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAuthorizationServer.json | -| [authorizationServerDeleteSample.ts][authorizationserverdeletesample] | Deletes specific authorization server instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteAuthorizationServer.json | -| [authorizationServerGetEntityTagSample.ts][authorizationservergetentitytagsample] | Gets the entity state (Etag) version of the authorizationServer specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadAuthorizationServer.json | -| [authorizationServerGetSample.ts][authorizationservergetsample] | Gets the details of the authorization server specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetAuthorizationServer.json | -| [authorizationServerListByServiceSample.ts][authorizationserverlistbyservicesample] | Lists a collection of authorization servers defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListAuthorizationServers.json | -| [authorizationServerListSecretsSample.ts][authorizationserverlistsecretssample] | Gets the client secret details of the authorization server. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementAuthorizationServerListSecrets.json | -| [authorizationServerUpdateSample.ts][authorizationserverupdatesample] | Updates the details of the authorization server specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateAuthorizationServer.json | -| [backendCreateOrUpdateSample.ts][backendcreateorupdatesample] | Creates or Updates a backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateBackendProxyBackend.json | -| [backendDeleteSample.ts][backenddeletesample] | Deletes the specified backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteBackend.json | -| [backendGetEntityTagSample.ts][backendgetentitytagsample] | Gets the entity state (Etag) version of the backend specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadBackend.json | -| [backendGetSample.ts][backendgetsample] | Gets the details of the backend specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetBackend.json | -| [backendListByServiceSample.ts][backendlistbyservicesample] | Lists a collection of backends in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListBackends.json | -| [backendReconnectSample.ts][backendreconnectsample] | Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackendReconnect.json | -| [backendUpdateSample.ts][backendupdatesample] | Updates an existing backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateBackend.json | -| [cacheCreateOrUpdateSample.ts][cachecreateorupdatesample] | Creates or updates an External Cache to be used in Api Management instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCache.json | -| [cacheDeleteSample.ts][cachedeletesample] | Deletes specific Cache. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCache.json | -| [cacheGetEntityTagSample.ts][cachegetentitytagsample] | Gets the entity state (Etag) version of the Cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCache.json | -| [cacheGetSample.ts][cachegetsample] | Gets the details of the Cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCache.json | -| [cacheListByServiceSample.ts][cachelistbyservicesample] | Lists a collection of all external Caches in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCaches.json | -| [cacheUpdateSample.ts][cacheupdatesample] | Updates the details of the cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateCache.json | -| [certificateCreateOrUpdateSample.ts][certificatecreateorupdatesample] | Creates or updates the certificate being used for authentication with the backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCertificate.json | -| [certificateDeleteSample.ts][certificatedeletesample] | Deletes specific certificate. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCertificate.json | -| [certificateGetEntityTagSample.ts][certificategetentitytagsample] | Gets the entity state (Etag) version of the certificate specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCertificate.json | -| [certificateGetSample.ts][certificategetsample] | Gets the details of the certificate specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCertificate.json | -| [certificateListByServiceSample.ts][certificatelistbyservicesample] | Lists a collection of all certificates in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCertificates.json | -| [certificateRefreshSecretSample.ts][certificaterefreshsecretsample] | From KeyVault, Refresh the certificate being used for authentication with the backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshCertificate.json | -| [contentItemCreateOrUpdateSample.ts][contentitemcreateorupdatesample] | Creates a new developer portal's content item specified by the provided content type. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentTypeContentItem.json | -| [contentItemDeleteSample.ts][contentitemdeletesample] | Removes the specified developer portal's content item. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentTypeContentItem.json | -| [contentItemGetEntityTagSample.ts][contentitemgetentitytagsample] | Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadContentTypeContentItem.json | -| [contentItemGetSample.ts][contentitemgetsample] | Returns the developer portal's content item specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentTypeContentItem.json | -| [contentItemListByServiceSample.ts][contentitemlistbyservicesample] | Lists developer portal's content items specified by the provided content type. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypeContentItems.json | -| [contentTypeCreateOrUpdateSample.ts][contenttypecreateorupdatesample] | Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentType.json | -| [contentTypeDeleteSample.ts][contenttypedeletesample] | Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentType.json | -| [contentTypeGetSample.ts][contenttypegetsample] | Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentType.json | -| [contentTypeListByServiceSample.ts][contenttypelistbyservicesample] | Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypes.json | -| [delegationSettingsCreateOrUpdateSample.ts][delegationsettingscreateorupdatesample] | Create or Update Delegation settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutDelegation.json | -| [delegationSettingsGetEntityTagSample.ts][delegationsettingsgetentitytagsample] | Gets the entity state (Etag) version of the DelegationSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDelegationSettings.json | -| [delegationSettingsGetSample.ts][delegationsettingsgetsample] | Get Delegation Settings for the Portal. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetDelegation.json | -| [delegationSettingsListSecretsSample.ts][delegationsettingslistsecretssample] | Gets the secret validation key of the DelegationSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json | -| [delegationSettingsUpdateSample.ts][delegationsettingsupdatesample] | Update Delegation settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json | -| [deletedServicesGetByNameSample.ts][deletedservicesgetbynamesample] | Get soft-deleted Api Management Service by name. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDeletedServiceByName.json | -| [deletedServicesListBySubscriptionSample.ts][deletedserviceslistbysubscriptionsample] | Lists all soft-deleted services available for undelete for the given subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesListBySubscription.json | -| [deletedServicesPurgeSample.ts][deletedservicespurgesample] | Purges Api Management Service (deletes it with no option to undelete). x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesPurge.json | -| [diagnosticCreateOrUpdateSample.ts][diagnosticcreateorupdatesample] | Creates a new Diagnostic or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateDiagnostic.json | -| [diagnosticDeleteSample.ts][diagnosticdeletesample] | Deletes the specified Diagnostic. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteDiagnostic.json | -| [diagnosticGetEntityTagSample.ts][diagnosticgetentitytagsample] | Gets the entity state (Etag) version of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDiagnostic.json | -| [diagnosticGetSample.ts][diagnosticgetsample] | Gets the details of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDiagnostic.json | -| [diagnosticListByServiceSample.ts][diagnosticlistbyservicesample] | Lists all diagnostics of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListDiagnostics.json | -| [diagnosticUpdateSample.ts][diagnosticupdatesample] | Updates the details of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateDiagnostic.json | -| [emailTemplateCreateOrUpdateSample.ts][emailtemplatecreateorupdatesample] | Updates an Email Template. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTemplate.json | -| [emailTemplateDeleteSample.ts][emailtemplatedeletesample] | Reset the Email Template to default template provided by the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTemplate.json | -| [emailTemplateGetEntityTagSample.ts][emailtemplategetentitytagsample] | Gets the entity state (Etag) version of the email template specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadEmailTemplate.json | -| [emailTemplateGetSample.ts][emailtemplategetsample] | Gets the details of the email template specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTemplate.json | -| [emailTemplateListByServiceSample.ts][emailtemplatelistbyservicesample] | Gets all email templates x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTemplates.json | -| [emailTemplateUpdateSample.ts][emailtemplateupdatesample] | Updates API Management email template x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTemplate.json | -| [gatewayApiCreateOrUpdateSample.ts][gatewayapicreateorupdatesample] | Adds an API to the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayApi.json | -| [gatewayApiDeleteSample.ts][gatewayapideletesample] | Deletes the specified API from the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayApi.json | -| [gatewayApiGetEntityTagSample.ts][gatewayapigetentitytagsample] | Checks that API entity specified by identifier is associated with the Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayApi.json | -| [gatewayApiListByServiceSample.ts][gatewayapilistbyservicesample] | Lists a collection of the APIs associated with a gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayApis.json | -| [gatewayCertificateAuthorityCreateOrUpdateSample.ts][gatewaycertificateauthoritycreateorupdatesample] | Assign Certificate entity to Gateway entity as Certificate Authority. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json | -| [gatewayCertificateAuthorityDeleteSample.ts][gatewaycertificateauthoritydeletesample] | Remove relationship between Certificate Authority and Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json | -| [gatewayCertificateAuthorityGetEntityTagSample.ts][gatewaycertificateauthoritygetentitytagsample] | Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json | -| [gatewayCertificateAuthorityGetSample.ts][gatewaycertificateauthoritygetsample] | Get assigned Gateway Certificate Authority details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json | -| [gatewayCertificateAuthorityListByServiceSample.ts][gatewaycertificateauthoritylistbyservicesample] | Lists the collection of Certificate Authorities for the specified Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json | -| [gatewayCreateOrUpdateSample.ts][gatewaycreateorupdatesample] | Creates or updates a Gateway to be used in Api Management instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGateway.json | -| [gatewayDeleteSample.ts][gatewaydeletesample] | Deletes specific Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGateway.json | -| [gatewayGenerateTokenSample.ts][gatewaygeneratetokensample] | Gets the Shared Access Authorization Token for the gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayGenerateToken.json | -| [gatewayGetEntityTagSample.ts][gatewaygetentitytagsample] | Gets the entity state (Etag) version of the Gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGateway.json | -| [gatewayGetSample.ts][gatewaygetsample] | Gets the details of the Gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGateway.json | -| [gatewayHostnameConfigurationCreateOrUpdateSample.ts][gatewayhostnameconfigurationcreateorupdatesample] | Creates of updates hostname configuration for a Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json | -| [gatewayHostnameConfigurationDeleteSample.ts][gatewayhostnameconfigurationdeletesample] | Deletes the specified hostname configuration from the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json | -| [gatewayHostnameConfigurationGetEntityTagSample.ts][gatewayhostnameconfigurationgetentitytagsample] | Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json | -| [gatewayHostnameConfigurationGetSample.ts][gatewayhostnameconfigurationgetsample] | Get details of a hostname configuration x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json | -| [gatewayHostnameConfigurationListByServiceSample.ts][gatewayhostnameconfigurationlistbyservicesample] | Lists the collection of hostname configurations for the specified gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json | -| [gatewayListByServiceSample.ts][gatewaylistbyservicesample] | Lists a collection of gateways registered with service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGateways.json | -| [gatewayListKeysSample.ts][gatewaylistkeyssample] | Retrieves gateway keys. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayListKeys.json | -| [gatewayRegenerateKeySample.ts][gatewayregeneratekeysample] | Regenerates specified gateway key invalidating any tokens created with it. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayRegenerateKey.json | -| [gatewayUpdateSample.ts][gatewayupdatesample] | Updates the details of the gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGateway.json | -| [globalSchemaCreateOrUpdateSample.ts][globalschemacreateorupdatesample] | Creates new or updates existing specified Schema of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGlobalSchema1.json | -| [globalSchemaDeleteSample.ts][globalschemadeletesample] | Deletes specific Schema. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGlobalSchema.json | -| [globalSchemaGetEntityTagSample.ts][globalschemagetentitytagsample] | Gets the entity state (Etag) version of the Schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGlobalSchema.json | -| [globalSchemaGetSample.ts][globalschemagetsample] | Gets the details of the Schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGlobalSchema1.json | -| [globalSchemaListByServiceSample.ts][globalschemalistbyservicesample] | Lists a collection of schemas registered with service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGlobalSchemas.json | -| [groupCreateOrUpdateSample.ts][groupcreateorupdatesample] | Creates or Updates a group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroup.json | -| [groupDeleteSample.ts][groupdeletesample] | Deletes specific group of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroup.json | -| [groupGetEntityTagSample.ts][groupgetentitytagsample] | Gets the entity state (Etag) version of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroup.json | -| [groupGetSample.ts][groupgetsample] | Gets the details of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGroup.json | -| [groupListByServiceSample.ts][grouplistbyservicesample] | Lists a collection of groups defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroups.json | -| [groupUpdateSample.ts][groupupdatesample] | Updates the details of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGroup.json | -| [groupUserCheckEntityExistsSample.ts][groupusercheckentityexistssample] | Checks that user entity specified by identifier is associated with the group entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroupUser.json | -| [groupUserCreateSample.ts][groupusercreatesample] | Add existing user to existing group x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroupUser.json | -| [groupUserDeleteSample.ts][groupuserdeletesample] | Remove existing user from existing group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroupUser.json | -| [groupUserListSample.ts][groupuserlistsample] | Lists a collection of user entities associated with the group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroupUsers.json | -| [identityProviderCreateOrUpdateSample.ts][identityprovidercreateorupdatesample] | Creates or Updates the IdentityProvider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateIdentityProvider.json | -| [identityProviderDeleteSample.ts][identityproviderdeletesample] | Deletes the specified identity provider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteIdentityProvider.json | -| [identityProviderGetEntityTagSample.ts][identityprovidergetentitytagsample] | Gets the entity state (Etag) version of the identityProvider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadIdentityProvider.json | -| [identityProviderGetSample.ts][identityprovidergetsample] | Gets the configuration details of the identity Provider configured in specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIdentityProvider.json | -| [identityProviderListByServiceSample.ts][identityproviderlistbyservicesample] | Lists a collection of Identity Provider configured in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIdentityProviders.json | -| [identityProviderListSecretsSample.ts][identityproviderlistsecretssample] | Gets the client secret details of the Identity Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementIdentityProviderListSecrets.json | -| [identityProviderUpdateSample.ts][identityproviderupdatesample] | Updates an existing IdentityProvider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateIdentityProvider.json | -| [issueGetSample.ts][issuegetsample] | Gets API Management issue details x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIssue.json | -| [issueListByServiceSample.ts][issuelistbyservicesample] | Lists a collection of issues in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIssues.json | -| [loggerCreateOrUpdateSample.ts][loggercreateorupdatesample] | Creates or Updates a logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAILogger.json | -| [loggerDeleteSample.ts][loggerdeletesample] | Deletes the specified logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteLogger.json | -| [loggerGetEntityTagSample.ts][loggergetentitytagsample] | Gets the entity state (Etag) version of the logger specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadLogger.json | -| [loggerGetSample.ts][loggergetsample] | Gets the details of the logger specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetLogger.json | -| [loggerListByServiceSample.ts][loggerlistbyservicesample] | Lists a collection of loggers in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListLoggers.json | -| [loggerUpdateSample.ts][loggerupdatesample] | Updates an existing logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateLogger.json | -| [namedValueCreateOrUpdateSample.ts][namedvaluecreateorupdatesample] | Creates or updates named value. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNamedValue.json | -| [namedValueDeleteSample.ts][namedvaluedeletesample] | Deletes specific named value from the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNamedValue.json | -| [namedValueGetEntityTagSample.ts][namedvaluegetentitytagsample] | Gets the entity state (Etag) version of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNamedValue.json | -| [namedValueGetSample.ts][namedvaluegetsample] | Gets the details of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNamedValue.json | -| [namedValueListByServiceSample.ts][namedvaluelistbyservicesample] | Lists a collection of named values defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNamedValues.json | -| [namedValueListValueSample.ts][namedvaluelistvaluesample] | Gets the secret of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementNamedValueListValue.json | -| [namedValueRefreshSecretSample.ts][namedvaluerefreshsecretsample] | Refresh the secret of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshNamedValue.json | -| [namedValueUpdateSample.ts][namedvalueupdatesample] | Updates the specific named value. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateNamedValue.json | -| [networkStatusListByLocationSample.ts][networkstatuslistbylocationsample] | Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json | -| [networkStatusListByServiceSample.ts][networkstatuslistbyservicesample] | Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatus.json | -| [notificationCreateOrUpdateSample.ts][notificationcreateorupdatesample] | Create or Update API Management publisher notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotification.json | -| [notificationGetSample.ts][notificationgetsample] | Gets the details of the Notification specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNotification.json | -| [notificationListByServiceSample.ts][notificationlistbyservicesample] | Lists a collection of properties defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotifications.json | -| [notificationRecipientEmailCheckEntityExistsSample.ts][notificationrecipientemailcheckentityexistssample] | Determine if Notification Recipient Email subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json | -| [notificationRecipientEmailCreateOrUpdateSample.ts][notificationrecipientemailcreateorupdatesample] | Adds the Email address to the list of Recipients for the Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json | -| [notificationRecipientEmailDeleteSample.ts][notificationrecipientemaildeletesample] | Removes the email from the list of Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json | -| [notificationRecipientEmailListByNotificationSample.ts][notificationrecipientemaillistbynotificationsample] | Gets the list of the Notification Recipient Emails subscribed to a notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientEmails.json | -| [notificationRecipientUserCheckEntityExistsSample.ts][notificationrecipientusercheckentityexistssample] | Determine if the Notification Recipient User is subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientUser.json | -| [notificationRecipientUserCreateOrUpdateSample.ts][notificationrecipientusercreateorupdatesample] | Adds the API Management User to the list of Recipients for the Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientUser.json | -| [notificationRecipientUserDeleteSample.ts][notificationrecipientuserdeletesample] | Removes the API Management user from the list of Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json | -| [notificationRecipientUserListByNotificationSample.ts][notificationrecipientuserlistbynotificationsample] | Gets the list of the Notification Recipient User subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientUsers.json | -| [openIdConnectProviderCreateOrUpdateSample.ts][openidconnectprovidercreateorupdatesample] | Creates or updates the OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json | -| [openIdConnectProviderDeleteSample.ts][openidconnectproviderdeletesample] | Deletes specific OpenID Connect Provider of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json | -| [openIdConnectProviderGetEntityTagSample.ts][openidconnectprovidergetentitytagsample] | Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json | -| [openIdConnectProviderGetSample.ts][openidconnectprovidergetsample] | Gets specific OpenID Connect Provider without secrets. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetOpenIdConnectProvider.json | -| [openIdConnectProviderListByServiceSample.ts][openidconnectproviderlistbyservicesample] | Lists of all the OpenId Connect Providers. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOpenIdConnectProviders.json | -| [openIdConnectProviderListSecretsSample.ts][openidconnectproviderlistsecretssample] | Gets the client secret details of the OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json | -| [openIdConnectProviderUpdateSample.ts][openidconnectproviderupdatesample] | Updates the specific OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json | -| [operationListByTagsSample.ts][operationlistbytagssample] | Lists a collection of operations associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationsByTags.json | -| [outboundNetworkDependenciesEndpointsListByServiceSample.ts][outboundnetworkdependenciesendpointslistbyservicesample] | Gets the network endpoints of all outbound dependencies of a ApiManagement service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json | -| [performConnectivityCheckAsyncSample.ts][performconnectivitycheckasyncsample] | Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json | -| [policyCreateOrUpdateSample.ts][policycreateorupdatesample] | Creates or updates the global policy configuration of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePolicy.json | -| [policyDeleteSample.ts][policydeletesample] | Deletes the global policy configuration of the Api Management Service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePolicy.json | -| [policyDescriptionListByServiceSample.ts][policydescriptionlistbyservicesample] | Lists all policy descriptions. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicyDescriptions.json | -| [policyGetEntityTagSample.ts][policygetentitytagsample] | Gets the entity state (Etag) version of the Global policy definition in the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPolicy.json | -| [policyGetSample.ts][policygetsample] | Get the Global policy definition of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPolicy.json | -| [policyListByServiceSample.ts][policylistbyservicesample] | Lists all the Global Policy definitions of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicies.json | -| [portalRevisionCreateOrUpdateSample.ts][portalrevisioncreateorupdatesample] | Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePortalRevision.json | -| [portalRevisionGetEntityTagSample.ts][portalrevisiongetentitytagsample] | Gets the developer portal revision specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPortalRevision.json | -| [portalRevisionGetSample.ts][portalrevisiongetsample] | Gets the developer portal's revision specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPortalRevision.json | -| [portalRevisionListByServiceSample.ts][portalrevisionlistbyservicesample] | Lists developer portal's revisions. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalRevisions.json | -| [portalRevisionUpdateSample.ts][portalrevisionupdatesample] | Updates the description of specified portal revision or makes it current. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdatePortalRevision.json | -| [portalSettingsListByServiceSample.ts][portalsettingslistbyservicesample] | Lists a collection of portalsettings defined within a service instance.. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalSettings.json | -| [privateEndpointConnectionCreateOrUpdateSample.ts][privateendpointconnectioncreateorupdatesample] | Creates a new Private Endpoint Connection or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json | -| [privateEndpointConnectionDeleteSample.ts][privateendpointconnectiondeletesample] | Deletes the specified Private Endpoint Connection. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json | -| [privateEndpointConnectionGetByNameSample.ts][privateendpointconnectiongetbynamesample] | Gets the details of the Private Endpoint Connection specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateEndpointConnection.json | -| [privateEndpointConnectionGetPrivateLinkResourceSample.ts][privateendpointconnectiongetprivatelinkresourcesample] | Gets the private link resources x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json | -| [privateEndpointConnectionListByServiceSample.ts][privateendpointconnectionlistbyservicesample] | Lists all private endpoint connections of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateEndpointConnections.json | -| [privateEndpointConnectionListPrivateLinkResourcesSample.ts][privateendpointconnectionlistprivatelinkresourcessample] | Gets the private link resources x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateLinkGroupResources.json | -| [productApiCheckEntityExistsSample.ts][productapicheckentityexistssample] | Checks that API entity specified by identifier is associated with the Product entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductApi.json | -| [productApiCreateOrUpdateSample.ts][productapicreateorupdatesample] | Adds an API to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductApi.json | -| [productApiDeleteSample.ts][productapideletesample] | Deletes the specified API from the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductApi.json | -| [productApiListByProductSample.ts][productapilistbyproductsample] | Lists a collection of the APIs associated with a product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductApis.json | -| [productCreateOrUpdateSample.ts][productcreateorupdatesample] | Creates or Updates a product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProduct.json | -| [productDeleteSample.ts][productdeletesample] | Delete product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProduct.json | -| [productGetEntityTagSample.ts][productgetentitytagsample] | Gets the entity state (Etag) version of the product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProduct.json | -| [productGetSample.ts][productgetsample] | Gets the details of the product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProduct.json | -| [productGroupCheckEntityExistsSample.ts][productgroupcheckentityexistssample] | Checks that Group entity specified by identifier is associated with the Product entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductGroup.json | -| [productGroupCreateOrUpdateSample.ts][productgroupcreateorupdatesample] | Adds the association between the specified developer group with the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductGroup.json | -| [productGroupDeleteSample.ts][productgroupdeletesample] | Deletes the association between the specified group and product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductGroup.json | -| [productGroupListByProductSample.ts][productgrouplistbyproductsample] | Lists the collection of developer groups associated with the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductGroups.json | -| [productListByServiceSample.ts][productlistbyservicesample] | Lists a collection of products in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProducts.json | -| [productListByTagsSample.ts][productlistbytagssample] | Lists a collection of products associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductsByTags.json | -| [productPolicyCreateOrUpdateSample.ts][productpolicycreateorupdatesample] | Creates or updates policy configuration for the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductPolicy.json | -| [productPolicyDeleteSample.ts][productpolicydeletesample] | Deletes the policy configuration at the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductPolicy.json | -| [productPolicyGetEntityTagSample.ts][productpolicygetentitytagsample] | Get the ETag of the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductPolicy.json | -| [productPolicyGetSample.ts][productpolicygetsample] | Get the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductPolicy.json | -| [productPolicyListByProductSample.ts][productpolicylistbyproductsample] | Get the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductPolicies.json | -| [productSubscriptionsListSample.ts][productsubscriptionslistsample] | Lists the collection of subscriptions to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductSubscriptions.json | -| [productUpdateSample.ts][productupdatesample] | Update existing product details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateProduct.json | -| [quotaByCounterKeysListByServiceSample.ts][quotabycounterkeyslistbyservicesample] | Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeys.json | -| [quotaByCounterKeysUpdateSample.ts][quotabycounterkeysupdatesample] | Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKey.json | -| [quotaByPeriodKeysGetSample.ts][quotabyperiodkeysgetsample] | Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json | -| [quotaByPeriodKeysUpdateSample.ts][quotabyperiodkeysupdatesample] | Updates an existing quota counter value in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json | -| [regionListByServiceSample.ts][regionlistbyservicesample] | Lists all azure regions in which the service exists. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListRegions.json | -| [reportsListByApiSample.ts][reportslistbyapisample] | Lists report records by API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByApi.json | -| [reportsListByGeoSample.ts][reportslistbygeosample] | Lists report records by geography. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByGeo.json | -| [reportsListByOperationSample.ts][reportslistbyoperationsample] | Lists report records by API Operations. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByOperation.json | -| [reportsListByProductSample.ts][reportslistbyproductsample] | Lists report records by Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByProduct.json | -| [reportsListByRequestSample.ts][reportslistbyrequestsample] | Lists report records by Request. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByRequest.json | -| [reportsListBySubscriptionSample.ts][reportslistbysubscriptionsample] | Lists report records by subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsBySubscription.json | -| [reportsListByTimeSample.ts][reportslistbytimesample] | Lists report records by Time. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByTime.json | -| [reportsListByUserSample.ts][reportslistbyusersample] | Lists report records by User. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByUser.json | -| [signInSettingsCreateOrUpdateSample.ts][signinsettingscreateorupdatesample] | Create or Update Sign-In settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignIn.json | -| [signInSettingsGetEntityTagSample.ts][signinsettingsgetentitytagsample] | Gets the entity state (Etag) version of the SignInSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignInSettings.json | -| [signInSettingsGetSample.ts][signinsettingsgetsample] | Get Sign In Settings for the Portal x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignIn.json | -| [signInSettingsUpdateSample.ts][signinsettingsupdatesample] | Update Sign-In settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json | -| [signUpSettingsCreateOrUpdateSample.ts][signupsettingscreateorupdatesample] | Create or Update Sign-Up settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignUp.json | -| [signUpSettingsGetEntityTagSample.ts][signupsettingsgetentitytagsample] | Gets the entity state (Etag) version of the SignUpSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignUpSettings.json | -| [signUpSettingsGetSample.ts][signupsettingsgetsample] | Get Sign Up Settings for the Portal x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignUp.json | -| [signUpSettingsUpdateSample.ts][signupsettingsupdatesample] | Update Sign-Up settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json | -| [subscriptionCreateOrUpdateSample.ts][subscriptioncreateorupdatesample] | Creates or updates the subscription of specified user to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSubscription.json | -| [subscriptionDeleteSample.ts][subscriptiondeletesample] | Deletes the specified subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteSubscription.json | -| [subscriptionGetEntityTagSample.ts][subscriptiongetentitytagsample] | Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSubscription.json | -| [subscriptionGetSample.ts][subscriptiongetsample] | Gets the specified Subscription entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetSubscription.json | -| [subscriptionListSample.ts][subscriptionlistsample] | Lists all subscriptions of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSubscriptions.json | -| [subscriptionListSecretsSample.ts][subscriptionlistsecretssample] | Gets the specified Subscription keys. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionListSecrets.json | -| [subscriptionRegeneratePrimaryKeySample.ts][subscriptionregenerateprimarykeysample] | Regenerates primary key of existing subscription of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json | -| [subscriptionRegenerateSecondaryKeySample.ts][subscriptionregeneratesecondarykeysample] | Regenerates secondary key of existing subscription of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json | -| [subscriptionUpdateSample.ts][subscriptionupdatesample] | Updates the details of a subscription specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateSubscription.json | -| [tagAssignToApiSample.ts][tagassigntoapisample] | Assign tag to the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTag.json | -| [tagAssignToOperationSample.ts][tagassigntooperationsample] | Assign tag to the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationTag.json | -| [tagAssignToProductSample.ts][tagassigntoproductsample] | Assign tag to the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductTag.json | -| [tagCreateOrUpdateSample.ts][tagcreateorupdatesample] | Creates a tag. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTag.json | -| [tagDeleteSample.ts][tagdeletesample] | Deletes specific tag of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTag.json | -| [tagDetachFromApiSample.ts][tagdetachfromapisample] | Detach the tag from the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTag.json | -| [tagDetachFromOperationSample.ts][tagdetachfromoperationsample] | Detach the tag from the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationTag.json | -| [tagDetachFromProductSample.ts][tagdetachfromproductsample] | Detach the tag from the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductTag.json | -| [tagGetByApiSample.ts][taggetbyapisample] | Get tag associated with the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTag.json | -| [tagGetByOperationSample.ts][taggetbyoperationsample] | Get tag associated with the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationTag.json | -| [tagGetByProductSample.ts][taggetbyproductsample] | Get tag associated with the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductTag.json | -| [tagGetEntityStateByApiSample.ts][taggetentitystatebyapisample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTag.json | -| [tagGetEntityStateByOperationSample.ts][taggetentitystatebyoperationsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationTag.json | -| [tagGetEntityStateByProductSample.ts][taggetentitystatebyproductsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductTag.json | -| [tagGetEntityStateSample.ts][taggetentitystatesample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTag.json | -| [tagGetSample.ts][taggetsample] | Gets the details of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTag.json | -| [tagListByApiSample.ts][taglistbyapisample] | Lists all Tags associated with the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTags.json | -| [tagListByOperationSample.ts][taglistbyoperationsample] | Lists all Tags associated with the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationTags.json | -| [tagListByProductSample.ts][taglistbyproductsample] | Lists all Tags associated with the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductTags.json | -| [tagListByServiceSample.ts][taglistbyservicesample] | Lists a collection of tags defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTags.json | -| [tagResourceListByServiceSample.ts][tagresourcelistbyservicesample] | Lists a collection of resources associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTagResources.json | -| [tagUpdateSample.ts][tagupdatesample] | Updates the details of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTag.json | -| [tenantAccessCreateSample.ts][tenantaccesscreatesample] | Update tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTenantAccess.json | -| [tenantAccessGetEntityTagSample.ts][tenantaccessgetentitytagsample] | Tenant access metadata x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTenantAccess.json | -| [tenantAccessGetSample.ts][tenantaccessgetsample] | Get tenant access information details without secrets. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantAccess.json | -| [tenantAccessGitRegeneratePrimaryKeySample.ts][tenantaccessgitregenerateprimarykeysample] | Regenerate primary access key for GIT. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | -| [tenantAccessGitRegenerateSecondaryKeySample.ts][tenantaccessgitregeneratesecondarykeysample] | Regenerate secondary access key for GIT. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | -| [tenantAccessListByServiceSample.ts][tenantaccesslistbyservicesample] | Returns list of access infos - for Git and Management endpoints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantAccess.json | -| [tenantAccessListSecretsSample.ts][tenantaccesslistsecretssample] | Get tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsTenantAccess.json | -| [tenantAccessRegeneratePrimaryKeySample.ts][tenantaccessregenerateprimarykeysample] | Regenerate primary access key x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | -| [tenantAccessRegenerateSecondaryKeySample.ts][tenantaccessregeneratesecondarykeysample] | Regenerate secondary access key x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | -| [tenantAccessUpdateSample.ts][tenantaccessupdatesample] | Update tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTenantAccess.json | -| [tenantConfigurationDeploySample.ts][tenantconfigurationdeploysample] | This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationDeploy.json | -| [tenantConfigurationGetSyncStateSample.ts][tenantconfigurationgetsyncstatesample] | Gets the status of the most recent synchronization between the configuration database and the Git repository. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessSyncState.json | -| [tenantConfigurationSaveSample.ts][tenantconfigurationsavesample] | This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationSave.json | -| [tenantConfigurationValidateSample.ts][tenantconfigurationvalidatesample] | This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationValidate.json | -| [tenantSettingsGetSample.ts][tenantsettingsgetsample] | Get tenant settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantSettings.json | -| [tenantSettingsListByServiceSample.ts][tenantsettingslistbyservicesample] | Public settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantSettings.json | -| [userConfirmationPasswordSendSample.ts][userconfirmationpasswordsendsample] | Sends confirmation x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserConfirmationPasswordSend.json | -| [userCreateOrUpdateSample.ts][usercreateorupdatesample] | Creates or Updates a user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateUser.json | -| [userDeleteSample.ts][userdeletesample] | Deletes specific user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteUser.json | -| [userGenerateSsoUrlSample.ts][usergeneratessourlsample] | Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserGenerateSsoUrl.json | -| [userGetEntityTagSample.ts][usergetentitytagsample] | Gets the entity state (Etag) version of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadUser.json | -| [userGetSample.ts][usergetsample] | Gets the details of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUser.json | -| [userGetSharedAccessTokenSample.ts][usergetsharedaccesstokensample] | Gets the Shared Access Authorization Token for the User. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserToken.json | -| [userGroupListSample.ts][usergrouplistsample] | Lists all user groups. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserGroups.json | -| [userIdentitiesListSample.ts][useridentitieslistsample] | List of all user identities. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserIdentities.json | -| [userListByServiceSample.ts][userlistbyservicesample] | Lists a collection of registered users in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUsers.json | -| [userSubscriptionGetSample.ts][usersubscriptiongetsample] | Gets the specified Subscription entity associated with a particular user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUserSubscription.json | -| [userSubscriptionListSample.ts][usersubscriptionlistsample] | Lists the collection of subscriptions of the specified user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserSubscriptions.json | -| [userUpdateSample.ts][userupdatesample] | Updates the details of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateUser.json | +| [apiCreateOrUpdateSample.ts][apicreateorupdatesample] | Creates new or updates existing specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApi.json | +| [apiDeleteSample.ts][apideletesample] | Deletes the specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApi.json | +| [apiDiagnosticCreateOrUpdateSample.ts][apidiagnosticcreateorupdatesample] | Creates a new Diagnostic for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiDiagnostic.json | +| [apiDiagnosticDeleteSample.ts][apidiagnosticdeletesample] | Deletes the specified Diagnostic from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiDiagnostic.json | +| [apiDiagnosticGetEntityTagSample.ts][apidiagnosticgetentitytagsample] | Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiDiagnostic.json | +| [apiDiagnosticGetSample.ts][apidiagnosticgetsample] | Gets the details of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiDiagnostic.json | +| [apiDiagnosticListByServiceSample.ts][apidiagnosticlistbyservicesample] | Lists all diagnostics of an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiDiagnostics.json | +| [apiDiagnosticUpdateSample.ts][apidiagnosticupdatesample] | Updates the details of the Diagnostic for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiDiagnostic.json | +| [apiExportGetSample.ts][apiexportgetsample] | 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. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json | +| [apiGetEntityTagSample.ts][apigetentitytagsample] | Gets the entity state (Etag) version of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApi.json | +| [apiGetSample.ts][apigetsample] | Gets the details of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiContract.json | +| [apiIssueAttachmentCreateOrUpdateSample.ts][apiissueattachmentcreateorupdatesample] | Creates a new Attachment for the Issue in an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueAttachment.json | +| [apiIssueAttachmentDeleteSample.ts][apiissueattachmentdeletesample] | Deletes the specified comment from an Issue. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueAttachment.json | +| [apiIssueAttachmentGetEntityTagSample.ts][apiissueattachmentgetentitytagsample] | Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueAttachment.json | +| [apiIssueAttachmentGetSample.ts][apiissueattachmentgetsample] | Gets the details of the issue Attachment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueAttachment.json | +| [apiIssueAttachmentListByServiceSample.ts][apiissueattachmentlistbyservicesample] | Lists all attachments for the Issue associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueAttachments.json | +| [apiIssueCommentCreateOrUpdateSample.ts][apiissuecommentcreateorupdatesample] | Creates a new Comment for the Issue in an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueComment.json | +| [apiIssueCommentDeleteSample.ts][apiissuecommentdeletesample] | Deletes the specified comment from an Issue. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueComment.json | +| [apiIssueCommentGetEntityTagSample.ts][apiissuecommentgetentitytagsample] | Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueComment.json | +| [apiIssueCommentGetSample.ts][apiissuecommentgetsample] | Gets the details of the issue Comment for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueComment.json | +| [apiIssueCommentListByServiceSample.ts][apiissuecommentlistbyservicesample] | Lists all comments for the Issue associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueComments.json | +| [apiIssueCreateOrUpdateSample.ts][apiissuecreateorupdatesample] | Creates a new Issue for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssue.json | +| [apiIssueDeleteSample.ts][apiissuedeletesample] | Deletes the specified Issue from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssue.json | +| [apiIssueGetEntityTagSample.ts][apiissuegetentitytagsample] | Gets the entity state (Etag) version of the Issue for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssue.json | +| [apiIssueGetSample.ts][apiissuegetsample] | Gets the details of the Issue for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssue.json | +| [apiIssueListByServiceSample.ts][apiissuelistbyservicesample] | Lists all issues associated with the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssues.json | +| [apiIssueUpdateSample.ts][apiissueupdatesample] | Updates an existing issue for an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiIssue.json | +| [apiListByServiceSample.ts][apilistbyservicesample] | Lists all APIs of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApis.json | +| [apiListByTagsSample.ts][apilistbytagssample] | Lists a collection of apis associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApisByTags.json | +| [apiManagementOperationsListSample.ts][apimanagementoperationslistsample] | Lists all of the available REST API operations of the Microsoft.ApiManagement provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOperations.json | +| [apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts][apimanagementserviceapplynetworkconfigurationupdatessample] | Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json | +| [apiManagementServiceBackupSample.ts][apimanagementservicebackupsample] | Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithAccessKey.json | +| [apiManagementServiceCheckNameAvailabilitySample.ts][apimanagementservicechecknameavailabilitysample] | Checks availability and correctness of a name for an API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceCheckNameAvailability.json | +| [apiManagementServiceCreateOrUpdateSample.ts][apimanagementservicecreateorupdatesample] | Creates or updates an API Management service. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json | +| [apiManagementServiceDeleteSample.ts][apimanagementservicedeletesample] | Deletes an existing API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceDeleteService.json | +| [apiManagementServiceGetDomainOwnershipIdentifierSample.ts][apimanagementservicegetdomainownershipidentifiersample] | Get the custom domain ownership identifier for an API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json | +| [apiManagementServiceGetSample.ts][apimanagementservicegetsample] | Gets an API Management service resource description. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json | +| [apiManagementServiceGetSsoTokenSample.ts][apimanagementservicegetssotokensample] | Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetSsoToken.json | +| [apiManagementServiceListByResourceGroupSample.ts][apimanagementservicelistbyresourcegroupsample] | List all API Management services within a resource group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json | +| [apiManagementServiceListSample.ts][apimanagementservicelistsample] | Lists all API Management services within an Azure subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscription.json | +| [apiManagementServiceMigrateToStv2Sample.ts][apimanagementservicemigratetostv2sample] | Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceMigrateToStv2.json | +| [apiManagementServiceRestoreSample.ts][apimanagementservicerestoresample] | Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRestoreWithAccessKey.json | +| [apiManagementServiceSkusListAvailableServiceSkusSample.ts][apimanagementserviceskuslistavailableserviceskussample] | Gets all available SKU for a given API Management service x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSKUs-Consumption.json | +| [apiManagementServiceUpdateSample.ts][apimanagementserviceupdatesample] | Updates an existing API Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServiceDisableTls10.json | +| [apiManagementSkusListSample.ts][apimanagementskuslistsample] | Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSku.json | +| [apiOperationCreateOrUpdateSample.ts][apioperationcreateorupdatesample] | Creates a new operation in the API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperation.json | +| [apiOperationDeleteSample.ts][apioperationdeletesample] | Deletes the specified operation in the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperation.json | +| [apiOperationGetEntityTagSample.ts][apioperationgetentitytagsample] | Gets the entity state (Etag) version of the API operation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperation.json | +| [apiOperationGetSample.ts][apioperationgetsample] | Gets the details of the API Operation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperation.json | +| [apiOperationListByApiSample.ts][apioperationlistbyapisample] | Lists a collection of the operations for the specified API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperations.json | +| [apiOperationPolicyCreateOrUpdateSample.ts][apioperationpolicycreateorupdatesample] | Creates or updates policy configuration for the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationPolicy.json | +| [apiOperationPolicyDeleteSample.ts][apioperationpolicydeletesample] | Deletes the policy configuration at the Api Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationPolicy.json | +| [apiOperationPolicyGetEntityTagSample.ts][apioperationpolicygetentitytagsample] | Gets the entity state (Etag) version of the API operation policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationPolicy.json | +| [apiOperationPolicyGetSample.ts][apioperationpolicygetsample] | Get the policy configuration at the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationPolicy.json | +| [apiOperationPolicyListByOperationSample.ts][apioperationpolicylistbyoperationsample] | Get the list of policy configuration at the API Operation level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationPolicies.json | +| [apiOperationUpdateSample.ts][apioperationupdatesample] | Updates the details of the operation in the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiOperation.json | +| [apiPolicyCreateOrUpdateSample.ts][apipolicycreateorupdatesample] | Creates or updates policy configuration for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiPolicy.json | +| [apiPolicyDeleteSample.ts][apipolicydeletesample] | Deletes the policy configuration at the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiPolicy.json | +| [apiPolicyGetEntityTagSample.ts][apipolicygetentitytagsample] | Gets the entity state (Etag) version of the API policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiPolicy.json | +| [apiPolicyGetSample.ts][apipolicygetsample] | Get the policy configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiPolicy.json | +| [apiPolicyListByApiSample.ts][apipolicylistbyapisample] | Get the policy configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiPolicies.json | +| [apiProductListByApisSample.ts][apiproductlistbyapissample] | Lists all Products, which the API is part of. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiProducts.json | +| [apiReleaseCreateOrUpdateSample.ts][apireleasecreateorupdatesample] | Creates a new Release for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiRelease.json | +| [apiReleaseDeleteSample.ts][apireleasedeletesample] | Deletes the specified release in the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiRelease.json | +| [apiReleaseGetEntityTagSample.ts][apireleasegetentitytagsample] | Returns the etag of an API release. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiRelease.json | +| [apiReleaseGetSample.ts][apireleasegetsample] | Returns the details of an API release. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiRelease.json | +| [apiReleaseListByServiceSample.ts][apireleaselistbyservicesample] | 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. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiReleases.json | +| [apiReleaseUpdateSample.ts][apireleaseupdatesample] | Updates the details of the release of the API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiRelease.json | +| [apiRevisionListByServiceSample.ts][apirevisionlistbyservicesample] | Lists all revisions of an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiRevisions.json | +| [apiSchemaCreateOrUpdateSample.ts][apischemacreateorupdatesample] | Creates or updates schema configuration for the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiSchema.json | +| [apiSchemaDeleteSample.ts][apischemadeletesample] | Deletes the schema configuration at the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiSchema.json | +| [apiSchemaGetEntityTagSample.ts][apischemagetentitytagsample] | Gets the entity state (Etag) version of the schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiSchema.json | +| [apiSchemaGetSample.ts][apischemagetsample] | Get the schema configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiSchema.json | +| [apiSchemaListByApiSample.ts][apischemalistbyapisample] | Get the schema configuration at the API level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiSchemas.json | +| [apiTagDescriptionCreateOrUpdateSample.ts][apitagdescriptioncreateorupdatesample] | Create/Update tag description in scope of the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTagDescription.json | +| [apiTagDescriptionDeleteSample.ts][apitagdescriptiondeletesample] | Delete tag description for the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTagDescription.json | +| [apiTagDescriptionGetEntityTagSample.ts][apitagdescriptiongetentitytagsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTagDescription.json | +| [apiTagDescriptionGetSample.ts][apitagdescriptiongetsample] | Get Tag description in scope of API x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTagDescription.json | +| [apiTagDescriptionListByServiceSample.ts][apitagdescriptionlistbyservicesample] | Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTagDescriptions.json | +| [apiUpdateSample.ts][apiupdatesample] | Updates the specified API of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApi.json | +| [apiVersionSetCreateOrUpdateSample.ts][apiversionsetcreateorupdatesample] | Creates or Updates a Api Version Set. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiVersionSet.json | +| [apiVersionSetDeleteSample.ts][apiversionsetdeletesample] | Deletes specific Api Version Set. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiVersionSet.json | +| [apiVersionSetGetEntityTagSample.ts][apiversionsetgetentitytagsample] | Gets the entity state (Etag) version of the Api Version Set specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiVersionSet.json | +| [apiVersionSetGetSample.ts][apiversionsetgetsample] | Gets the details of the Api Version Set specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiVersionSet.json | +| [apiVersionSetListByServiceSample.ts][apiversionsetlistbyservicesample] | Lists a collection of API Version Sets in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiVersionSets.json | +| [apiVersionSetUpdateSample.ts][apiversionsetupdatesample] | Updates the details of the Api VersionSet specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiVersionSet.json | +| [apiWikiCreateOrUpdateSample.ts][apiwikicreateorupdatesample] | Creates a new Wiki for an API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWiki.json | +| [apiWikiDeleteSample.ts][apiwikideletesample] | Deletes the specified Wiki from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiWiki.json | +| [apiWikiGetEntityTagSample.ts][apiwikigetentitytagsample] | Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiWiki.json | +| [apiWikiGetSample.ts][apiwikigetsample] | Gets the details of the Wiki for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiWiki.json | +| [apiWikiUpdateSample.ts][apiwikiupdatesample] | Updates the details of the Wiki for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiWiki.json | +| [apiWikisListSample.ts][apiwikislistsample] | Gets the wikis for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiWikis.json | +| [authorizationAccessPolicyCreateOrUpdateSample.ts][authorizationaccesspolicycreateorupdatesample] | Creates or updates Authorization Access Policy. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAccessPolicy.json | +| [authorizationAccessPolicyDeleteSample.ts][authorizationaccesspolicydeletesample] | Deletes specific access policy from the Authorization. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationAccessPolicy.json | +| [authorizationAccessPolicyGetSample.ts][authorizationaccesspolicygetsample] | Gets the details of the authorization access policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationAccessPolicy.json | +| [authorizationAccessPolicyListByAuthorizationSample.ts][authorizationaccesspolicylistbyauthorizationsample] | Lists a collection of authorization access policy defined within a authorization. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationAccessPolicies.json | +| [authorizationConfirmConsentCodeSample.ts][authorizationconfirmconsentcodesample] | Confirm valid consent code to suppress Authorizations anti-phishing page. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPostAuthorizationConfirmConsentCodeRequest.json | +| [authorizationCreateOrUpdateSample.ts][authorizationcreateorupdatesample] | Creates or updates authorization. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAADAuthCode.json | +| [authorizationDeleteSample.ts][authorizationdeletesample] | Deletes specific Authorization from the Authorization provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorization.json | +| [authorizationGetSample.ts][authorizationgetsample] | Gets the details of the authorization specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorization.json | +| [authorizationListByAuthorizationProviderSample.ts][authorizationlistbyauthorizationprovidersample] | Lists a collection of authorization providers defined within a authorization provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationsAuthCode.json | +| [authorizationLoginLinksPostSample.ts][authorizationloginlinkspostsample] | Gets authorization login links. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationLoginRequest.json | +| [authorizationProviderCreateOrUpdateSample.ts][authorizationprovidercreateorupdatesample] | Creates or updates authorization provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderAADAuthCode.json | +| [authorizationProviderDeleteSample.ts][authorizationproviderdeletesample] | Deletes specific authorization provider from the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationProvider.json | +| [authorizationProviderGetSample.ts][authorizationprovidergetsample] | Gets the details of the authorization provider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationProvider.json | +| [authorizationProviderListByServiceSample.ts][authorizationproviderlistbyservicesample] | Lists a collection of authorization providers defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationProviders.json | +| [authorizationServerCreateOrUpdateSample.ts][authorizationservercreateorupdatesample] | Creates new authorization server or updates an existing authorization server. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationServer.json | +| [authorizationServerDeleteSample.ts][authorizationserverdeletesample] | Deletes specific authorization server instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationServer.json | +| [authorizationServerGetEntityTagSample.ts][authorizationservergetentitytagsample] | Gets the entity state (Etag) version of the authorizationServer specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadAuthorizationServer.json | +| [authorizationServerGetSample.ts][authorizationservergetsample] | Gets the details of the authorization server specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationServer.json | +| [authorizationServerListByServiceSample.ts][authorizationserverlistbyservicesample] | Lists a collection of authorization servers defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationServers.json | +| [authorizationServerListSecretsSample.ts][authorizationserverlistsecretssample] | Gets the client secret details of the authorization server. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementAuthorizationServerListSecrets.json | +| [authorizationServerUpdateSample.ts][authorizationserverupdatesample] | Updates the details of the authorization server specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateAuthorizationServer.json | +| [backendCreateOrUpdateSample.ts][backendcreateorupdatesample] | Creates or Updates a backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateBackendProxyBackend.json | +| [backendDeleteSample.ts][backenddeletesample] | Deletes the specified backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteBackend.json | +| [backendGetEntityTagSample.ts][backendgetentitytagsample] | Gets the entity state (Etag) version of the backend specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadBackend.json | +| [backendGetSample.ts][backendgetsample] | Gets the details of the backend specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetBackend.json | +| [backendListByServiceSample.ts][backendlistbyservicesample] | Lists a collection of backends in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListBackends.json | +| [backendReconnectSample.ts][backendreconnectsample] | Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackendReconnect.json | +| [backendUpdateSample.ts][backendupdatesample] | Updates an existing backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateBackend.json | +| [cacheCreateOrUpdateSample.ts][cachecreateorupdatesample] | Creates or updates an External Cache to be used in Api Management instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCache.json | +| [cacheDeleteSample.ts][cachedeletesample] | Deletes specific Cache. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCache.json | +| [cacheGetEntityTagSample.ts][cachegetentitytagsample] | Gets the entity state (Etag) version of the Cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCache.json | +| [cacheGetSample.ts][cachegetsample] | Gets the details of the Cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCache.json | +| [cacheListByServiceSample.ts][cachelistbyservicesample] | Lists a collection of all external Caches in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCaches.json | +| [cacheUpdateSample.ts][cacheupdatesample] | Updates the details of the cache specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateCache.json | +| [certificateCreateOrUpdateSample.ts][certificatecreateorupdatesample] | Creates or updates the certificate being used for authentication with the backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCertificate.json | +| [certificateDeleteSample.ts][certificatedeletesample] | Deletes specific certificate. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCertificate.json | +| [certificateGetEntityTagSample.ts][certificategetentitytagsample] | Gets the entity state (Etag) version of the certificate specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCertificate.json | +| [certificateGetSample.ts][certificategetsample] | Gets the details of the certificate specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCertificate.json | +| [certificateListByServiceSample.ts][certificatelistbyservicesample] | Lists a collection of all certificates in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCertificates.json | +| [certificateRefreshSecretSample.ts][certificaterefreshsecretsample] | From KeyVault, Refresh the certificate being used for authentication with the backend. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshCertificate.json | +| [contentItemCreateOrUpdateSample.ts][contentitemcreateorupdatesample] | Creates a new developer portal's content item specified by the provided content type. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentTypeContentItem.json | +| [contentItemDeleteSample.ts][contentitemdeletesample] | Removes the specified developer portal's content item. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentTypeContentItem.json | +| [contentItemGetEntityTagSample.ts][contentitemgetentitytagsample] | Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadContentTypeContentItem.json | +| [contentItemGetSample.ts][contentitemgetsample] | Returns the developer portal's content item specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentTypeContentItem.json | +| [contentItemListByServiceSample.ts][contentitemlistbyservicesample] | Lists developer portal's content items specified by the provided content type. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypeContentItems.json | +| [contentTypeCreateOrUpdateSample.ts][contenttypecreateorupdatesample] | Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentType.json | +| [contentTypeDeleteSample.ts][contenttypedeletesample] | Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentType.json | +| [contentTypeGetSample.ts][contenttypegetsample] | Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentType.json | +| [contentTypeListByServiceSample.ts][contenttypelistbyservicesample] | Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypes.json | +| [delegationSettingsCreateOrUpdateSample.ts][delegationsettingscreateorupdatesample] | Create or Update Delegation settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutDelegation.json | +| [delegationSettingsGetEntityTagSample.ts][delegationsettingsgetentitytagsample] | Gets the entity state (Etag) version of the DelegationSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDelegationSettings.json | +| [delegationSettingsGetSample.ts][delegationsettingsgetsample] | Get Delegation Settings for the Portal. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetDelegation.json | +| [delegationSettingsListSecretsSample.ts][delegationsettingslistsecretssample] | Gets the secret validation key of the DelegationSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json | +| [delegationSettingsUpdateSample.ts][delegationsettingsupdatesample] | Update Delegation settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json | +| [deletedServicesGetByNameSample.ts][deletedservicesgetbynamesample] | Get soft-deleted Api Management Service by name. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDeletedServiceByName.json | +| [deletedServicesListBySubscriptionSample.ts][deletedserviceslistbysubscriptionsample] | Lists all soft-deleted services available for undelete for the given subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesListBySubscription.json | +| [deletedServicesPurgeSample.ts][deletedservicespurgesample] | Purges Api Management Service (deletes it with no option to undelete). x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesPurge.json | +| [diagnosticCreateOrUpdateSample.ts][diagnosticcreateorupdatesample] | Creates a new Diagnostic or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDiagnostic.json | +| [diagnosticDeleteSample.ts][diagnosticdeletesample] | Deletes the specified Diagnostic. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDiagnostic.json | +| [diagnosticGetEntityTagSample.ts][diagnosticgetentitytagsample] | Gets the entity state (Etag) version of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDiagnostic.json | +| [diagnosticGetSample.ts][diagnosticgetsample] | Gets the details of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDiagnostic.json | +| [diagnosticListByServiceSample.ts][diagnosticlistbyservicesample] | Lists all diagnostics of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDiagnostics.json | +| [diagnosticUpdateSample.ts][diagnosticupdatesample] | Updates the details of the Diagnostic specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDiagnostic.json | +| [documentationCreateOrUpdateSample.ts][documentationcreateorupdatesample] | Creates a new Documentation or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDocumentation.json | +| [documentationDeleteSample.ts][documentationdeletesample] | Deletes the specified Documentation from an API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDocumentation.json | +| [documentationGetEntityTagSample.ts][documentationgetentitytagsample] | Gets the entity state (Etag) version of the Documentation by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDocumentation.json | +| [documentationGetSample.ts][documentationgetsample] | Gets the details of the Documentation specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDocumentation.json | +| [documentationListByServiceSample.ts][documentationlistbyservicesample] | Lists all Documentations of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDocumentations.json | +| [documentationUpdateSample.ts][documentationupdatesample] | Updates the details of the Documentation for an API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDocumentation.json | +| [emailTemplateCreateOrUpdateSample.ts][emailtemplatecreateorupdatesample] | Updates an Email Template. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTemplate.json | +| [emailTemplateDeleteSample.ts][emailtemplatedeletesample] | Reset the Email Template to default template provided by the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTemplate.json | +| [emailTemplateGetEntityTagSample.ts][emailtemplategetentitytagsample] | Gets the entity state (Etag) version of the email template specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadEmailTemplate.json | +| [emailTemplateGetSample.ts][emailtemplategetsample] | Gets the details of the email template specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTemplate.json | +| [emailTemplateListByServiceSample.ts][emailtemplatelistbyservicesample] | Gets all email templates x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTemplates.json | +| [emailTemplateUpdateSample.ts][emailtemplateupdatesample] | Updates API Management email template x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTemplate.json | +| [gatewayApiCreateOrUpdateSample.ts][gatewayapicreateorupdatesample] | Adds an API to the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayApi.json | +| [gatewayApiDeleteSample.ts][gatewayapideletesample] | Deletes the specified API from the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayApi.json | +| [gatewayApiGetEntityTagSample.ts][gatewayapigetentitytagsample] | Checks that API entity specified by identifier is associated with the Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayApi.json | +| [gatewayApiListByServiceSample.ts][gatewayapilistbyservicesample] | Lists a collection of the APIs associated with a gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayApis.json | +| [gatewayCertificateAuthorityCreateOrUpdateSample.ts][gatewaycertificateauthoritycreateorupdatesample] | Assign Certificate entity to Gateway entity as Certificate Authority. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json | +| [gatewayCertificateAuthorityDeleteSample.ts][gatewaycertificateauthoritydeletesample] | Remove relationship between Certificate Authority and Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json | +| [gatewayCertificateAuthorityGetEntityTagSample.ts][gatewaycertificateauthoritygetentitytagsample] | Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json | +| [gatewayCertificateAuthorityGetSample.ts][gatewaycertificateauthoritygetsample] | Get assigned Gateway Certificate Authority details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json | +| [gatewayCertificateAuthorityListByServiceSample.ts][gatewaycertificateauthoritylistbyservicesample] | Lists the collection of Certificate Authorities for the specified Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json | +| [gatewayCreateOrUpdateSample.ts][gatewaycreateorupdatesample] | Creates or updates a Gateway to be used in Api Management instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGateway.json | +| [gatewayDeleteSample.ts][gatewaydeletesample] | Deletes specific Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGateway.json | +| [gatewayGenerateTokenSample.ts][gatewaygeneratetokensample] | Gets the Shared Access Authorization Token for the gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayGenerateToken.json | +| [gatewayGetEntityTagSample.ts][gatewaygetentitytagsample] | Gets the entity state (Etag) version of the Gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGateway.json | +| [gatewayGetSample.ts][gatewaygetsample] | Gets the details of the Gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGateway.json | +| [gatewayHostnameConfigurationCreateOrUpdateSample.ts][gatewayhostnameconfigurationcreateorupdatesample] | Creates of updates hostname configuration for a Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json | +| [gatewayHostnameConfigurationDeleteSample.ts][gatewayhostnameconfigurationdeletesample] | Deletes the specified hostname configuration from the specified Gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json | +| [gatewayHostnameConfigurationGetEntityTagSample.ts][gatewayhostnameconfigurationgetentitytagsample] | Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json | +| [gatewayHostnameConfigurationGetSample.ts][gatewayhostnameconfigurationgetsample] | Get details of a hostname configuration x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json | +| [gatewayHostnameConfigurationListByServiceSample.ts][gatewayhostnameconfigurationlistbyservicesample] | Lists the collection of hostname configurations for the specified gateway. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json | +| [gatewayListByServiceSample.ts][gatewaylistbyservicesample] | Lists a collection of gateways registered with service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGateways.json | +| [gatewayListKeysSample.ts][gatewaylistkeyssample] | Retrieves gateway keys. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayListKeys.json | +| [gatewayRegenerateKeySample.ts][gatewayregeneratekeysample] | Regenerates specified gateway key invalidating any tokens created with it. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayRegenerateKey.json | +| [gatewayUpdateSample.ts][gatewayupdatesample] | Updates the details of the gateway specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGateway.json | +| [globalSchemaCreateOrUpdateSample.ts][globalschemacreateorupdatesample] | Creates new or updates existing specified Schema of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGlobalSchema1.json | +| [globalSchemaDeleteSample.ts][globalschemadeletesample] | Deletes specific Schema. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGlobalSchema.json | +| [globalSchemaGetEntityTagSample.ts][globalschemagetentitytagsample] | Gets the entity state (Etag) version of the Schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGlobalSchema.json | +| [globalSchemaGetSample.ts][globalschemagetsample] | Gets the details of the Schema specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGlobalSchema1.json | +| [globalSchemaListByServiceSample.ts][globalschemalistbyservicesample] | Lists a collection of schemas registered with service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGlobalSchemas.json | +| [graphQlApiResolverCreateOrUpdateSample.ts][graphqlapiresolvercreateorupdatesample] | Creates a new resolver in the GraphQL API or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolver.json | +| [graphQlApiResolverDeleteSample.ts][graphqlapiresolverdeletesample] | Deletes the specified resolver in the GraphQL API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolver.json | +| [graphQlApiResolverGetEntityTagSample.ts][graphqlapiresolvergetentitytagsample] | Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolver.json | +| [graphQlApiResolverGetSample.ts][graphqlapiresolvergetsample] | Gets the details of the GraphQL API Resolver specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolver.json | +| [graphQlApiResolverListByApiSample.ts][graphqlapiresolverlistbyapisample] | Lists a collection of the resolvers for the specified GraphQL API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolvers.json | +| [graphQlApiResolverPolicyCreateOrUpdateSample.ts][graphqlapiresolverpolicycreateorupdatesample] | Creates or updates policy configuration for the GraphQL API Resolver level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolverPolicy.json | +| [graphQlApiResolverPolicyDeleteSample.ts][graphqlapiresolverpolicydeletesample] | Deletes the policy configuration at the GraphQL Api Resolver. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolverPolicy.json | +| [graphQlApiResolverPolicyGetEntityTagSample.ts][graphqlapiresolverpolicygetentitytagsample] | Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolverPolicy.json | +| [graphQlApiResolverPolicyGetSample.ts][graphqlapiresolverpolicygetsample] | Get the policy configuration at the GraphQL API Resolver level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolverPolicy.json | +| [graphQlApiResolverPolicyListByResolverSample.ts][graphqlapiresolverpolicylistbyresolversample] | Get the list of policy configuration at the GraphQL API Resolver level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolverPolicies.json | +| [graphQlApiResolverUpdateSample.ts][graphqlapiresolverupdatesample] | Updates the details of the resolver in the GraphQL API specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGraphQLApiResolver.json | +| [groupCreateOrUpdateSample.ts][groupcreateorupdatesample] | Creates or Updates a group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroup.json | +| [groupDeleteSample.ts][groupdeletesample] | Deletes specific group of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroup.json | +| [groupGetEntityTagSample.ts][groupgetentitytagsample] | Gets the entity state (Etag) version of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroup.json | +| [groupGetSample.ts][groupgetsample] | Gets the details of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGroup.json | +| [groupListByServiceSample.ts][grouplistbyservicesample] | Lists a collection of groups defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroups.json | +| [groupUpdateSample.ts][groupupdatesample] | Updates the details of the group specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGroup.json | +| [groupUserCheckEntityExistsSample.ts][groupusercheckentityexistssample] | Checks that user entity specified by identifier is associated with the group entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroupUser.json | +| [groupUserCreateSample.ts][groupusercreatesample] | Add existing user to existing group x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroupUser.json | +| [groupUserDeleteSample.ts][groupuserdeletesample] | Remove existing user from existing group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroupUser.json | +| [groupUserListSample.ts][groupuserlistsample] | Lists a collection of user entities associated with the group. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroupUsers.json | +| [identityProviderCreateOrUpdateSample.ts][identityprovidercreateorupdatesample] | Creates or Updates the IdentityProvider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateIdentityProvider.json | +| [identityProviderDeleteSample.ts][identityproviderdeletesample] | Deletes the specified identity provider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteIdentityProvider.json | +| [identityProviderGetEntityTagSample.ts][identityprovidergetentitytagsample] | Gets the entity state (Etag) version of the identityProvider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadIdentityProvider.json | +| [identityProviderGetSample.ts][identityprovidergetsample] | Gets the configuration details of the identity Provider configured in specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIdentityProvider.json | +| [identityProviderListByServiceSample.ts][identityproviderlistbyservicesample] | Lists a collection of Identity Provider configured in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIdentityProviders.json | +| [identityProviderListSecretsSample.ts][identityproviderlistsecretssample] | Gets the client secret details of the Identity Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementIdentityProviderListSecrets.json | +| [identityProviderUpdateSample.ts][identityproviderupdatesample] | Updates an existing IdentityProvider configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateIdentityProvider.json | +| [issueGetSample.ts][issuegetsample] | Gets API Management issue details x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIssue.json | +| [issueListByServiceSample.ts][issuelistbyservicesample] | Lists a collection of issues in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIssues.json | +| [loggerCreateOrUpdateSample.ts][loggercreateorupdatesample] | Creates or Updates a logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAILogger.json | +| [loggerDeleteSample.ts][loggerdeletesample] | Deletes the specified logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteLogger.json | +| [loggerGetEntityTagSample.ts][loggergetentitytagsample] | Gets the entity state (Etag) version of the logger specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadLogger.json | +| [loggerGetSample.ts][loggergetsample] | Gets the details of the logger specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetLogger.json | +| [loggerListByServiceSample.ts][loggerlistbyservicesample] | Lists a collection of loggers in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListLoggers.json | +| [loggerUpdateSample.ts][loggerupdatesample] | Updates an existing logger. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateLogger.json | +| [namedValueCreateOrUpdateSample.ts][namedvaluecreateorupdatesample] | Creates or updates named value. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNamedValue.json | +| [namedValueDeleteSample.ts][namedvaluedeletesample] | Deletes specific named value from the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNamedValue.json | +| [namedValueGetEntityTagSample.ts][namedvaluegetentitytagsample] | Gets the entity state (Etag) version of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNamedValue.json | +| [namedValueGetSample.ts][namedvaluegetsample] | Gets the details of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNamedValue.json | +| [namedValueListByServiceSample.ts][namedvaluelistbyservicesample] | Lists a collection of named values defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNamedValues.json | +| [namedValueListValueSample.ts][namedvaluelistvaluesample] | Gets the secret of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementNamedValueListValue.json | +| [namedValueRefreshSecretSample.ts][namedvaluerefreshsecretsample] | Refresh the secret of the named value specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshNamedValue.json | +| [namedValueUpdateSample.ts][namedvalueupdatesample] | Updates the specific named value. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateNamedValue.json | +| [networkStatusListByLocationSample.ts][networkstatuslistbylocationsample] | Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json | +| [networkStatusListByServiceSample.ts][networkstatuslistbyservicesample] | Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatus.json | +| [notificationCreateOrUpdateSample.ts][notificationcreateorupdatesample] | Create or Update API Management publisher notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotification.json | +| [notificationGetSample.ts][notificationgetsample] | Gets the details of the Notification specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNotification.json | +| [notificationListByServiceSample.ts][notificationlistbyservicesample] | Lists a collection of properties defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotifications.json | +| [notificationRecipientEmailCheckEntityExistsSample.ts][notificationrecipientemailcheckentityexistssample] | Determine if Notification Recipient Email subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json | +| [notificationRecipientEmailCreateOrUpdateSample.ts][notificationrecipientemailcreateorupdatesample] | Adds the Email address to the list of Recipients for the Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json | +| [notificationRecipientEmailDeleteSample.ts][notificationrecipientemaildeletesample] | Removes the email from the list of Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json | +| [notificationRecipientEmailListByNotificationSample.ts][notificationrecipientemaillistbynotificationsample] | Gets the list of the Notification Recipient Emails subscribed to a notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientEmails.json | +| [notificationRecipientUserCheckEntityExistsSample.ts][notificationrecipientusercheckentityexistssample] | Determine if the Notification Recipient User is subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientUser.json | +| [notificationRecipientUserCreateOrUpdateSample.ts][notificationrecipientusercreateorupdatesample] | Adds the API Management User to the list of Recipients for the Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientUser.json | +| [notificationRecipientUserDeleteSample.ts][notificationrecipientuserdeletesample] | Removes the API Management user from the list of Notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json | +| [notificationRecipientUserListByNotificationSample.ts][notificationrecipientuserlistbynotificationsample] | Gets the list of the Notification Recipient User subscribed to the notification. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientUsers.json | +| [openIdConnectProviderCreateOrUpdateSample.ts][openidconnectprovidercreateorupdatesample] | Creates or updates the OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json | +| [openIdConnectProviderDeleteSample.ts][openidconnectproviderdeletesample] | Deletes specific OpenID Connect Provider of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json | +| [openIdConnectProviderGetEntityTagSample.ts][openidconnectprovidergetentitytagsample] | Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json | +| [openIdConnectProviderGetSample.ts][openidconnectprovidergetsample] | Gets specific OpenID Connect Provider without secrets. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetOpenIdConnectProvider.json | +| [openIdConnectProviderListByServiceSample.ts][openidconnectproviderlistbyservicesample] | Lists of all the OpenId Connect Providers. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOpenIdConnectProviders.json | +| [openIdConnectProviderListSecretsSample.ts][openidconnectproviderlistsecretssample] | Gets the client secret details of the OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json | +| [openIdConnectProviderUpdateSample.ts][openidconnectproviderupdatesample] | Updates the specific OpenID Connect Provider. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json | +| [operationListByTagsSample.ts][operationlistbytagssample] | Lists a collection of operations associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationsByTags.json | +| [outboundNetworkDependenciesEndpointsListByServiceSample.ts][outboundnetworkdependenciesendpointslistbyservicesample] | Gets the network endpoints of all outbound dependencies of a ApiManagement service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json | +| [performConnectivityCheckAsyncSample.ts][performconnectivitycheckasyncsample] | Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json | +| [policyCreateOrUpdateSample.ts][policycreateorupdatesample] | Creates or updates the global policy configuration of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicy.json | +| [policyDeleteSample.ts][policydeletesample] | Deletes the global policy configuration of the Api Management Service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicy.json | +| [policyDescriptionListByServiceSample.ts][policydescriptionlistbyservicesample] | Lists all policy descriptions. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyDescriptions.json | +| [policyFragmentCreateOrUpdateSample.ts][policyfragmentcreateorupdatesample] | Creates or updates a policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicyFragment.json | +| [policyFragmentDeleteSample.ts][policyfragmentdeletesample] | Deletes a policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicyFragment.json | +| [policyFragmentGetEntityTagSample.ts][policyfragmentgetentitytagsample] | Gets the entity state (Etag) version of a policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicyFragment.json | +| [policyFragmentGetSample.ts][policyfragmentgetsample] | Gets a policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFragment.json | +| [policyFragmentListByServiceSample.ts][policyfragmentlistbyservicesample] | Gets all policy fragments. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragments.json | +| [policyFragmentListReferencesSample.ts][policyfragmentlistreferencessample] | Lists policy resources that reference the policy fragment. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragmentReferences.json | +| [policyGetEntityTagSample.ts][policygetentitytagsample] | Gets the entity state (Etag) version of the Global policy definition in the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicy.json | +| [policyGetSample.ts][policygetsample] | Get the Global policy definition of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicy.json | +| [policyListByServiceSample.ts][policylistbyservicesample] | Lists all the Global Policy definitions of the Api Management service. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicies.json | +| [portalConfigCreateOrUpdateSample.ts][portalconfigcreateorupdatesample] | Create or update the developer portal configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalConfig.json | +| [portalConfigGetEntityTagSample.ts][portalconfiggetentitytagsample] | Gets the entity state (Etag) version of the developer portal configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalConfig.json | +| [portalConfigGetSample.ts][portalconfiggetsample] | Get the developer portal configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalConfig.json | +| [portalConfigListByServiceSample.ts][portalconfiglistbyservicesample] | Lists the developer portal configurations. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalConfig.json | +| [portalConfigUpdateSample.ts][portalconfigupdatesample] | Update the developer portal configuration. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalConfig.json | +| [portalRevisionCreateOrUpdateSample.ts][portalrevisioncreateorupdatesample] | Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalRevision.json | +| [portalRevisionGetEntityTagSample.ts][portalrevisiongetentitytagsample] | Gets the developer portal revision specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalRevision.json | +| [portalRevisionGetSample.ts][portalrevisiongetsample] | Gets the developer portal's revision specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPortalRevision.json | +| [portalRevisionListByServiceSample.ts][portalrevisionlistbyservicesample] | Lists developer portal's revisions. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalRevisions.json | +| [portalRevisionUpdateSample.ts][portalrevisionupdatesample] | Updates the description of specified portal revision or makes it current. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalRevision.json | +| [portalSettingsListByServiceSample.ts][portalsettingslistbyservicesample] | Lists a collection of portalsettings defined within a service instance.. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalSettings.json | +| [privateEndpointConnectionCreateOrUpdateSample.ts][privateendpointconnectioncreateorupdatesample] | Creates a new Private Endpoint Connection or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json | +| [privateEndpointConnectionDeleteSample.ts][privateendpointconnectiondeletesample] | Deletes the specified Private Endpoint Connection. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json | +| [privateEndpointConnectionGetByNameSample.ts][privateendpointconnectiongetbynamesample] | Gets the details of the Private Endpoint Connection specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateEndpointConnection.json | +| [privateEndpointConnectionGetPrivateLinkResourceSample.ts][privateendpointconnectiongetprivatelinkresourcesample] | Gets the private link resources x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json | +| [privateEndpointConnectionListByServiceSample.ts][privateendpointconnectionlistbyservicesample] | Lists all private endpoint connections of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateEndpointConnections.json | +| [privateEndpointConnectionListPrivateLinkResourcesSample.ts][privateendpointconnectionlistprivatelinkresourcessample] | Gets the private link resources x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateLinkGroupResources.json | +| [productApiCheckEntityExistsSample.ts][productapicheckentityexistssample] | Checks that API entity specified by identifier is associated with the Product entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductApi.json | +| [productApiCreateOrUpdateSample.ts][productapicreateorupdatesample] | Adds an API to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductApi.json | +| [productApiDeleteSample.ts][productapideletesample] | Deletes the specified API from the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductApi.json | +| [productApiListByProductSample.ts][productapilistbyproductsample] | Lists a collection of the APIs associated with a product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductApis.json | +| [productCreateOrUpdateSample.ts][productcreateorupdatesample] | Creates or Updates a product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProduct.json | +| [productDeleteSample.ts][productdeletesample] | Delete product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProduct.json | +| [productGetEntityTagSample.ts][productgetentitytagsample] | Gets the entity state (Etag) version of the product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProduct.json | +| [productGetSample.ts][productgetsample] | Gets the details of the product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProduct.json | +| [productGroupCheckEntityExistsSample.ts][productgroupcheckentityexistssample] | Checks that Group entity specified by identifier is associated with the Product entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductGroup.json | +| [productGroupCreateOrUpdateSample.ts][productgroupcreateorupdatesample] | Adds the association between the specified developer group with the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductGroup.json | +| [productGroupDeleteSample.ts][productgroupdeletesample] | Deletes the association between the specified group and product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductGroup.json | +| [productGroupListByProductSample.ts][productgrouplistbyproductsample] | Lists the collection of developer groups associated with the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductGroups.json | +| [productListByServiceSample.ts][productlistbyservicesample] | Lists a collection of products in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProducts.json | +| [productListByTagsSample.ts][productlistbytagssample] | Lists a collection of products associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductsByTags.json | +| [productPolicyCreateOrUpdateSample.ts][productpolicycreateorupdatesample] | Creates or updates policy configuration for the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductPolicy.json | +| [productPolicyDeleteSample.ts][productpolicydeletesample] | Deletes the policy configuration at the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductPolicy.json | +| [productPolicyGetEntityTagSample.ts][productpolicygetentitytagsample] | Get the ETag of the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductPolicy.json | +| [productPolicyGetSample.ts][productpolicygetsample] | Get the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductPolicy.json | +| [productPolicyListByProductSample.ts][productpolicylistbyproductsample] | Get the policy configuration at the Product level. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductPolicies.json | +| [productSubscriptionsListSample.ts][productsubscriptionslistsample] | Lists the collection of subscriptions to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductSubscriptions.json | +| [productUpdateSample.ts][productupdatesample] | Update existing product details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProduct.json | +| [productWikiCreateOrUpdateSample.ts][productwikicreateorupdatesample] | Creates a new Wiki for a Product or updates an existing one. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductWiki.json | +| [productWikiDeleteSample.ts][productwikideletesample] | Deletes the specified Wiki from a Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductWiki.json | +| [productWikiGetEntityTagSample.ts][productwikigetentitytagsample] | Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductWiki.json | +| [productWikiGetSample.ts][productwikigetsample] | Gets the details of the Wiki for a Product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductWiki.json | +| [productWikiUpdateSample.ts][productwikiupdatesample] | Updates the details of the Wiki for a Product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProductWiki.json | +| [productWikisListSample.ts][productwikislistsample] | Gets the details of the Wiki for a Product specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductWikis.json | +| [quotaByCounterKeysListByServiceSample.ts][quotabycounterkeyslistbyservicesample] | Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeys.json | +| [quotaByCounterKeysUpdateSample.ts][quotabycounterkeysupdatesample] | Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKey.json | +| [quotaByPeriodKeysGetSample.ts][quotabyperiodkeysgetsample] | Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json | +| [quotaByPeriodKeysUpdateSample.ts][quotabyperiodkeysupdatesample] | Updates an existing quota counter value in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json | +| [regionListByServiceSample.ts][regionlistbyservicesample] | Lists all azure regions in which the service exists. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListRegions.json | +| [reportsListByApiSample.ts][reportslistbyapisample] | Lists report records by API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByApi.json | +| [reportsListByGeoSample.ts][reportslistbygeosample] | Lists report records by geography. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByGeo.json | +| [reportsListByOperationSample.ts][reportslistbyoperationsample] | Lists report records by API Operations. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByOperation.json | +| [reportsListByProductSample.ts][reportslistbyproductsample] | Lists report records by Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByProduct.json | +| [reportsListByRequestSample.ts][reportslistbyrequestsample] | Lists report records by Request. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByRequest.json | +| [reportsListBySubscriptionSample.ts][reportslistbysubscriptionsample] | Lists report records by subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsBySubscription.json | +| [reportsListByTimeSample.ts][reportslistbytimesample] | Lists report records by Time. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByTime.json | +| [reportsListByUserSample.ts][reportslistbyusersample] | Lists report records by User. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByUser.json | +| [signInSettingsCreateOrUpdateSample.ts][signinsettingscreateorupdatesample] | Create or Update Sign-In settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignIn.json | +| [signInSettingsGetEntityTagSample.ts][signinsettingsgetentitytagsample] | Gets the entity state (Etag) version of the SignInSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignInSettings.json | +| [signInSettingsGetSample.ts][signinsettingsgetsample] | Get Sign In Settings for the Portal x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignIn.json | +| [signInSettingsUpdateSample.ts][signinsettingsupdatesample] | Update Sign-In settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json | +| [signUpSettingsCreateOrUpdateSample.ts][signupsettingscreateorupdatesample] | Create or Update Sign-Up settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignUp.json | +| [signUpSettingsGetEntityTagSample.ts][signupsettingsgetentitytagsample] | Gets the entity state (Etag) version of the SignUpSettings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignUpSettings.json | +| [signUpSettingsGetSample.ts][signupsettingsgetsample] | Get Sign Up Settings for the Portal x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignUp.json | +| [signUpSettingsUpdateSample.ts][signupsettingsupdatesample] | Update Sign-Up settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json | +| [subscriptionCreateOrUpdateSample.ts][subscriptioncreateorupdatesample] | Creates or updates the subscription of specified user to the specified product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSubscription.json | +| [subscriptionDeleteSample.ts][subscriptiondeletesample] | Deletes the specified subscription. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteSubscription.json | +| [subscriptionGetEntityTagSample.ts][subscriptiongetentitytagsample] | Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSubscription.json | +| [subscriptionGetSample.ts][subscriptiongetsample] | Gets the specified Subscription entity. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetSubscription.json | +| [subscriptionListSample.ts][subscriptionlistsample] | Lists all subscriptions of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSubscriptions.json | +| [subscriptionListSecretsSample.ts][subscriptionlistsecretssample] | Gets the specified Subscription keys. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionListSecrets.json | +| [subscriptionRegeneratePrimaryKeySample.ts][subscriptionregenerateprimarykeysample] | Regenerates primary key of existing subscription of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json | +| [subscriptionRegenerateSecondaryKeySample.ts][subscriptionregeneratesecondarykeysample] | Regenerates secondary key of existing subscription of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json | +| [subscriptionUpdateSample.ts][subscriptionupdatesample] | Updates the details of a subscription specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateSubscription.json | +| [tagAssignToApiSample.ts][tagassigntoapisample] | Assign tag to the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTag.json | +| [tagAssignToOperationSample.ts][tagassigntooperationsample] | Assign tag to the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationTag.json | +| [tagAssignToProductSample.ts][tagassigntoproductsample] | Assign tag to the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductTag.json | +| [tagCreateOrUpdateSample.ts][tagcreateorupdatesample] | Creates a tag. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTag.json | +| [tagDeleteSample.ts][tagdeletesample] | Deletes specific tag of the API Management service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTag.json | +| [tagDetachFromApiSample.ts][tagdetachfromapisample] | Detach the tag from the Api. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTag.json | +| [tagDetachFromOperationSample.ts][tagdetachfromoperationsample] | Detach the tag from the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationTag.json | +| [tagDetachFromProductSample.ts][tagdetachfromproductsample] | Detach the tag from the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductTag.json | +| [tagGetByApiSample.ts][taggetbyapisample] | Get tag associated with the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTag.json | +| [tagGetByOperationSample.ts][taggetbyoperationsample] | Get tag associated with the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationTag.json | +| [tagGetByProductSample.ts][taggetbyproductsample] | Get tag associated with the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductTag.json | +| [tagGetEntityStateByApiSample.ts][taggetentitystatebyapisample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTag.json | +| [tagGetEntityStateByOperationSample.ts][taggetentitystatebyoperationsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationTag.json | +| [tagGetEntityStateByProductSample.ts][taggetentitystatebyproductsample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductTag.json | +| [tagGetEntityStateSample.ts][taggetentitystatesample] | Gets the entity state version of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTag.json | +| [tagGetSample.ts][taggetsample] | Gets the details of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTag.json | +| [tagListByApiSample.ts][taglistbyapisample] | Lists all Tags associated with the API. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTags.json | +| [tagListByOperationSample.ts][taglistbyoperationsample] | Lists all Tags associated with the Operation. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationTags.json | +| [tagListByProductSample.ts][taglistbyproductsample] | Lists all Tags associated with the Product. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductTags.json | +| [tagListByServiceSample.ts][taglistbyservicesample] | Lists a collection of tags defined within a service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTags.json | +| [tagResourceListByServiceSample.ts][tagresourcelistbyservicesample] | Lists a collection of resources associated with tags. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTagResources.json | +| [tagUpdateSample.ts][tagupdatesample] | Updates the details of the tag specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTag.json | +| [tenantAccessCreateSample.ts][tenantaccesscreatesample] | Update tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTenantAccess.json | +| [tenantAccessGetEntityTagSample.ts][tenantaccessgetentitytagsample] | Tenant access metadata x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTenantAccess.json | +| [tenantAccessGetSample.ts][tenantaccessgetsample] | Get tenant access information details without secrets. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantAccess.json | +| [tenantAccessGitRegeneratePrimaryKeySample.ts][tenantaccessgitregenerateprimarykeysample] | Regenerate primary access key for GIT. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | +| [tenantAccessGitRegenerateSecondaryKeySample.ts][tenantaccessgitregeneratesecondarykeysample] | Regenerate secondary access key for GIT. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | +| [tenantAccessListByServiceSample.ts][tenantaccesslistbyservicesample] | Returns list of access infos - for Git and Management endpoints. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantAccess.json | +| [tenantAccessListSecretsSample.ts][tenantaccesslistsecretssample] | Get tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsTenantAccess.json | +| [tenantAccessRegeneratePrimaryKeySample.ts][tenantaccessregenerateprimarykeysample] | Regenerate primary access key x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | +| [tenantAccessRegenerateSecondaryKeySample.ts][tenantaccessregeneratesecondarykeysample] | Regenerate secondary access key x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json | +| [tenantAccessUpdateSample.ts][tenantaccessupdatesample] | Update tenant access information details. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTenantAccess.json | +| [tenantConfigurationDeploySample.ts][tenantconfigurationdeploysample] | This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationDeploy.json | +| [tenantConfigurationGetSyncStateSample.ts][tenantconfigurationgetsyncstatesample] | Gets the status of the most recent synchronization between the configuration database and the Git repository. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessSyncState.json | +| [tenantConfigurationSaveSample.ts][tenantconfigurationsavesample] | This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationSave.json | +| [tenantConfigurationValidateSample.ts][tenantconfigurationvalidatesample] | This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationValidate.json | +| [tenantSettingsGetSample.ts][tenantsettingsgetsample] | Get tenant settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantSettings.json | +| [tenantSettingsListByServiceSample.ts][tenantsettingslistbyservicesample] | Public settings. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantSettings.json | +| [userConfirmationPasswordSendSample.ts][userconfirmationpasswordsendsample] | Sends confirmation x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserConfirmationPasswordSend.json | +| [userCreateOrUpdateSample.ts][usercreateorupdatesample] | Creates or Updates a user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateUser.json | +| [userDeleteSample.ts][userdeletesample] | Deletes specific user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteUser.json | +| [userGenerateSsoUrlSample.ts][usergeneratessourlsample] | Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserGenerateSsoUrl.json | +| [userGetEntityTagSample.ts][usergetentitytagsample] | Gets the entity state (Etag) version of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadUser.json | +| [userGetSample.ts][usergetsample] | Gets the details of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUser.json | +| [userGetSharedAccessTokenSample.ts][usergetsharedaccesstokensample] | Gets the Shared Access Authorization Token for the User. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserToken.json | +| [userGroupListSample.ts][usergrouplistsample] | Lists all user groups. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserGroups.json | +| [userIdentitiesListSample.ts][useridentitieslistsample] | List of all user identities. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserIdentities.json | +| [userListByServiceSample.ts][userlistbyservicesample] | Lists a collection of registered users in the specified service instance. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUsers.json | +| [userSubscriptionGetSample.ts][usersubscriptiongetsample] | Gets the specified Subscription entity associated with a particular user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUserSubscription.json | +| [userSubscriptionListSample.ts][usersubscriptionlistsample] | Lists the collection of subscriptions of the specified user. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserSubscriptions.json | +| [userUpdateSample.ts][userupdatesample] | Updates the details of the user specified by its identifier. x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateUser.json | ## Prerequisites @@ -392,7 +447,7 @@ node dist/apiCreateOrUpdateSample.js Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" node dist/apiCreateOrUpdateSample.js +npx cross-env APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" APIMANAGEMENT_SUBSCRIPTION_ID="" APIMANAGEMENT_RESOURCE_GROUP="" node dist/apiCreateOrUpdateSample.js ``` ## Next Steps @@ -439,6 +494,7 @@ Take a look at our [API Documentation][apiref] for more information about the AP [apimanagementservicegetssotokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetSsoTokenSample.ts [apimanagementservicelistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListByResourceGroupSample.ts [apimanagementservicelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListSample.ts +[apimanagementservicemigratetostv2sample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceMigrateToStv2Sample.ts [apimanagementservicerestoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceRestoreSample.ts [apimanagementserviceskuslistavailableserviceskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceSkusListAvailableServiceSkusSample.ts [apimanagementserviceupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceUpdateSample.ts @@ -484,6 +540,26 @@ Take a look at our [API Documentation][apiref] for more information about the AP [apiversionsetgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetGetSample.ts [apiversionsetlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetListByServiceSample.ts [apiversionsetupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetUpdateSample.ts +[apiwikicreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiCreateOrUpdateSample.ts +[apiwikideletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiDeleteSample.ts +[apiwikigetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetEntityTagSample.ts +[apiwikigetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetSample.ts +[apiwikiupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiUpdateSample.ts +[apiwikislistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikisListSample.ts +[authorizationaccesspolicycreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyCreateOrUpdateSample.ts +[authorizationaccesspolicydeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyDeleteSample.ts +[authorizationaccesspolicygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyGetSample.ts +[authorizationaccesspolicylistbyauthorizationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyListByAuthorizationSample.ts +[authorizationconfirmconsentcodesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationConfirmConsentCodeSample.ts +[authorizationcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationCreateOrUpdateSample.ts +[authorizationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationDeleteSample.ts +[authorizationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationGetSample.ts +[authorizationlistbyauthorizationprovidersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationListByAuthorizationProviderSample.ts +[authorizationloginlinkspostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationLoginLinksPostSample.ts +[authorizationprovidercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderCreateOrUpdateSample.ts +[authorizationproviderdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderDeleteSample.ts +[authorizationprovidergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderGetSample.ts +[authorizationproviderlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderListByServiceSample.ts [authorizationservercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerCreateOrUpdateSample.ts [authorizationserverdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerDeleteSample.ts [authorizationservergetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerGetEntityTagSample.ts @@ -533,6 +609,12 @@ Take a look at our [API Documentation][apiref] for more information about the AP [diagnosticgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticGetSample.ts [diagnosticlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticListByServiceSample.ts [diagnosticupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticUpdateSample.ts +[documentationcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationCreateOrUpdateSample.ts +[documentationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationDeleteSample.ts +[documentationgetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetEntityTagSample.ts +[documentationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetSample.ts +[documentationlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationListByServiceSample.ts +[documentationupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationUpdateSample.ts [emailtemplatecreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateCreateOrUpdateSample.ts [emailtemplatedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateDeleteSample.ts [emailtemplategetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateGetEntityTagSample.ts @@ -567,6 +649,17 @@ Take a look at our [API Documentation][apiref] for more information about the AP [globalschemagetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetEntityTagSample.ts [globalschemagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetSample.ts [globalschemalistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaListByServiceSample.ts +[graphqlapiresolvercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverCreateOrUpdateSample.ts +[graphqlapiresolverdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverDeleteSample.ts +[graphqlapiresolvergetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetEntityTagSample.ts +[graphqlapiresolvergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetSample.ts +[graphqlapiresolverlistbyapisample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverListByApiSample.ts +[graphqlapiresolverpolicycreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyCreateOrUpdateSample.ts +[graphqlapiresolverpolicydeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyDeleteSample.ts +[graphqlapiresolverpolicygetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetEntityTagSample.ts +[graphqlapiresolverpolicygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetSample.ts +[graphqlapiresolverpolicylistbyresolversample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyListByResolverSample.ts +[graphqlapiresolverupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverUpdateSample.ts [groupcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupCreateOrUpdateSample.ts [groupdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupDeleteSample.ts [groupgetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupGetEntityTagSample.ts @@ -626,9 +719,20 @@ Take a look at our [API Documentation][apiref] for more information about the AP [policycreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyCreateOrUpdateSample.ts [policydeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDeleteSample.ts [policydescriptionlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDescriptionListByServiceSample.ts +[policyfragmentcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentCreateOrUpdateSample.ts +[policyfragmentdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentDeleteSample.ts +[policyfragmentgetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetEntityTagSample.ts +[policyfragmentgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetSample.ts +[policyfragmentlistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListByServiceSample.ts +[policyfragmentlistreferencessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListReferencesSample.ts [policygetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetEntityTagSample.ts [policygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetSample.ts [policylistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyListByServiceSample.ts +[portalconfigcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigCreateOrUpdateSample.ts +[portalconfiggetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetEntityTagSample.ts +[portalconfiggetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetSample.ts +[portalconfiglistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigListByServiceSample.ts +[portalconfigupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigUpdateSample.ts [portalrevisioncreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionCreateOrUpdateSample.ts [portalrevisiongetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetEntityTagSample.ts [portalrevisiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetSample.ts @@ -662,6 +766,12 @@ Take a look at our [API Documentation][apiref] for more information about the AP [productpolicylistbyproductsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyListByProductSample.ts [productsubscriptionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productSubscriptionsListSample.ts [productupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productUpdateSample.ts +[productwikicreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiCreateOrUpdateSample.ts +[productwikideletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiDeleteSample.ts +[productwikigetentitytagsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetEntityTagSample.ts +[productwikigetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetSample.ts +[productwikiupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiUpdateSample.ts +[productwikislistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikisListSample.ts [quotabycounterkeyslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysListByServiceSample.ts [quotabycounterkeysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysUpdateSample.ts [quotabyperiodkeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByPeriodKeysGetSample.ts diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiCreateOrUpdateSample.ts index 4028f5841ca1..c925ab438886 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApi.json */ async function apiManagementCreateApi() { const subscriptionId = @@ -59,7 +59,7 @@ async function apiManagementCreateApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiClone.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiClone.json */ async function apiManagementCreateApiClone() { const subscriptionId = @@ -94,7 +94,7 @@ async function apiManagementCreateApiClone() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiNewVersionUsingExistingApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiNewVersionUsingExistingApi.json */ async function apiManagementCreateApiNewVersionUsingExistingApi() { const subscriptionId = @@ -133,7 +133,7 @@ async function apiManagementCreateApiNewVersionUsingExistingApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiRevisionFromExistingApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiRevisionFromExistingApi.json */ async function apiManagementCreateApiRevisionFromExistingApi() { const subscriptionId = @@ -164,7 +164,7 @@ async function apiManagementCreateApiRevisionFromExistingApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingImportOverrideServiceUrl.json */ async function apiManagementCreateApiUsingImportOverrideServiceUrl() { const subscriptionId = @@ -194,7 +194,7 @@ async function apiManagementCreateApiUsingImportOverrideServiceUrl() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingOai3Import.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingOai3Import.json */ async function apiManagementCreateApiUsingOai3Import() { const subscriptionId = @@ -224,7 +224,38 @@ async function apiManagementCreateApiUsingOai3Import() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingSwaggerImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct.json + */ +async function apiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "petstore"; + const parameters: ApiCreateOrUpdateParameter = { + format: "openapi-link", + path: "petstore", + translateRequiredQueryParametersConduct: "template", + value: + "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.api.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. + * + * @summary Creates new or updates existing specified API of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingSwaggerImport.json */ async function apiManagementCreateApiUsingSwaggerImport() { const subscriptionId = @@ -253,7 +284,7 @@ async function apiManagementCreateApiUsingSwaggerImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiUsingWadlImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiUsingWadlImport.json */ async function apiManagementCreateApiUsingWadlImport() { const subscriptionId = @@ -283,7 +314,95 @@ async function apiManagementCreateApiUsingWadlImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiWithOpenIdConnect.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWithMultipleAuthServers.json + */ +async function apiManagementCreateApiWithMultipleAuthServers() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "tempgroup"; + const parameters: ApiCreateOrUpdateParameter = { + path: "newapiPath", + description: "apidescription5200", + authenticationSettings: { + oAuth2AuthenticationSettings: [ + { + authorizationServerId: "authorizationServerId2283", + scope: "oauth2scope2580" + }, + { + authorizationServerId: "authorizationServerId2284", + scope: "oauth2scope2581" + } + ] + }, + displayName: "apiname1463", + protocols: ["https", "http"], + serviceUrl: "http://newechoapi.cloudapp.net/api", + subscriptionKeyParameterNames: { header: "header4520", query: "query3037" } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.api.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. + * + * @summary Creates new or updates existing specified API of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWithMultipleOpenIdConnectProviders.json + */ +async function apiManagementCreateApiWithMultipleOpenIdConnectProviders() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "tempgroup"; + const parameters: ApiCreateOrUpdateParameter = { + path: "newapiPath", + description: "apidescription5200", + authenticationSettings: { + openidAuthenticationSettings: [ + { + bearerTokenSendingMethods: ["authorizationHeader"], + openidProviderId: "openidProviderId2283" + }, + { + bearerTokenSendingMethods: ["authorizationHeader"], + openidProviderId: "openidProviderId2284" + } + ] + }, + displayName: "apiname1463", + protocols: ["https", "http"], + serviceUrl: "http://newechoapi.cloudapp.net/api", + subscriptionKeyParameterNames: { header: "header4520", query: "query3037" } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.api.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. + * + * @summary Creates new or updates existing specified API of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWithOpenIdConnect.json */ async function apiManagementCreateApiWithOpenIdConnect() { const subscriptionId = @@ -325,7 +444,7 @@ async function apiManagementCreateApiWithOpenIdConnect() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGraphQLApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApi.json */ async function apiManagementCreateGraphQlApi() { const subscriptionId = @@ -357,7 +476,7 @@ async function apiManagementCreateGraphQlApi() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSoapPassThroughApiUsingWsdlImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSoapPassThroughApiUsingWsdlImport.json */ async function apiManagementCreateSoapPassThroughApiUsingWsdlImport() { const subscriptionId = @@ -391,7 +510,7 @@ async function apiManagementCreateSoapPassThroughApiUsingWsdlImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSoapToRestApiUsingWsdlImport.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSoapToRestApiUsingWsdlImport.json */ async function apiManagementCreateSoapToRestApiUsingWsdlImport() { const subscriptionId = @@ -424,7 +543,7 @@ async function apiManagementCreateSoapToRestApiUsingWsdlImport() { * This sample demonstrates how to Creates new or updates existing specified API of the API Management service instance. * * @summary Creates new or updates existing specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateWebsocketApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateWebsocketApi.json */ async function apiManagementCreateWebSocketApi() { const subscriptionId = @@ -459,8 +578,11 @@ async function main() { apiManagementCreateApiRevisionFromExistingApi(); apiManagementCreateApiUsingImportOverrideServiceUrl(); apiManagementCreateApiUsingOai3Import(); + apiManagementCreateApiUsingOai3ImportWithTranslateRequiredQueryParametersConduct(); apiManagementCreateApiUsingSwaggerImport(); apiManagementCreateApiUsingWadlImport(); + apiManagementCreateApiWithMultipleAuthServers(); + apiManagementCreateApiWithMultipleOpenIdConnectProviders(); apiManagementCreateApiWithOpenIdConnect(); apiManagementCreateGraphQlApi(); apiManagementCreateSoapPassThroughApiUsingWsdlImport(); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDeleteSample.ts index 853c62bcc9b0..bce9734c0807 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified API of the API Management service instance. * * @summary Deletes the specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApi.json */ async function apiManagementDeleteApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticCreateOrUpdateSample.ts index 6410cf83a0e8..bb786b3e0770 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Diagnostic for an API or updates an existing one. * * @summary Creates a new Diagnostic for an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiDiagnostic.json */ async function apiManagementCreateApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticDeleteSample.ts index 9d91a18f872c..3c10221ab17f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Diagnostic from an API. * * @summary Deletes the specified Diagnostic from an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiDiagnostic.json */ async function apiManagementDeleteApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticGetEntityTagSample.ts index 71d346fd685c..fee3ff7ccecc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiDiagnostic.json */ async function apiManagementHeadApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticGetSample.ts index 7d68179b5ceb..b7c47ea2ae7a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Diagnostic for an API specified by its identifier. * * @summary Gets the details of the Diagnostic for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiDiagnostic.json */ async function apiManagementGetApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticListByServiceSample.ts index 654ec82611f2..1e3cf1eb81f3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all diagnostics of an API. * * @summary Lists all diagnostics of an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiDiagnostics.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiDiagnostics.json */ async function apiManagementListApiDiagnostics() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticUpdateSample.ts index fbfa92fc5500..98db9f1389bd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiDiagnosticUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the Diagnostic for an API specified by its identifier. * * @summary Updates the details of the Diagnostic for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiDiagnostic.json */ async function apiManagementUpdateApiDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiExportGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiExportGetSample.ts index 73abdc0d8b0c..0bc983750541 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiExportGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiExportGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to 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. * * @summary 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. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiExportInOpenApi2dot0.json */ async function apiManagementGetApiExportInOpenApi2Dot0() { const subscriptionId = @@ -45,7 +45,7 @@ async function apiManagementGetApiExportInOpenApi2Dot0() { * This sample demonstrates how to 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. * * @summary 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. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiExportInOpenApi3dot0.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiExportInOpenApi3dot0.json */ async function apiManagementGetApiExportInOpenApi3Dot0() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiGetEntityTagSample.ts index 170b311d7b44..2b95bbce1f20 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API specified by its identifier. * * @summary Gets the entity state (Etag) version of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApi.json */ async function apiManagementHeadApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiGetSample.ts index 68bb7247f12d..6be69f527b3f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the API specified by its identifier. * * @summary Gets the details of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiContract.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiContract.json */ async function apiManagementGetApiContract() { const subscriptionId = @@ -37,7 +37,7 @@ async function apiManagementGetApiContract() { * This sample demonstrates how to Gets the details of the API specified by its identifier. * * @summary Gets the details of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiRevision.json */ async function apiManagementGetApiRevisionContract() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentCreateOrUpdateSample.ts index eb319dbc8eb7..cbe5617fbf06 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Attachment for the Issue in an API or updates an existing one. * * @summary Creates a new Attachment for the Issue in an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueAttachment.json */ async function apiManagementCreateApiIssueAttachment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentDeleteSample.ts index bcc7b2ca31c1..fbfe39d80766 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified comment from an Issue. * * @summary Deletes the specified comment from an Issue. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueAttachment.json */ async function apiManagementDeleteApiIssueAttachment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentGetEntityTagSample.ts index 3b85e72ad948..2c4e90eb568f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueAttachment.json */ async function apiManagementHeadApiIssueAttachment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentGetSample.ts index d21a7c54c766..0d908d111952 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the issue Attachment for an API specified by its identifier. * * @summary Gets the details of the issue Attachment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueAttachment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueAttachment.json */ async function apiManagementGetApiIssueAttachment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentListByServiceSample.ts index 114d92af8daa..ee061f31375f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueAttachmentListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all attachments for the Issue associated with the specified API. * * @summary Lists all attachments for the Issue associated with the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueAttachments.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueAttachments.json */ async function apiManagementListApiIssueAttachments() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentCreateOrUpdateSample.ts index f190ae962be2..32936cb7b1cc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Comment for the Issue in an API or updates an existing one. * * @summary Creates a new Comment for the Issue in an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssueComment.json */ async function apiManagementCreateApiIssueComment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentDeleteSample.ts index 639d47fbf60b..834fcd9846b3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified comment from an Issue. * * @summary Deletes the specified comment from an Issue. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssueComment.json */ async function apiManagementDeleteApiIssueComment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentGetEntityTagSample.ts index 0bfac29708eb..cf361ab2bf4a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssueComment.json */ async function apiManagementHeadApiIssueComment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentGetSample.ts index d4ce5e2674f1..a653c91031fc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the issue Comment for an API specified by its identifier. * * @summary Gets the details of the issue Comment for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssueComment.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssueComment.json */ async function apiManagementGetApiIssueComment() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentListByServiceSample.ts index 73690d83262d..0f707b25fdc6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCommentListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all comments for the Issue associated with the specified API. * * @summary Lists all comments for the Issue associated with the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssueComments.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssueComments.json */ async function apiManagementListApiIssueComments() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCreateOrUpdateSample.ts index d533ef5268b0..17118262adfb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Issue for an API or updates an existing one. * * @summary Creates a new Issue for an API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiIssue.json */ async function apiManagementCreateApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueDeleteSample.ts index 9bdfd51d4398..62947660fdae 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Issue from an API. * * @summary Deletes the specified Issue from an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiIssue.json */ async function apiManagementDeleteApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueGetEntityTagSample.ts index 345cddbf97ec..9a4b143c4da3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Issue for an API specified by its identifier. * * @summary Gets the entity state (Etag) version of the Issue for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiIssue.json */ async function apiManagementHeadApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueGetSample.ts index 461e4417197a..b806298655a6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Issue for an API specified by its identifier. * * @summary Gets the details of the Issue for an API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiIssue.json */ async function apiManagementGetApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueListByServiceSample.ts index 3c6136945f91..e40ae7fd2e07 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all issues associated with the specified API. * * @summary Lists all issues associated with the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiIssues.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiIssues.json */ async function apiManagementListApiIssues() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueUpdateSample.ts index 757d69873cc4..25a011cbee75 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiIssueUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing issue for an API. * * @summary Updates an existing issue for an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiIssue.json */ async function apiManagementUpdateApiIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiListByServiceSample.ts index 8959cde5dda0..e1d94d424419 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all APIs of the API Management service instance. * * @summary Lists all APIs of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApis.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApis.json */ async function apiManagementListApis() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiListByTagsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiListByTagsSample.ts index 672872a1e86d..8a067b4d7eff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiListByTagsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiListByTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of apis associated with tags. * * @summary Lists a collection of apis associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApisByTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApisByTags.json */ async function apiManagementListApisByTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementOperationsListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementOperationsListSample.ts index 96000e400796..75c47d43d0ff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementOperationsListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementOperationsListSample.ts @@ -18,14 +18,11 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.ApiManagement provider. * * @summary Lists all of the available REST API operations of the Microsoft.ApiManagement provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOperations.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOperations.json */ async function apiManagementListOperations() { - const subscriptionId = - process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); - const client = new ApiManagementClient(credential, subscriptionId); + const client = new ApiManagementClient(credential); const resArray = new Array(); for await (let item of client.apiManagementOperations.list()) { resArray.push(item); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts index 723442d8fc07..dfd4316b30c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceApplyNetworkConfigurationUpdatesSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. * * @summary Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApplyNetworkConfigurationUpdates.json */ async function apiManagementApplyNetworkConfigurationUpdates() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceBackupSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceBackupSample.ts index 9257a8af819a..b03c356fdfc1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceBackupSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceBackupSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. * * @summary Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithAccessKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithAccessKey.json */ async function apiManagementBackupWithAccessKey() { const subscriptionId = @@ -50,7 +50,7 @@ async function apiManagementBackupWithAccessKey() { * This sample demonstrates how to Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. * * @summary Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithSystemManagedIdentity.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithSystemManagedIdentity.json */ async function apiManagementBackupWithSystemManagedIdentity() { const subscriptionId = @@ -78,7 +78,7 @@ async function apiManagementBackupWithSystemManagedIdentity() { * This sample demonstrates how to Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. * * @summary Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackupWithUserAssignedManagedIdentity.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackupWithUserAssignedManagedIdentity.json */ async function apiManagementBackupWithUserAssignedManagedIdentity() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceCheckNameAvailabilitySample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceCheckNameAvailabilitySample.ts index 3fa2fb20c02a..1a25f9a44a64 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceCheckNameAvailabilitySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceCheckNameAvailabilitySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks availability and correctness of a name for an API Management service. * * @summary Checks availability and correctness of a name for an API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceCheckNameAvailability.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceCheckNameAvailability.json */ async function apiManagementServiceCheckNameAvailability() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceCreateOrUpdateSample.ts index 9beb8bdbd8fb..5f7ab735d7d9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json */ async function apiManagementCreateMultiRegionServiceWithCustomHostname() { const subscriptionId = @@ -80,7 +80,7 @@ async function apiManagementCreateMultiRegionServiceWithCustomHostname() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateService.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateService.json */ async function apiManagementCreateService() { const subscriptionId = @@ -109,7 +109,7 @@ async function apiManagementCreateService() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceHavingMsi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceHavingMsi.json */ async function apiManagementCreateServiceHavingMsi() { const subscriptionId = @@ -139,7 +139,7 @@ async function apiManagementCreateServiceHavingMsi() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceInVnetWithPublicIP.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceInVnetWithPublicIP.json */ async function apiManagementCreateServiceInVnetWithPublicIP() { const subscriptionId = @@ -176,7 +176,7 @@ async function apiManagementCreateServiceInVnetWithPublicIP() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceInZones.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceInZones.json */ async function apiManagementCreateServiceInZones() { const subscriptionId = @@ -206,7 +206,7 @@ async function apiManagementCreateServiceInZones() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceWithCustomHostnameKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithCustomHostnameKeyVault.json */ async function apiManagementCreateServiceWithCustomHostnameKeyVault() { const subscriptionId = @@ -267,7 +267,37 @@ async function apiManagementCreateServiceWithCustomHostnameKeyVault() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceWithSystemCertificates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithNatGatewayEnabled.json + */ +async function apiManagementCreateServiceWithNatGatewayEnabled() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const parameters: ApiManagementServiceResource = { + location: "East US", + natGatewayState: "Enabled", + publisherEmail: "apim@autorestsdk.com", + publisherName: "autorestsdk", + sku: { name: "Premium", capacity: 1 }, + tags: { tag1: "value1", tag2: "value2", tag3: "value3" } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiManagementService.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. + * + * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithSystemCertificates.json */ async function apiManagementCreateServiceWithSystemCertificates() { const subscriptionId = @@ -304,7 +334,7 @@ async function apiManagementCreateServiceWithSystemCertificates() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateServiceWithUserAssignedIdentity.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateServiceWithUserAssignedIdentity.json */ async function apiManagementCreateServiceWithUserAssignedIdentity() { const subscriptionId = @@ -339,7 +369,7 @@ async function apiManagementCreateServiceWithUserAssignedIdentity() { * This sample demonstrates how to Creates or updates an API Management service. This is long running operation and could take several minutes to complete. * * @summary Creates or updates an API Management service. This is long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUndelete.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUndelete.json */ async function apiManagementUndelete() { const subscriptionId = @@ -371,6 +401,7 @@ async function main() { apiManagementCreateServiceInVnetWithPublicIP(); apiManagementCreateServiceInZones(); apiManagementCreateServiceWithCustomHostnameKeyVault(); + apiManagementCreateServiceWithNatGatewayEnabled(); apiManagementCreateServiceWithSystemCertificates(); apiManagementCreateServiceWithUserAssignedIdentity(); apiManagementUndelete(); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceDeleteSample.ts index 1a4d99174d2f..dfd1f991b2c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing API Management service. * * @summary Deletes an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceDeleteService.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceDeleteService.json */ async function apiManagementServiceDeleteService() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetDomainOwnershipIdentifierSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetDomainOwnershipIdentifierSample.ts index 572a65c4d7d6..8397ca8c3e72 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetDomainOwnershipIdentifierSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetDomainOwnershipIdentifierSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the custom domain ownership identifier for an API Management service. * * @summary Get the custom domain ownership identifier for an API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetDomainOwnershipIdentifier.json */ async function apiManagementServiceGetDomainOwnershipIdentifier() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetSample.ts index f9a924d27d5d..7163797c6d8d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets an API Management service resource description. * * @summary Gets an API Management service resource description. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetMultiRegionInternalVnet.json */ async function apiManagementServiceGetMultiRegionInternalVnet() { const subscriptionId = @@ -39,7 +39,7 @@ async function apiManagementServiceGetMultiRegionInternalVnet() { * This sample demonstrates how to Gets an API Management service resource description. * * @summary Gets an API Management service resource description. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetService.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetService.json */ async function apiManagementServiceGetService() { const subscriptionId = @@ -60,7 +60,7 @@ async function apiManagementServiceGetService() { * This sample demonstrates how to Gets an API Management service resource description. * * @summary Gets an API Management service resource description. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetServiceHavingMsi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetServiceHavingMsi.json */ async function apiManagementServiceGetServiceHavingMsi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetSsoTokenSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetSsoTokenSample.ts index 11f698146458..5b7a9b85fd34 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetSsoTokenSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceGetSsoTokenSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. * * @summary Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetSsoToken.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetSsoToken.json */ async function apiManagementServiceGetSsoToken() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListByResourceGroupSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListByResourceGroupSample.ts index 101b4ab52647..68347b154435 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListByResourceGroupSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all API Management services within a resource group. * * @summary List all API Management services within a resource group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscriptionAndResourceGroup.json */ async function apiManagementListServiceBySubscriptionAndResourceGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListSample.ts index 109f01778b5a..dae98cd98de7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all API Management services within an Azure subscription. * * @summary Lists all API Management services within an Azure subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListServiceBySubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListServiceBySubscription.json */ async function apiManagementListServiceBySubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceMigrateToStv2Sample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceMigrateToStv2Sample.ts new file mode 100644 index 000000000000..12b4f998926b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceMigrateToStv2Sample.ts @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete. + * + * @summary Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceMigrateToStv2.json + */ +async function apiManagementMigrateService() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiManagementService.beginMigrateToStv2AndWait( + resourceGroupName, + serviceName + ); + console.log(result); +} + +async function main() { + apiManagementMigrateService(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceRestoreSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceRestoreSample.ts index 79f7a2e7419b..d74b73856aad 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceRestoreSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceRestoreSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. * * @summary Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRestoreWithAccessKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRestoreWithAccessKey.json */ async function apiManagementRestoreService() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceSkusListAvailableServiceSkusSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceSkusListAvailableServiceSkusSample.ts index 6a2531c7c713..7e0ad8f9d06f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceSkusListAvailableServiceSkusSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceSkusListAvailableServiceSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all available SKU for a given API Management service * * @summary Gets all available SKU for a given API Management service - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSKUs-Consumption.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSKUs-Consumption.json */ async function apiManagementListSkUsConsumption() { const subscriptionId = @@ -42,7 +42,7 @@ async function apiManagementListSkUsConsumption() { * This sample demonstrates how to Gets all available SKU for a given API Management service * * @summary Gets all available SKU for a given API Management service - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSKUs-Dedicated.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSKUs-Dedicated.json */ async function apiManagementListSkUsDedicated() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceUpdateSample.ts index 69023ab24d77..ea2ec6b8aad9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementServiceUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing API Management service. * * @summary Updates an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServiceDisableTls10.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServiceDisableTls10.json */ async function apiManagementUpdateServiceDisableTls10() { const subscriptionId = @@ -48,7 +48,7 @@ async function apiManagementUpdateServiceDisableTls10() { * This sample demonstrates how to Updates an existing API Management service. * * @summary Updates an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServicePublisherDetails.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServicePublisherDetails.json */ async function apiManagementUpdateServicePublisherDetails() { const subscriptionId = @@ -74,7 +74,7 @@ async function apiManagementUpdateServicePublisherDetails() { * This sample demonstrates how to Updates an existing API Management service. * * @summary Updates an existing API Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateServiceToNewVnetAndAZs.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateServiceToNewVnetAndAZs.json */ async function apiManagementUpdateServiceToNewVnetAndAvailabilityZones() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementSkusListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementSkusListSample.ts index a58f24d92378..7e31e185e783 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementSkusListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiManagementSkusListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. * * @summary Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSku.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSku.json */ async function listsAllAvailableResourceSkUs() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationCreateOrUpdateSample.ts index 04171fe3d5e0..57ddd217eb6b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new operation in the API or updates an existing one. * * @summary Creates a new operation in the API or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperation.json */ async function apiManagementCreateApiOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationDeleteSample.ts index 8183c18aa4f7..d414082a183c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified operation in the API. * * @summary Deletes the specified operation in the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperation.json */ async function apiManagementDeleteApiOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationGetEntityTagSample.ts index f450215237e8..3cebed551155 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API operation specified by its identifier. * * @summary Gets the entity state (Etag) version of the API operation specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperation.json */ async function apiManagementHeadApiOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationGetSample.ts index deee94efba9d..10b16a1eceeb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the API Operation specified by its identifier. * * @summary Gets the details of the API Operation specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperation.json */ async function apiManagementGetApiOperation() { const subscriptionId = @@ -43,7 +43,7 @@ async function apiManagementGetApiOperation() { * This sample demonstrates how to Gets the details of the API Operation specified by its identifier. * * @summary Gets the details of the API Operation specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationPetStore.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationPetStore.json */ async function apiManagementGetApiOperationPetStore() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationListByApiSample.ts index 02db19bfe785..67fec5856be7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of the operations for the specified API. * * @summary Lists a collection of the operations for the specified API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperations.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperations.json */ async function apiManagementListApiOperations() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyCreateOrUpdateSample.ts index 556fb03c0f5f..97461f9f8ac8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates policy configuration for the API Operation level. * * @summary Creates or updates policy configuration for the API Operation level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationPolicy.json */ async function apiManagementCreateApiOperationPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyDeleteSample.ts index d49e4a9e6718..4478ff0fa99a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the policy configuration at the Api Operation. * * @summary Deletes the policy configuration at the Api Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationPolicy.json */ async function apiManagementDeleteApiOperationPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyGetEntityTagSample.ts index 5b47327c5e9a..5bc3e6ddd58e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API operation policy specified by its identifier. * * @summary Gets the entity state (Etag) version of the API operation policy specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationPolicy.json */ async function apiManagementHeadApiOperationPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyGetSample.ts index 7c385c04a729..cab61e48b966 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the API Operation level. * * @summary Get the policy configuration at the API Operation level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationPolicy.json */ async function apiManagementGetApiOperationPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyListByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyListByOperationSample.ts index 539890c84317..aa843602a285 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyListByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationPolicyListByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the list of policy configuration at the API Operation level. * * @summary Get the list of policy configuration at the API Operation level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationPolicies.json */ async function apiManagementListApiOperationPolicies() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationUpdateSample.ts index e86da23b278c..0f79451fcfb9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiOperationUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the operation in the API specified by its identifier. * * @summary Updates the details of the operation in the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiOperation.json */ async function apiManagementUpdateApiOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyCreateOrUpdateSample.ts index fdfecd866369..fa605ca9b679 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates policy configuration for the API. * * @summary Creates or updates policy configuration for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiPolicy.json */ async function apiManagementCreateApiPolicy() { const subscriptionId = @@ -56,7 +56,7 @@ async function apiManagementCreateApiPolicy() { * This sample demonstrates how to Creates or updates policy configuration for the API. * * @summary Creates or updates policy configuration for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiPolicyNonXmlEncoded.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiPolicyNonXmlEncoded.json */ async function apiManagementCreateApiPolicyNonXmlEncoded() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyDeleteSample.ts index 6ead1ef8a96a..d129e7c63897 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the policy configuration at the Api. * * @summary Deletes the policy configuration at the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiPolicy.json */ async function apiManagementDeleteApiPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyGetEntityTagSample.ts index 7e1fd19da684..65d78626c8c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the API policy specified by its identifier. * * @summary Gets the entity state (Etag) version of the API policy specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiPolicy.json */ async function apiManagementHeadApiPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyGetSample.ts index 6de85bd5a316..144ec3c40c84 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the API level. * * @summary Get the policy configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiPolicy.json */ async function apiManagementGetApiPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyListByApiSample.ts index 96dd1a33f253..288412e2c710 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiPolicyListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the API level. * * @summary Get the policy configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiPolicies.json */ async function apiManagementListApiPolicies() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiProductListByApisSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiProductListByApisSample.ts index 8d5c83c65278..d318b1473b02 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiProductListByApisSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiProductListByApisSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Products, which the API is part of. * * @summary Lists all Products, which the API is part of. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiProducts.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiProducts.json */ async function apiManagementListApiProducts() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseCreateOrUpdateSample.ts index 781b9055b8e2..cb79c7d8ac65 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Release for the API. * * @summary Creates a new Release for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiRelease.json */ async function apiManagementCreateApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseDeleteSample.ts index ee4111b577f1..5632e6d7ca5f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified release in the API. * * @summary Deletes the specified release in the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiRelease.json */ async function apiManagementDeleteApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseGetEntityTagSample.ts index 63606843f8b6..22a8e6432079 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the etag of an API release. * * @summary Returns the etag of an API release. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiRelease.json */ async function apiManagementHeadApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseGetSample.ts index b231014dc5b9..910b9cc7aa94 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the details of an API release. * * @summary Returns the details of an API release. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiRelease.json */ async function apiManagementGetApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseListByServiceSample.ts index 5ff069871a18..8d7992118402 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to 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. * * @summary 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. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiReleases.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiReleases.json */ async function apiManagementListApiReleases() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseUpdateSample.ts index f898d4521bcf..36d6b1ea7b60 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiReleaseUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the release of the API specified by its identifier. * * @summary Updates the details of the release of the API specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiRelease.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiRelease.json */ async function apiManagementUpdateApiRelease() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiRevisionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiRevisionListByServiceSample.ts index 99ab1bfe488e..369b6861fae5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiRevisionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiRevisionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all revisions of an API. * * @summary Lists all revisions of an API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiRevisions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiRevisions.json */ async function apiManagementListApiRevisions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaCreateOrUpdateSample.ts index 1b7505f87dcd..e83665edc36a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates schema configuration for the API. * * @summary Creates or updates schema configuration for the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiSchema.json */ async function apiManagementCreateApiSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaDeleteSample.ts index e00f4df0b49c..e3295239b6d1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the schema configuration at the Api. * * @summary Deletes the schema configuration at the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiSchema.json */ async function apiManagementDeleteApiSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaGetEntityTagSample.ts index a2e33f88596f..152d4181d025 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the schema specified by its identifier. * * @summary Gets the entity state (Etag) version of the schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiSchema.json */ async function apiManagementHeadApiSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaGetSample.ts index d6d82ae3719d..0c9e2208fe4e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the schema configuration at the API level. * * @summary Get the schema configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiSchema.json */ async function apiManagementGetApiSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaListByApiSample.ts index fb10c26504a3..b82721c480f1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiSchemaListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the schema configuration at the API level. * * @summary Get the schema configuration at the API level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiSchemas.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiSchemas.json */ async function apiManagementListApiSchemas() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionCreateOrUpdateSample.ts index 51412c8e65fe..a47471031228 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create/Update tag description in scope of the Api. * * @summary Create/Update tag description in scope of the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTagDescription.json */ async function apiManagementCreateApiTagDescription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionDeleteSample.ts index eb7a286f0542..bb648aafb5be 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete tag description for the Api. * * @summary Delete tag description for the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTagDescription.json */ async function apiManagementDeleteApiTagDescription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionGetEntityTagSample.ts index 07855be1c2dc..da9fc62a5c2a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTagDescription.json */ async function apiManagementHeadApiTagDescription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionGetSample.ts index 9333acf1f921..afe59cf901ea 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get Tag description in scope of API * * @summary Get Tag description in scope of API - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTagDescription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTagDescription.json */ async function apiManagementGetApiTagDescription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionListByServiceSample.ts index 78af012665e6..87dc8f957b82 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiTagDescriptionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations * * @summary Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTagDescriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTagDescriptions.json */ async function apiManagementListApiTagDescriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiUpdateSample.ts index 2c3636001a49..452f2a8c93fc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the specified API of the API Management service instance. * * @summary Updates the specified API of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApi.json */ async function apiManagementUpdateApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetCreateOrUpdateSample.ts index 9cee55290f9a..e99607ed0708 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a Api Version Set. * * @summary Creates or Updates a Api Version Set. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiVersionSet.json */ async function apiManagementCreateApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetDeleteSample.ts index 1d540fa25678..1b5131200550 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific Api Version Set. * * @summary Deletes specific Api Version Set. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiVersionSet.json */ async function apiManagementDeleteApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetGetEntityTagSample.ts index 7422d34157ee..a13138798b8a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Api Version Set specified by its identifier. * * @summary Gets the entity state (Etag) version of the Api Version Set specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiVersionSet.json */ async function apiManagementHeadApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetGetSample.ts index d413656cfebd..3c18cf6498b8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Api Version Set specified by its identifier. * * @summary Gets the details of the Api Version Set specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiVersionSet.json */ async function apiManagementGetApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetListByServiceSample.ts index e02aec48f348..e69cc77fbc18 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of API Version Sets in the specified service instance. * * @summary Lists a collection of API Version Sets in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiVersionSets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiVersionSets.json */ async function apiManagementListApiVersionSets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetUpdateSample.ts index df3880c81724..f24581aaafc9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiVersionSetUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the Api VersionSet specified by its identifier. * * @summary Updates the details of the Api VersionSet specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateApiVersionSet.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiVersionSet.json */ async function apiManagementUpdateApiVersionSet() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiCreateOrUpdateSample.ts new file mode 100644 index 000000000000..ff3225655428 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiCreateOrUpdateSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { WikiContract, ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a new Wiki for an API or updates an existing one. + * + * @summary Creates a new Wiki for an API or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiWiki.json + */ +async function apiManagementCreateApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const parameters: WikiContract = { + documents: [{ documentationId: "docId1" }, { documentationId: "docId2" }] + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.createOrUpdate( + resourceGroupName, + serviceName, + apiId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiDeleteSample.ts new file mode 100644 index 000000000000..6264ade4faf7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified Wiki from an API. + * + * @summary Deletes the specified Wiki from an API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiWiki.json + */ +async function apiManagementDeleteApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.delete( + resourceGroupName, + serviceName, + apiId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetEntityTagSample.ts new file mode 100644 index 000000000000..0357a5166461 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiWiki.json + */ +async function apiManagementHeadApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.getEntityTag( + resourceGroupName, + serviceName, + apiId + ); + console.log(result); +} + +async function main() { + apiManagementHeadApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetSample.ts new file mode 100644 index 000000000000..359249679756 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the Wiki for an API specified by its identifier. + * + * @summary Gets the details of the Wiki for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiWiki.json + */ +async function apiManagementGetApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.get( + resourceGroupName, + serviceName, + apiId + ); + console.log(result); +} + +async function main() { + apiManagementGetApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiUpdateSample.ts new file mode 100644 index 000000000000..0e9975b5e0ed --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikiUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + WikiUpdateContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the details of the Wiki for an API specified by its identifier. + * + * @summary Updates the details of the Wiki for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateApiWiki.json + */ +async function apiManagementUpdateApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const parameters: WikiUpdateContract = { + documents: [{ documentationId: "docId1" }] + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.apiWiki.update( + resourceGroupName, + serviceName, + apiId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikisListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikisListSample.ts new file mode 100644 index 000000000000..8fabc4f2fdfc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/apiWikisListSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the wikis for an API specified by its identifier. + * + * @summary Gets the wikis for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiWikis.json + */ +async function apiManagementListApiWikis() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.apiWikis.list( + resourceGroupName, + serviceName, + apiId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListApiWikis(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyCreateOrUpdateSample.ts new file mode 100644 index 000000000000..bbad6c195ebc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyCreateOrUpdateSample.ts @@ -0,0 +1,56 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationAccessPolicyContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates Authorization Access Policy. + * + * @summary Creates or updates Authorization Access Policy. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAccessPolicy.json + */ +async function apiManagementCreateAuthorizationAccessPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const authorizationAccessPolicyId = "fe0bed83-631f-4149-bd0b-0464b1bc7cab"; + const parameters: AuthorizationAccessPolicyContract = { + objectId: "fe0bed83-631f-4149-bd0b-0464b1bc7cab", + tenantId: "13932a0d-5c63-4d37-901d-1df9c97722ff" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationAccessPolicy.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateAuthorizationAccessPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyDeleteSample.ts new file mode 100644 index 000000000000..96e976d1186f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyDeleteSample.ts @@ -0,0 +1,50 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes specific access policy from the Authorization. + * + * @summary Deletes specific access policy from the Authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationAccessPolicy.json + */ +async function apiManagementDeleteAuthorizationAccessPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const authorizationAccessPolicyId = "fe0bed83-631f-4149-bd0b-0464b1bc7cab"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationAccessPolicy.delete( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteAuthorizationAccessPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyGetSample.ts new file mode 100644 index 000000000000..fe3c3e9890dd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyGetSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the authorization access policy specified by its identifier. + * + * @summary Gets the details of the authorization access policy specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationAccessPolicy.json + */ +async function apiManagementGetAuthorizationAccessPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const authorizationAccessPolicyId = "fe0bed83-631f-4149-bd0b-0464b1bc7cab"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationAccessPolicy.get( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorizationAccessPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyListByAuthorizationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyListByAuthorizationSample.ts new file mode 100644 index 000000000000..c09bd1ad1709 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationAccessPolicyListByAuthorizationSample.ts @@ -0,0 +1,49 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists a collection of authorization access policy defined within a authorization. + * + * @summary Lists a collection of authorization access policy defined within a authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationAccessPolicies.json + */ +async function apiManagementListAuthorizationAccessPolicies() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorizationAccessPolicy.listByAuthorization( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListAuthorizationAccessPolicies(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationConfirmConsentCodeSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationConfirmConsentCodeSample.ts new file mode 100644 index 000000000000..547d469315fa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationConfirmConsentCodeSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationConfirmConsentCodeRequestContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Confirm valid consent code to suppress Authorizations anti-phishing page. + * + * @summary Confirm valid consent code to suppress Authorizations anti-phishing page. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPostAuthorizationConfirmConsentCodeRequest.json + */ +async function apiManagementPostAuthorizationConfirmConsentCodeRequest() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const parameters: AuthorizationConfirmConsentCodeRequestContract = { + consentCode: "theconsentcode" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.confirmConsentCode( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementPostAuthorizationConfirmConsentCodeRequest(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationCreateOrUpdateSample.ts new file mode 100644 index 000000000000..1a82f36465af --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationCreateOrUpdateSample.ts @@ -0,0 +1,89 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates authorization. + * + * @summary Creates or updates authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAADAuthCode.json + */ +async function apiManagementCreateAuthorizationAadAuthCode() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz2"; + const parameters: AuthorizationContract = { + authorizationType: "OAuth2", + oAuth2GrantType: "AuthorizationCode" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization. + * + * @summary Creates or updates authorization. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationAADClientCred.json + */ +async function apiManagementCreateAuthorizationAadClientCred() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithclientcred"; + const authorizationId = "authz1"; + const parameters: AuthorizationContract = { + authorizationType: "OAuth2", + oAuth2GrantType: "AuthorizationCode", + parameters: { + clientId: "", + clientSecret: "" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateAuthorizationAadAuthCode(); + apiManagementCreateAuthorizationAadClientCred(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationDeleteSample.ts new file mode 100644 index 000000000000..f049fbee5467 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes specific Authorization from the Authorization provider. + * + * @summary Deletes specific Authorization from the Authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorization.json + */ +async function apiManagementDeleteAuthorization() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.delete( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteAuthorization(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationGetSample.ts new file mode 100644 index 000000000000..be32aa09673c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationGetSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the authorization specified by its identifier. + * + * @summary Gets the details of the authorization specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorization.json + */ +async function apiManagementGetAuthorization() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorization.get( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorization(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationListByAuthorizationProviderSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationListByAuthorizationProviderSample.ts new file mode 100644 index 000000000000..18367a048a92 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationListByAuthorizationProviderSample.ts @@ -0,0 +1,74 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists a collection of authorization providers defined within a authorization provider. + * + * @summary Lists a collection of authorization providers defined within a authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationsAuthCode.json + */ +async function apiManagementListAuthorizationsAuthCode() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorization.listByAuthorizationProvider( + resourceGroupName, + serviceName, + authorizationProviderId + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists a collection of authorization providers defined within a authorization provider. + * + * @summary Lists a collection of authorization providers defined within a authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationsClientCred.json + */ +async function apiManagementListAuthorizationsClientCred() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithclientcred"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorization.listByAuthorizationProvider( + resourceGroupName, + serviceName, + authorizationProviderId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListAuthorizationsAuthCode(); + apiManagementListAuthorizationsClientCred(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationLoginLinksPostSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationLoginLinksPostSample.ts new file mode 100644 index 000000000000..d82ee1d5c076 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationLoginLinksPostSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationLoginRequestContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets authorization login links. + * + * @summary Gets authorization login links. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationLoginRequest.json + */ +async function apiManagementGetAuthorizationLoginRequest() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const authorizationId = "authz1"; + const parameters: AuthorizationLoginRequestContract = { + postLoginRedirectUrl: "https://www.bing.com/" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationLoginLinks.post( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorizationLoginRequest(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderCreateOrUpdateSample.ts new file mode 100644 index 000000000000..82b92215f73d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderCreateOrUpdateSample.ts @@ -0,0 +1,187 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AuthorizationProviderContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderAADAuthCode.json + */ +async function apiManagementCreateAuthorizationProviderAadAuthCode() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const parameters: AuthorizationProviderContract = { + displayName: "aadwithauthcode", + identityProvider: "aad", + oauth2: { + grantTypes: { + authorizationCode: { + clientId: "", + clientSecret: "", + resourceUri: "https://graph.microsoft.com", + scopes: "User.Read.All Group.Read.All" + } + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderAADClientCred.json + */ +async function apiManagementCreateAuthorizationProviderAadClientCred() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithclientcred"; + const parameters: AuthorizationProviderContract = { + displayName: "aadwithclientcred", + identityProvider: "aad", + oauth2: { + grantTypes: { + authorizationCode: { + resourceUri: "https://graph.microsoft.com", + scopes: "User.Read.All Group.Read.All" + } + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderGenericOAuth2.json + */ +async function apiManagementCreateAuthorizationProviderGenericOAuth2() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "eventbrite"; + const parameters: AuthorizationProviderContract = { + displayName: "eventbrite", + identityProvider: "oauth2", + oauth2: { + grantTypes: { + authorizationCode: { + authorizationUrl: "https://www.eventbrite.com/oauth/authorize", + clientId: "", + clientSecret: "", + refreshUrl: "https://www.eventbrite.com/oauth/token", + scopes: "", + tokenUrl: "https://www.eventbrite.com/oauth/token" + } + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates authorization provider. + * + * @summary Creates or updates authorization provider. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationProviderOOBGoogle.json + */ +async function apiManagementCreateAuthorizationProviderOobGoogle() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "google"; + const parameters: AuthorizationProviderContract = { + displayName: "google", + identityProvider: "google", + oauth2: { + grantTypes: { + authorizationCode: { + clientId: "", + clientSecret: "", + scopes: + "openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email" + } + }, + redirectUrl: + "https://authorization-manager.consent.azure-apim.net/redirect/apim/apimService1" + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.createOrUpdate( + resourceGroupName, + serviceName, + authorizationProviderId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateAuthorizationProviderAadAuthCode(); + apiManagementCreateAuthorizationProviderAadClientCred(); + apiManagementCreateAuthorizationProviderGenericOAuth2(); + apiManagementCreateAuthorizationProviderOobGoogle(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderDeleteSample.ts new file mode 100644 index 000000000000..07df09fdf5d7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes specific authorization provider from the API Management service instance. + * + * @summary Deletes specific authorization provider from the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationProvider.json + */ +async function apiManagementDeleteAuthorizationProvider() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.delete( + resourceGroupName, + serviceName, + authorizationProviderId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteAuthorizationProvider(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderGetSample.ts new file mode 100644 index 000000000000..50b24da54c3c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the authorization provider specified by its identifier. + * + * @summary Gets the details of the authorization provider specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationProvider.json + */ +async function apiManagementGetAuthorizationProvider() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const authorizationProviderId = "aadwithauthcode"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.authorizationProvider.get( + resourceGroupName, + serviceName, + authorizationProviderId + ); + console.log(result); +} + +async function main() { + apiManagementGetAuthorizationProvider(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderListByServiceSample.ts new file mode 100644 index 000000000000..8e52e14dc82e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationProviderListByServiceSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists a collection of authorization providers defined within a service instance. + * + * @summary Lists a collection of authorization providers defined within a service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationProviders.json + */ +async function apiManagementListAuthorizationProviders() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.authorizationProvider.listByService( + resourceGroupName, + serviceName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListAuthorizationProviders(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerCreateOrUpdateSample.ts index c1d72fd06787..bbfb1a8599c5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates new authorization server or updates an existing authorization server. * * @summary Creates new authorization server or updates an existing authorization server. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAuthorizationServer.json */ async function apiManagementCreateAuthorizationServer() { const subscriptionId = @@ -44,7 +44,9 @@ async function apiManagementCreateAuthorizationServer() { resourceOwnerPassword: "pwd", resourceOwnerUsername: "un", supportState: true, - tokenEndpoint: "https://www.contoso.com/oauth2/token" + tokenEndpoint: "https://www.contoso.com/oauth2/token", + useInApiDocumentation: true, + useInTestConsole: false }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerDeleteSample.ts index b9eec707b471..3ead60ddd985 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific authorization server instance. * * @summary Deletes specific authorization server instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteAuthorizationServer.json */ async function apiManagementDeleteAuthorizationServer() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerGetEntityTagSample.ts index a55170446deb..959f296d1087 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the authorizationServer specified by its identifier. * * @summary Gets the entity state (Etag) version of the authorizationServer specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadAuthorizationServer.json */ async function apiManagementHeadAuthorizationServer() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerGetSample.ts index 5d9f2b0ecee9..322be95d80db 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the authorization server specified by its identifier. * * @summary Gets the details of the authorization server specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetAuthorizationServer.json */ async function apiManagementGetAuthorizationServer() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerListByServiceSample.ts index 4aad51bbc493..56d4ccf2e5e3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of authorization servers defined within a service instance. * * @summary Lists a collection of authorization servers defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListAuthorizationServers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListAuthorizationServers.json */ async function apiManagementListAuthorizationServers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerListSecretsSample.ts index 1d5ded6eda8c..6d2fbddadcee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the client secret details of the authorization server. * * @summary Gets the client secret details of the authorization server. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementAuthorizationServerListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementAuthorizationServerListSecrets.json */ async function apiManagementAuthorizationServerListSecrets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerUpdateSample.ts index 37d59c51e3a4..24b94f08763c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/authorizationServerUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the authorization server specified by its identifier. * * @summary Updates the details of the authorization server specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateAuthorizationServer.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateAuthorizationServer.json */ async function apiManagementUpdateAuthorizationServer() { const subscriptionId = @@ -33,7 +33,9 @@ async function apiManagementUpdateAuthorizationServer() { const ifMatch = "*"; const parameters: AuthorizationServerUpdateContract = { clientId: "update", - clientSecret: "updated" + clientSecret: "updated", + useInApiDocumentation: true, + useInTestConsole: false }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendCreateOrUpdateSample.ts index 1488db5f026c..c962b8e6b75f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a backend. * * @summary Creates or Updates a backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateBackendProxyBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateBackendProxyBackend.json */ async function apiManagementCreateBackendProxyBackend() { const subscriptionId = @@ -58,7 +58,7 @@ async function apiManagementCreateBackendProxyBackend() { * This sample demonstrates how to Creates or Updates a backend. * * @summary Creates or Updates a backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateBackendServiceFabric.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateBackendServiceFabric.json */ async function apiManagementCreateBackendServiceFabric() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendDeleteSample.ts index 9d9cfc7f6f19..89e8c3271c29 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified backend. * * @summary Deletes the specified backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteBackend.json */ async function apiManagementDeleteBackend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendGetEntityTagSample.ts index eb4be49112e6..06cc146efc13 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the backend specified by its identifier. * * @summary Gets the entity state (Etag) version of the backend specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadBackend.json */ async function apiManagementHeadBackend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendGetSample.ts index a7e8fa744d06..c2d4ae96f020 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the backend specified by its identifier. * * @summary Gets the details of the backend specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetBackend.json */ async function apiManagementGetBackend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendListByServiceSample.ts index fbd86be3f8d9..0ea9b79265ac 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of backends in the specified service instance. * * @summary Lists a collection of backends in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListBackends.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListBackends.json */ async function apiManagementListBackends() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendReconnectSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendReconnectSample.ts index 0a4583905cb8..a60be7c63a0d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendReconnectSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendReconnectSample.ts @@ -19,10 +19,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. + * This sample demonstrates how to Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. * - * @summary Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementBackendReconnect.json + * @summary Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementBackendReconnect.json */ async function apiManagementBackendReconnect() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendUpdateSample.ts index 91f5812ffcb8..164258fb978d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/backendUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing backend. * * @summary Updates an existing backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateBackend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateBackend.json */ async function apiManagementUpdateBackend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheCreateOrUpdateSample.ts index 80dfddd0ee72..7fa6eb6b20b2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an External Cache to be used in Api Management instance. * * @summary Creates or updates an External Cache to be used in Api Management instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCache.json */ async function apiManagementCreateCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheDeleteSample.ts index 234475555c97..80b4454d8db3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific Cache. * * @summary Deletes specific Cache. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCache.json */ async function apiManagementDeleteCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheGetEntityTagSample.ts index 39dd97e373bd..777ee99d6b6a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Cache specified by its identifier. * * @summary Gets the entity state (Etag) version of the Cache specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCache.json */ async function apiManagementHeadCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheGetSample.ts index d1ba5d2b4731..df653474196e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Cache specified by its identifier. * * @summary Gets the details of the Cache specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCache.json */ async function apiManagementGetCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheListByServiceSample.ts index 632f0ab1f0c9..655ecf451ab5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of all external Caches in the specified service instance. * * @summary Lists a collection of all external Caches in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCaches.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCaches.json */ async function apiManagementListCaches() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheUpdateSample.ts index a445f14edbaa..72414be63f55 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/cacheUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the cache specified by its identifier. * * @summary Updates the details of the cache specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateCache.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateCache.json */ async function apiManagementUpdateCache() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateCreateOrUpdateSample.ts index 1421804d3124..39f489f9dc7f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the certificate being used for authentication with the backend. * * @summary Creates or updates the certificate being used for authentication with the backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCertificate.json */ async function apiManagementCreateCertificate() { const subscriptionId = @@ -50,7 +50,7 @@ async function apiManagementCreateCertificate() { * This sample demonstrates how to Creates or updates the certificate being used for authentication with the backend. * * @summary Creates or updates the certificate being used for authentication with the backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateCertificateWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateCertificateWithKeyVault.json */ async function apiManagementCreateCertificateWithKeyVault() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateDeleteSample.ts index 0b097349d1c1..6a9d5dd55b4d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific certificate. * * @summary Deletes specific certificate. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteCertificate.json */ async function apiManagementDeleteCertificate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateGetEntityTagSample.ts index c39309b3e69b..a10bcb576854 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the certificate specified by its identifier. * * @summary Gets the entity state (Etag) version of the certificate specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadCertificate.json */ async function apiManagementHeadCertificate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateGetSample.ts index fc21d7851011..ae96d2c19d89 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the certificate specified by its identifier. * * @summary Gets the details of the certificate specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCertificate.json */ async function apiManagementGetCertificate() { const subscriptionId = @@ -41,7 +41,7 @@ async function apiManagementGetCertificate() { * This sample demonstrates how to Gets the details of the certificate specified by its identifier. * * @summary Gets the details of the certificate specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetCertificateWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetCertificateWithKeyVault.json */ async function apiManagementGetCertificateWithKeyVault() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateListByServiceSample.ts index d762db61630e..3f53047c01a7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of all certificates in the specified service instance. * * @summary Lists a collection of all certificates in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListCertificates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListCertificates.json */ async function apiManagementListCertificates() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateRefreshSecretSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateRefreshSecretSample.ts index 22ce2ab3821e..2df0975cf3d9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateRefreshSecretSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/certificateRefreshSecretSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to From KeyVault, Refresh the certificate being used for authentication with the backend. * * @summary From KeyVault, Refresh the certificate being used for authentication with the backend. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshCertificate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshCertificate.json */ async function apiManagementRefreshCertificate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemCreateOrUpdateSample.ts index 08356c453abc..e650e8e1978c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new developer portal's content item specified by the provided content type. * * @summary Creates a new developer portal's content item specified by the provided content type. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentTypeContentItem.json */ async function apiManagementCreateContentTypeContentItem() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemDeleteSample.ts index 42e7705f934e..11087f6fc4f8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Removes the specified developer portal's content item. * * @summary Removes the specified developer portal's content item. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentTypeContentItem.json */ async function apiManagementDeleteContentTypeContentItem() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemGetEntityTagSample.ts index 77d57f97c823..ff7b36dcc8fc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. * * @summary Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadContentTypeContentItem.json */ async function apiManagementHeadContentTypeContentItem() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemGetSample.ts index 2098d4d2e646..968f7c3e2f59 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the developer portal's content item specified by its identifier. * * @summary Returns the developer portal's content item specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentTypeContentItem.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentTypeContentItem.json */ async function apiManagementGetContentTypeContentItem() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemListByServiceSample.ts index b320e1704eba..d5684141c4f0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentItemListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists developer portal's content items specified by the provided content type. * * @summary Lists developer portal's content items specified by the provided content type. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypeContentItems.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypeContentItems.json */ async function apiManagementListContentTypeContentItems() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeCreateOrUpdateSample.ts index 12ac2145bf4c..1bd7e4b5480e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. * * @summary Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateContentType.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateContentType.json */ async function apiManagementCreateContentType() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeDeleteSample.ts index f9ab5634bac1..06a31ac831f8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. * * @summary Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteContentType.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteContentType.json */ async function apiManagementDeleteContentType() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeGetSample.ts index 5cc517e6f673..704be3e32425 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. * * @summary Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetContentType.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetContentType.json */ async function apiManagementGetContentType() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeListByServiceSample.ts index 6f64bdc04a3c..bfa265259683 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/contentTypeListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. * * @summary Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListContentTypes.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListContentTypes.json */ async function apiManagementListContentTypes() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsCreateOrUpdateSample.ts index da3a0118eb53..fc1b1af5df15 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update Delegation settings. * * @summary Create or Update Delegation settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutDelegation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutDelegation.json */ async function apiManagementPortalSettingsUpdateDelegation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsGetEntityTagSample.ts index 43262e649569..b475a59e8cae 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the DelegationSettings. * * @summary Gets the entity state (Etag) version of the DelegationSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDelegationSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDelegationSettings.json */ async function apiManagementHeadDelegationSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsGetSample.ts index ab2c51f8e4ea..75b202cf5f2d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get Delegation Settings for the Portal. * * @summary Get Delegation Settings for the Portal. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetDelegation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetDelegation.json */ async function apiManagementPortalSettingsGetDelegation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsListSecretsSample.ts index 93dcd4420b44..e25d4dbb0799 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the secret validation key of the DelegationSettings. * * @summary Gets the secret validation key of the DelegationSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsPortalSettingsValidationKey.json */ async function apiManagementListSecretsPortalSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsUpdateSample.ts index 6b7497c5e9f4..7b55289658ab 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/delegationSettingsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update Delegation settings. * * @summary Update Delegation settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateDelegation.json */ async function apiManagementPortalSettingsUpdateDelegation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesGetByNameSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesGetByNameSample.ts index a365b17d3dd2..337137849a4c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesGetByNameSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesGetByNameSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get soft-deleted Api Management Service by name. * * @summary Get soft-deleted Api Management Service by name. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDeletedServiceByName.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDeletedServiceByName.json */ async function apiManagementGetDeletedServiceByName() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesListBySubscriptionSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesListBySubscriptionSample.ts index 26fb204b25a3..5eeb2e8df550 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesListBySubscriptionSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all soft-deleted services available for undelete for the given subscription. * * @summary Lists all soft-deleted services available for undelete for the given subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesListBySubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesListBySubscription.json */ async function apiManagementDeletedServicesListBySubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesPurgeSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesPurgeSample.ts index 799465e2c42f..a94e70bc93a6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesPurgeSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/deletedServicesPurgeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Purges Api Management Service (deletes it with no option to undelete). * * @summary Purges Api Management Service (deletes it with no option to undelete). - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletedServicesPurge.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletedServicesPurge.json */ async function apiManagementDeletedServicesPurge() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticCreateOrUpdateSample.ts index 8b82c5fd875f..70a9099bd2df 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Diagnostic or updates an existing one. * * @summary Creates a new Diagnostic or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDiagnostic.json */ async function apiManagementCreateDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticDeleteSample.ts index 84ae8481f6c8..bf4f61249fba 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Diagnostic. * * @summary Deletes the specified Diagnostic. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDiagnostic.json */ async function apiManagementDeleteDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticGetEntityTagSample.ts index 1f431c404c26..bf02e420f049 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Diagnostic specified by its identifier. * * @summary Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDiagnostic.json */ async function apiManagementHeadDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticGetSample.ts index a48ee1b7230a..2f03f3c2761e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Diagnostic specified by its identifier. * * @summary Gets the details of the Diagnostic specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDiagnostic.json */ async function apiManagementGetDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticListByServiceSample.ts index 25445801bc99..af3227d1b4ee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all diagnostics of the API Management service instance. * * @summary Lists all diagnostics of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListDiagnostics.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDiagnostics.json */ async function apiManagementListDiagnostics() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticUpdateSample.ts index 15b771197f88..25129fa4da7f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/diagnosticUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the Diagnostic specified by its identifier. * * @summary Updates the details of the Diagnostic specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateDiagnostic.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDiagnostic.json */ async function apiManagementUpdateDiagnostic() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationCreateOrUpdateSample.ts new file mode 100644 index 000000000000..c93160bb7a2a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationCreateOrUpdateSample.ts @@ -0,0 +1,52 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DocumentationContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a new Documentation or updates an existing one. + * + * @summary Creates a new Documentation or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateDocumentation.json + */ +async function apiManagementCreateDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const parameters: DocumentationContract = { + content: "content", + title: "Title" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.createOrUpdate( + resourceGroupName, + serviceName, + documentationId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationDeleteSample.ts new file mode 100644 index 000000000000..53e3bffd4cf8 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified Documentation from an API. + * + * @summary Deletes the specified Documentation from an API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteDocumentation.json + */ +async function apiManagementDeleteDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.delete( + resourceGroupName, + serviceName, + documentationId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetEntityTagSample.ts new file mode 100644 index 000000000000..759b162c1923 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the Documentation by its identifier. + * + * @summary Gets the entity state (Etag) version of the Documentation by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadDocumentation.json + */ +async function apiManagementHeadDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.getEntityTag( + resourceGroupName, + serviceName, + documentationId + ); + console.log(result); +} + +async function main() { + apiManagementHeadDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetSample.ts new file mode 100644 index 000000000000..36c1dee0d237 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the Documentation specified by its identifier. + * + * @summary Gets the details of the Documentation specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetDocumentation.json + */ +async function apiManagementGetDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.get( + resourceGroupName, + serviceName, + documentationId + ); + console.log(result); +} + +async function main() { + apiManagementGetDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationListByServiceSample.ts new file mode 100644 index 000000000000..81d580cba1c0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationListByServiceSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all Documentations of the API Management service instance. + * + * @summary Lists all Documentations of the API Management service instance. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListDocumentations.json + */ +async function apiManagementListApis() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.documentation.listByService( + resourceGroupName, + serviceName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListApis(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationUpdateSample.ts new file mode 100644 index 000000000000..75c50bab8387 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/documentationUpdateSample.ts @@ -0,0 +1,54 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DocumentationUpdateContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the details of the Documentation for an API specified by its identifier. + * + * @summary Updates the details of the Documentation for an API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateDocumentation.json + */ +async function apiManagementUpdateDocumentation() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const documentationId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const parameters: DocumentationUpdateContract = { + content: "content updated", + title: "Title updated" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.documentation.update( + resourceGroupName, + serviceName, + documentationId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateDocumentation(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateCreateOrUpdateSample.ts index 25a48d5b8100..7728b147c808 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an Email Template. * * @summary Updates an Email Template. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTemplate.json */ async function apiManagementCreateTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateDeleteSample.ts index c5a8387aa313..b71dcb4448f2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset the Email Template to default template provided by the API Management service instance. * * @summary Reset the Email Template to default template provided by the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTemplate.json */ async function apiManagementDeleteTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateGetEntityTagSample.ts index 7d13e99e5a88..16ef6774de91 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the email template specified by its identifier. * * @summary Gets the entity state (Etag) version of the email template specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadEmailTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadEmailTemplate.json */ async function apiManagementHeadEmailTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateGetSample.ts index b74fe10d9164..aeca9f9c866f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the email template specified by its identifier. * * @summary Gets the details of the email template specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTemplate.json */ async function apiManagementGetTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateListByServiceSample.ts index 6fef3382f48e..63bc176c0c17 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all email templates * * @summary Gets all email templates - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTemplates.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTemplates.json */ async function apiManagementListTemplates() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateUpdateSample.ts index 700b6bed9640..8d8bc4674f2a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/emailTemplateUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates API Management email template * * @summary Updates API Management email template - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTemplate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTemplate.json */ async function apiManagementUpdateTemplate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiCreateOrUpdateSample.ts index f41c6128fe13..18d91215c721 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Adds an API to the specified Gateway. * * @summary Adds an API to the specified Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayApi.json */ async function apiManagementCreateGatewayApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiDeleteSample.ts index 899a7bd9b856..545a5fb3fa6c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified API from the specified Gateway. * * @summary Deletes the specified API from the specified Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayApi.json */ async function apiManagementDeleteGatewayApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiGetEntityTagSample.ts index 562813d418fd..c76d571bda2b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that API entity specified by identifier is associated with the Gateway entity. * * @summary Checks that API entity specified by identifier is associated with the Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayApi.json */ async function apiManagementHeadGatewayApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiListByServiceSample.ts index 1d9798925bd3..219156cf842f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayApiListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of the APIs associated with a gateway. * * @summary Lists a collection of the APIs associated with a gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayApis.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayApis.json */ async function apiManagementListGatewayApis() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityCreateOrUpdateSample.ts index e2761384da1f..7f02030ccead 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Assign Certificate entity to Gateway entity as Certificate Authority. * * @summary Assign Certificate entity to Gateway entity as Certificate Authority. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayCertificateAuthority.json */ async function apiManagementCreateGatewayCertificateAuthority() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityDeleteSample.ts index eabcad1dd9f6..64119cc426fe 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Remove relationship between Certificate Authority and Gateway entity. * * @summary Remove relationship between Certificate Authority and Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayCertificateAuthority.json */ async function apiManagementDeleteGatewayCertificateAuthority() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityGetEntityTagSample.ts index 4484123c9a08..ad89c233c59d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. * * @summary Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayCertificateAuthority.json */ async function apiManagementHeadGatewayCertificateAuthority() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityGetSample.ts index eb8dcb682e6c..91b55f332cfd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get assigned Gateway Certificate Authority details. * * @summary Get assigned Gateway Certificate Authority details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayCertificateAuthority.json */ async function apiManagementGetGatewayCertificateAuthority() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityListByServiceSample.ts index 9bf006f4ef1d..46ca481ae49a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCertificateAuthorityListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of Certificate Authorities for the specified Gateway entity. * * @summary Lists the collection of Certificate Authorities for the specified Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayCertificateAuthorities.json */ async function apiManagementListGatewaycertificateAuthorities() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCreateOrUpdateSample.ts index 4e557770f417..f9591b69eda0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a Gateway to be used in Api Management instance. * * @summary Creates or updates a Gateway to be used in Api Management instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGateway.json */ async function apiManagementCreateGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayDeleteSample.ts index 14345bbcae67..1bea683bd048 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific Gateway. * * @summary Deletes specific Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGateway.json */ async function apiManagementDeleteGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGenerateTokenSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGenerateTokenSample.ts index a0fb08fd2d45..80a2efeba293 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGenerateTokenSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGenerateTokenSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Shared Access Authorization Token for the gateway. * * @summary Gets the Shared Access Authorization Token for the gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayGenerateToken.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayGenerateToken.json */ async function apiManagementGatewayGenerateToken() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGetEntityTagSample.ts index 8eb8a40c7e77..0f48e7d8330d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Gateway specified by its identifier. * * @summary Gets the entity state (Etag) version of the Gateway specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGateway.json */ async function apiManagementHeadGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGetSample.ts index d0bfc8e5a413..c1bdd463a2c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Gateway specified by its identifier. * * @summary Gets the details of the Gateway specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGateway.json */ async function apiManagementGetGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationCreateOrUpdateSample.ts index 4fe2b387bbd5..1639e06ed352 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates of updates hostname configuration for a Gateway. * * @summary Creates of updates hostname configuration for a Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGatewayHostnameConfiguration.json */ async function apiManagementCreateGatewayHostnameConfiguration() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationDeleteSample.ts index cd7a32f081c6..54c551d5ca3f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified hostname configuration from the specified Gateway. * * @summary Deletes the specified hostname configuration from the specified Gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGatewayHostnameConfiguration.json */ async function apiManagementDeleteGatewayHostnameConfiguration() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationGetEntityTagSample.ts index 1e4ffac6756d..3b69b1ded4ac 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. * * @summary Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGatewayHostnameConfiguration.json */ async function apiManagementHeadGatewayHostnameConfiguration() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationGetSample.ts index 63375aec8b24..5d4c94cf881c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of a hostname configuration * * @summary Get details of a hostname configuration - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGatewayHostnameConfiguration.json */ async function apiManagementGetGatewayHostnameConfiguration() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationListByServiceSample.ts index 4a9079f3766d..601b7cdf9380 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayHostnameConfigurationListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of hostname configurations for the specified gateway. * * @summary Lists the collection of hostname configurations for the specified gateway. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGatewayHostnameConfigurations.json */ async function apiManagementListGatewayHostnameConfigurations() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayListByServiceSample.ts index d68be8fbc608..c46a48468460 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of gateways registered with service instance. * * @summary Lists a collection of gateways registered with service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGateways.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGateways.json */ async function apiManagementListGateways() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayListKeysSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayListKeysSample.ts index 6460cfc2da1a..5336e78a40e4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayListKeysSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayListKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves gateway keys. * * @summary Retrieves gateway keys. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayListKeys.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayListKeys.json */ async function apiManagementGatewayListKeys() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayRegenerateKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayRegenerateKeySample.ts index 49d61cfaa3c9..b926cf8923ca 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayRegenerateKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayRegenerateKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates specified gateway key invalidating any tokens created with it. * * @summary Regenerates specified gateway key invalidating any tokens created with it. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGatewayRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGatewayRegenerateKey.json */ async function apiManagementGatewayRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayUpdateSample.ts index d4e982ae6b86..42aac3e1f49b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/gatewayUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the gateway specified by its identifier. * * @summary Updates the details of the gateway specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGateway.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGateway.json */ async function apiManagementUpdateGateway() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaCreateOrUpdateSample.ts index 28590fce8fc1..32ac578cfd09 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates new or updates existing specified Schema of the API Management service instance. * * @summary Creates new or updates existing specified Schema of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGlobalSchema1.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGlobalSchema1.json */ async function apiManagementCreateSchema1() { const subscriptionId = @@ -51,7 +51,7 @@ async function apiManagementCreateSchema1() { * This sample demonstrates how to Creates new or updates existing specified Schema of the API Management service instance. * * @summary Creates new or updates existing specified Schema of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGlobalSchema2.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGlobalSchema2.json */ async function apiManagementCreateSchema2() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaDeleteSample.ts index d0bfb3b29843..5dbe2be68ada 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific Schema. * * @summary Deletes specific Schema. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGlobalSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGlobalSchema.json */ async function apiManagementDeleteSchema() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetEntityTagSample.ts index a4dbbaca1902..2a51c0f0c444 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Schema specified by its identifier. * * @summary Gets the entity state (Etag) version of the Schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGlobalSchema.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGlobalSchema.json */ async function apiManagementHeadApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetSample.ts index 98201b007359..42db81867552 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Schema specified by its identifier. * * @summary Gets the details of the Schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGlobalSchema1.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGlobalSchema1.json */ async function apiManagementGetSchema1() { const subscriptionId = @@ -41,7 +41,7 @@ async function apiManagementGetSchema1() { * This sample demonstrates how to Gets the details of the Schema specified by its identifier. * * @summary Gets the details of the Schema specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGlobalSchema2.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGlobalSchema2.json */ async function apiManagementGetSchema2() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaListByServiceSample.ts index 5d65b70134fb..ccf80484dc1b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/globalSchemaListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of schemas registered with service instance. * * @summary Lists a collection of schemas registered with service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGlobalSchemas.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGlobalSchemas.json */ async function apiManagementListSchemas() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverCreateOrUpdateSample.ts new file mode 100644 index 000000000000..0be021db2d26 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverCreateOrUpdateSample.ts @@ -0,0 +1,55 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ResolverContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a new resolver in the GraphQL API or updates an existing one. + * + * @summary Creates a new resolver in the GraphQL API or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolver.json + */ +async function apiManagementCreateGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "someAPI"; + const resolverId = "newResolver"; + const parameters: ResolverContract = { + path: "Query/users", + description: "A GraphQL Resolver example", + displayName: "Query Users" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.createOrUpdate( + resourceGroupName, + serviceName, + apiId, + resolverId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverDeleteSample.ts new file mode 100644 index 000000000000..1245129ed7b1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified resolver in the GraphQL API. + * + * @summary Deletes the specified resolver in the GraphQL API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolver.json + */ +async function apiManagementDeleteGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const resolverId = "57d2ef278aa04f0ad01d6cdc"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.delete( + resourceGroupName, + serviceName, + apiId, + resolverId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetEntityTagSample.ts new file mode 100644 index 000000000000..b731793feb11 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetEntityTagSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolver.json + */ +async function apiManagementHeadGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const resolverId = "57d2ef278aa04f0ad01d6cdc"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.getEntityTag( + resourceGroupName, + serviceName, + apiId, + resolverId + ); + console.log(result); +} + +async function main() { + apiManagementHeadGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetSample.ts new file mode 100644 index 000000000000..465795df47aa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverGetSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the GraphQL API Resolver specified by its identifier. + * + * @summary Gets the details of the GraphQL API Resolver specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolver.json + */ +async function apiManagementGetGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const resolverId = "57d2ef278aa04f0ad01d6cdc"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.get( + resourceGroupName, + serviceName, + apiId, + resolverId + ); + console.log(result); +} + +async function main() { + apiManagementGetGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverListByApiSample.ts new file mode 100644 index 000000000000..214ff987de36 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverListByApiSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists a collection of the resolvers for the specified GraphQL API. + * + * @summary Lists a collection of the resolvers for the specified GraphQL API. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolvers.json + */ +async function apiManagementListGraphQlApiResolvers() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "57d2ef278aa04f0888cba3f3"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.graphQLApiResolver.listByApi( + resourceGroupName, + serviceName, + apiId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListGraphQlApiResolvers(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyCreateOrUpdateSample.ts new file mode 100644 index 000000000000..a5d83821ea5a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyCreateOrUpdateSample.ts @@ -0,0 +1,63 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PolicyContract, + GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates policy configuration for the GraphQL API Resolver level. + * + * @summary Creates or updates policy configuration for the GraphQL API Resolver level. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGraphQLApiResolverPolicy.json + */ +async function apiManagementCreateGraphQlApiResolverPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "5600b57e7e8880006a040001"; + const resolverId = "5600b57e7e8880006a080001"; + const policyId = "policy"; + const ifMatch = "*"; + const parameters: PolicyContract = { + format: "xml", + value: + 'GET/api/users' + }; + const options: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams = { + ifMatch + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.createOrUpdate( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + parameters, + options + ); + console.log(result); +} + +async function main() { + apiManagementCreateGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyDeleteSample.ts new file mode 100644 index 000000000000..8d1d88254c10 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyDeleteSample.ts @@ -0,0 +1,50 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the policy configuration at the GraphQL Api Resolver. + * + * @summary Deletes the policy configuration at the GraphQL Api Resolver. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGraphQLApiResolverPolicy.json + */ +async function apiManagementDeleteGraphQlApiResolverPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "testapi"; + const resolverId = "testResolver"; + const policyId = "policy"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.delete( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetEntityTagSample.ts new file mode 100644 index 000000000000..9833f1305764 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetEntityTagSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGraphQLApiResolverPolicy.json + */ +async function apiManagementHeadGraphQlApiResolverPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "5600b539c53f5b0062040001"; + const resolverId = "5600b53ac53f5b0062080006"; + const policyId = "policy"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.getEntityTag( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId + ); + console.log(result); +} + +async function main() { + apiManagementHeadGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetSample.ts new file mode 100644 index 000000000000..97caed6b595f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyGetSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the policy configuration at the GraphQL API Resolver level. + * + * @summary Get the policy configuration at the GraphQL API Resolver level. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGraphQLApiResolverPolicy.json + */ +async function apiManagementGetGraphQlApiResolverPolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "5600b539c53f5b0062040001"; + const resolverId = "5600b53ac53f5b0062080006"; + const policyId = "policy"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolverPolicy.get( + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId + ); + console.log(result); +} + +async function main() { + apiManagementGetGraphQlApiResolverPolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyListByResolverSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyListByResolverSample.ts new file mode 100644 index 000000000000..d5197b45a4a2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverPolicyListByResolverSample.ts @@ -0,0 +1,49 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the list of policy configuration at the GraphQL API Resolver level. + * + * @summary Get the list of policy configuration at the GraphQL API Resolver level. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGraphQLApiResolverPolicies.json + */ +async function apiManagementListGraphQlApiResolverPolicies() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "599e2953193c3c0bd0b3e2fa"; + const resolverId = "599e29ab193c3c0bd0b3e2fb"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.graphQLApiResolverPolicy.listByResolver( + resourceGroupName, + serviceName, + apiId, + resolverId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementListGraphQlApiResolverPolicies(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverUpdateSample.ts new file mode 100644 index 000000000000..8f314c52b3b0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/graphQlApiResolverUpdateSample.ts @@ -0,0 +1,57 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ResolverUpdateContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the details of the resolver in the GraphQL API specified by its identifier. + * + * @summary Updates the details of the resolver in the GraphQL API specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGraphQLApiResolver.json + */ +async function apiManagementUpdateGraphQlApiResolver() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const apiId = "echo-api"; + const resolverId = "resolverId"; + const ifMatch = "*"; + const parameters: ResolverUpdateContract = { + path: "Query/adminUsers", + description: "A GraphQL Resolver example", + displayName: "Query AdminUsers" + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.graphQLApiResolver.update( + resourceGroupName, + serviceName, + apiId, + resolverId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateGraphQlApiResolver(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupCreateOrUpdateSample.ts index 14d8c9bb660a..9f2b325d87e5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a group. * * @summary Creates or Updates a group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroup.json */ async function apiManagementCreateGroup() { const subscriptionId = @@ -46,7 +46,7 @@ async function apiManagementCreateGroup() { * This sample demonstrates how to Creates or Updates a group. * * @summary Creates or Updates a group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroupExternal.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroupExternal.json */ async function apiManagementCreateGroupExternal() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupDeleteSample.ts index c99ac256df95..48247657e14d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific group of the API Management service instance. * * @summary Deletes specific group of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroup.json */ async function apiManagementDeleteGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupGetEntityTagSample.ts index 0e9043a92159..a68c30cc8bfa 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the group specified by its identifier. * * @summary Gets the entity state (Etag) version of the group specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroup.json */ async function apiManagementHeadGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupGetSample.ts index 2c04b35b5214..954018f98006 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the group specified by its identifier. * * @summary Gets the details of the group specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetGroup.json */ async function apiManagementGetGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupListByServiceSample.ts index 48d29fcda626..898b9bd81891 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of groups defined within a service instance. * * @summary Lists a collection of groups defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroups.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroups.json */ async function apiManagementListGroups() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUpdateSample.ts index aab3d26d2452..0b10d48bb5f0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the group specified by its identifier. * * @summary Updates the details of the group specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateGroup.json */ async function apiManagementUpdateGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserCheckEntityExistsSample.ts index 8df63c77fcce..80e1301ef726 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that user entity specified by identifier is associated with the group entity. * * @summary Checks that user entity specified by identifier is associated with the group entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadGroupUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadGroupUser.json */ async function apiManagementHeadGroupUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserCreateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserCreateSample.ts index 7a649434016b..478e1258ad62 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserCreateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Add existing user to existing group * * @summary Add existing user to existing group - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateGroupUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateGroupUser.json */ async function apiManagementCreateGroupUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserDeleteSample.ts index 27a1a5377cac..0eaf12e68670 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Remove existing user from existing group. * * @summary Remove existing user from existing group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteGroupUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteGroupUser.json */ async function apiManagementDeleteGroupUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserListSample.ts index 581531d9d333..fd400a0f3b46 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/groupUserListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of user entities associated with the group. * * @summary Lists a collection of user entities associated with the group. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListGroupUsers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListGroupUsers.json */ async function apiManagementListGroupUsers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderCreateOrUpdateSample.ts index cbacbaba20b1..ecfeceb3981f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates the IdentityProvider configuration. * * @summary Creates or Updates the IdentityProvider configuration. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateIdentityProvider.json */ async function apiManagementCreateIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderDeleteSample.ts index 2d9087a20548..71a8daa2cbde 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified identity provider configuration. * * @summary Deletes the specified identity provider configuration. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteIdentityProvider.json */ async function apiManagementDeleteIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderGetEntityTagSample.ts index d9c6c10856e0..09632aa479ab 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the identityProvider specified by its identifier. * * @summary Gets the entity state (Etag) version of the identityProvider specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadIdentityProvider.json */ async function apiManagementHeadIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderGetSample.ts index fc65ac04683d..8b752758b132 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the configuration details of the identity Provider configured in specified service instance. * * @summary Gets the configuration details of the identity Provider configured in specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIdentityProvider.json */ async function apiManagementGetIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderListByServiceSample.ts index 3b0a38c4131a..5bb324ed67cf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of Identity Provider configured in the specified service instance. * * @summary Lists a collection of Identity Provider configured in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIdentityProviders.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIdentityProviders.json */ async function apiManagementListIdentityProviders() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderListSecretsSample.ts index f9a071831cec..70a322ad24bf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the client secret details of the Identity Provider. * * @summary Gets the client secret details of the Identity Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementIdentityProviderListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementIdentityProviderListSecrets.json */ async function apiManagementIdentityProviderListSecrets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderUpdateSample.ts index d5faf4d1e00e..0baf25c1a6bb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/identityProviderUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing IdentityProvider configuration. * * @summary Updates an existing IdentityProvider configuration. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateIdentityProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateIdentityProvider.json */ async function apiManagementUpdateIdentityProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/issueGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/issueGetSample.ts index e693fc656269..9402037685c9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/issueGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/issueGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets API Management issue details * * @summary Gets API Management issue details - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetIssue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetIssue.json */ async function apiManagementGetIssue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/issueListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/issueListByServiceSample.ts index 24a34781d667..e03dde4ead14 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/issueListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/issueListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of issues in the specified service instance. * * @summary Lists a collection of issues in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListIssues.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListIssues.json */ async function apiManagementListIssues() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerCreateOrUpdateSample.ts index 46dd826c83e4..c3c5cb5ef180 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a logger. * * @summary Creates or Updates a logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateAILogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateAILogger.json */ async function apiManagementCreateAiLogger() { const subscriptionId = @@ -47,7 +47,7 @@ async function apiManagementCreateAiLogger() { * This sample demonstrates how to Creates or Updates a logger. * * @summary Creates or Updates a logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateEHLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateEHLogger.json */ async function apiManagementCreateEhLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerDeleteSample.ts index 794c31d84b56..14c89372bfbb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified logger. * * @summary Deletes the specified logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteLogger.json */ async function apiManagementDeleteLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerGetEntityTagSample.ts index 670019840c26..c2efb9adfe7f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the logger specified by its identifier. * * @summary Gets the entity state (Etag) version of the logger specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadLogger.json */ async function apiManagementHeadLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerGetSample.ts index cafb0fb2cbc1..319d80a96ad3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the logger specified by its identifier. * * @summary Gets the details of the logger specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetLogger.json */ async function apiManagementGetLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerListByServiceSample.ts index 0c6336f9c986..8e8d29247d7d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of loggers in the specified service instance. * * @summary Lists a collection of loggers in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListLoggers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListLoggers.json */ async function apiManagementListLoggers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerUpdateSample.ts index 72650f7bd03d..7bec1a7e2aed 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/loggerUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing logger. * * @summary Updates an existing logger. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateLogger.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateLogger.json */ async function apiManagementUpdateLogger() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueCreateOrUpdateSample.ts index e4728768b842..b664bf11298b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates named value. * * @summary Creates or updates named value. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNamedValue.json */ async function apiManagementCreateNamedValue() { const subscriptionId = @@ -51,7 +51,7 @@ async function apiManagementCreateNamedValue() { * This sample demonstrates how to Creates or updates named value. * * @summary Creates or updates named value. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNamedValueWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNamedValueWithKeyVault.json */ async function apiManagementCreateNamedValueWithKeyVault() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueDeleteSample.ts index c542a56e1448..c912a4917fb8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific named value from the API Management service instance. * * @summary Deletes specific named value from the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNamedValue.json */ async function apiManagementDeleteNamedValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueGetEntityTagSample.ts index 45214616adb9..684c6668907c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the named value specified by its identifier. * * @summary Gets the entity state (Etag) version of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNamedValue.json */ async function apiManagementHeadNamedValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueGetSample.ts index b0b19cd67c60..5d09d87343c4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the named value specified by its identifier. * * @summary Gets the details of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNamedValue.json */ async function apiManagementGetNamedValue() { const subscriptionId = @@ -41,7 +41,7 @@ async function apiManagementGetNamedValue() { * This sample demonstrates how to Gets the details of the named value specified by its identifier. * * @summary Gets the details of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNamedValueWithKeyVault.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNamedValueWithKeyVault.json */ async function apiManagementGetNamedValueWithKeyVault() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueListByServiceSample.ts index e1bde101234d..e05a515d0cd9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of named values defined within a service instance. * * @summary Lists a collection of named values defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNamedValues.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNamedValues.json */ async function apiManagementListNamedValues() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueListValueSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueListValueSample.ts index f63ea27fc6f4..7315ca2e36fd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueListValueSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueListValueSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the secret of the named value specified by its identifier. * * @summary Gets the secret of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementNamedValueListValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementNamedValueListValue.json */ async function apiManagementNamedValueListValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueRefreshSecretSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueRefreshSecretSample.ts index dd2c35ffe276..d8b65d0629f4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueRefreshSecretSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueRefreshSecretSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Refresh the secret of the named value specified by its identifier. * * @summary Refresh the secret of the named value specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementRefreshNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementRefreshNamedValue.json */ async function apiManagementRefreshNamedValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueUpdateSample.ts index ec5e0f42cdac..9fd0bbc236ff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/namedValueUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the specific named value. * * @summary Updates the specific named value. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateNamedValue.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateNamedValue.json */ async function apiManagementUpdateNamedValue() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/networkStatusListByLocationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/networkStatusListByLocationSample.ts index d0b5da3046fc..dcbf086b6585 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/networkStatusListByLocationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/networkStatusListByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. * * @summary Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatusByLocation.json */ async function apiManagementServiceGetNetworkStatusByLocation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/networkStatusListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/networkStatusListByServiceSample.ts index f736a9736d07..48fb6a23d155 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/networkStatusListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/networkStatusListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. * * @summary Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetNetworkStatus.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetNetworkStatus.json */ async function apiManagementServiceGetNetworkStatus() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationCreateOrUpdateSample.ts index 4e699f89a4e6..95fa2dd5381c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update API Management publisher notification. * * @summary Create or Update API Management publisher notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotification.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotification.json */ async function apiManagementCreateNotification() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationGetSample.ts index 52c87f751c63..2a08272429b9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Notification specified by its identifier. * * @summary Gets the details of the Notification specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetNotification.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetNotification.json */ async function apiManagementGetNotification() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationListByServiceSample.ts index c36787bfa5fa..95e627c3ccee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of properties defined within a service instance. * * @summary Lists a collection of properties defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotifications.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotifications.json */ async function apiManagementListNotifications() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailCheckEntityExistsSample.ts index b1d98fee8566..4441a393355a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Determine if Notification Recipient Email subscribed to the notification. * * @summary Determine if Notification Recipient Email subscribed to the notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientEmail.json */ async function apiManagementHeadNotificationRecipientEmail() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailCreateOrUpdateSample.ts index bf3779883a7c..023934f6b822 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Adds the Email address to the list of Recipients for the Notification. * * @summary Adds the Email address to the list of Recipients for the Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientEmail.json */ async function apiManagementCreateNotificationRecipientEmail() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailDeleteSample.ts index 515d9ebfc763..50dfa04d1459 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Removes the email from the list of Notification. * * @summary Removes the email from the list of Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientEmail.json */ async function apiManagementDeleteNotificationRecipientEmail() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailListByNotificationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailListByNotificationSample.ts index 0f8b9a13322b..9fff72cb91b0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailListByNotificationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientEmailListByNotificationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of the Notification Recipient Emails subscribed to a notification. * * @summary Gets the list of the Notification Recipient Emails subscribed to a notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientEmails.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientEmails.json */ async function apiManagementListNotificationRecipientEmails() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserCheckEntityExistsSample.ts index bff56e2f3393..bb3198fff996 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Determine if the Notification Recipient User is subscribed to the notification. * * @summary Determine if the Notification Recipient User is subscribed to the notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadNotificationRecipientUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadNotificationRecipientUser.json */ async function apiManagementHeadNotificationRecipientUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserCreateOrUpdateSample.ts index 6eea5306df2a..ecd636d6d144 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Adds the API Management User to the list of Recipients for the Notification. * * @summary Adds the API Management User to the list of Recipients for the Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateNotificationRecipientUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateNotificationRecipientUser.json */ async function apiManagementCreateNotificationRecipientUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserDeleteSample.ts index 1129e240c355..4b9a9cffdc73 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Removes the API Management user from the list of Notification. * * @summary Removes the API Management user from the list of Notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteNotificationRecipientUser.json */ async function apiManagementDeleteNotificationRecipientUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserListByNotificationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserListByNotificationSample.ts index 574c765008d7..896b3fa1229d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserListByNotificationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/notificationRecipientUserListByNotificationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of the Notification Recipient User subscribed to the notification. * * @summary Gets the list of the Notification Recipient User subscribed to the notification. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListNotificationRecipientUsers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListNotificationRecipientUsers.json */ async function apiManagementListNotificationRecipientUsers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderCreateOrUpdateSample.ts index de581f2a8ecc..d3b7b73512a3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the OpenID Connect Provider. * * @summary Creates or updates the OpenID Connect Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateOpenIdConnectProvider.json */ async function apiManagementCreateOpenIdConnectProvider() { const subscriptionId = @@ -34,7 +34,9 @@ async function apiManagementCreateOpenIdConnectProvider() { clientId: "oidprovidertemplate3", clientSecret: "x", displayName: "templateoidprovider3", - metadataEndpoint: "https://oidprovider-template3.net" + metadataEndpoint: "https://oidprovider-template3.net", + useInApiDocumentation: true, + useInTestConsole: false }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderDeleteSample.ts index 00fd2ff35c08..851ef6e96bae 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific OpenID Connect Provider of the API Management service instance. * * @summary Deletes specific OpenID Connect Provider of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteOpenIdConnectProvider.json */ async function apiManagementDeleteOpenIdConnectProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderGetEntityTagSample.ts index 2e136906617b..3fad780de809 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. * * @summary Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadOpenIdConnectProvider.json */ async function apiManagementHeadOpenIdConnectProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderGetSample.ts index c239d50c342e..d5b66b9273cf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets specific OpenID Connect Provider without secrets. * * @summary Gets specific OpenID Connect Provider without secrets. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetOpenIdConnectProvider.json */ async function apiManagementGetOpenIdConnectProvider() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderListByServiceSample.ts index c35d3cae2410..12ffc8b82acb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists of all the OpenId Connect Providers. * * @summary Lists of all the OpenId Connect Providers. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListOpenIdConnectProviders.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListOpenIdConnectProviders.json */ async function apiManagementListOpenIdConnectProviders() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderListSecretsSample.ts index 97a65bfddce9..d95e052fdf92 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the client secret details of the OpenID Connect Provider. * * @summary Gets the client secret details of the OpenID Connect Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementOpenidConnectProviderListSecrets.json */ async function apiManagementOpenidConnectProviderListSecrets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderUpdateSample.ts index 2b8e3c84887e..fd234805fd9b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/openIdConnectProviderUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the specific OpenID Connect Provider. * * @summary Updates the specific OpenID Connect Provider. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateOpenIdConnectProvider.json */ async function apiManagementUpdateOpenIdConnectProvider() { const subscriptionId = @@ -32,7 +32,9 @@ async function apiManagementUpdateOpenIdConnectProvider() { const opid = "templateOpenIdConnect2"; const ifMatch = "*"; const parameters: OpenidConnectProviderUpdateContract = { - clientSecret: "updatedsecret" + clientSecret: "updatedsecret", + useInApiDocumentation: true, + useInTestConsole: false }; const credential = new DefaultAzureCredential(); const client = new ApiManagementClient(credential, subscriptionId); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/operationListByTagsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/operationListByTagsSample.ts index 12d40b32889d..dc1f21a02321 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/operationListByTagsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/operationListByTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of operations associated with tags. * * @summary Lists a collection of operations associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationsByTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationsByTags.json */ async function apiManagementListApiOperationsByTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/outboundNetworkDependenciesEndpointsListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/outboundNetworkDependenciesEndpointsListByServiceSample.ts index 9c7d979b6429..7898f0ffe380 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/outboundNetworkDependenciesEndpointsListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/outboundNetworkDependenciesEndpointsListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the network endpoints of all outbound dependencies of a ApiManagement service. * * @summary Gets the network endpoints of all outbound dependencies of a ApiManagement service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementServiceGetOutboundNetworkDependenciesEndpoints.json */ async function apiManagementServiceGetOutboundNetworkDependenciesEndpoints() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/performConnectivityCheckAsyncSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/performConnectivityCheckAsyncSample.ts index b12ba01c2e37..76d71f8fae04 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/performConnectivityCheckAsyncSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/performConnectivityCheckAsyncSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. * * @summary Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPerformConnectivityCheckHttpConnect.json */ async function httpConnectivityCheck() { const subscriptionId = @@ -55,7 +55,7 @@ async function httpConnectivityCheck() { * This sample demonstrates how to Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. * * @summary Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPerformConnectivityCheck.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPerformConnectivityCheck.json */ async function tcpConnectivityCheck() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyCreateOrUpdateSample.ts index 42a2fab18b7d..f625c32d2ff8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the global policy configuration of the Api Management service. * * @summary Creates or updates the global policy configuration of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicy.json */ async function apiManagementCreatePolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDeleteSample.ts index 4915e42320c0..69985f3c563d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the global policy configuration of the Api Management Service. * * @summary Deletes the global policy configuration of the Api Management Service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicy.json */ async function apiManagementDeletePolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDescriptionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDescriptionListByServiceSample.ts index 8a92232b89e7..4ae78b0f8e5b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDescriptionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyDescriptionListByServiceSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all policy descriptions. * * @summary Lists all policy descriptions. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicyDescriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyDescriptions.json */ async function apiManagementListPolicyDescriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentCreateOrUpdateSample.ts new file mode 100644 index 000000000000..d703b1724e37 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentCreateOrUpdateSample.ts @@ -0,0 +1,54 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PolicyFragmentContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a policy fragment. + * + * @summary Creates or updates a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePolicyFragment.json + */ +async function apiManagementCreatePolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const parameters: PolicyFragmentContract = { + format: "xml", + description: "A policy fragment example", + value: + '' + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.beginCreateOrUpdateAndWait( + resourceGroupName, + serviceName, + id, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreatePolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentDeleteSample.ts new file mode 100644 index 000000000000..8f6a6cdd6606 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a policy fragment. + * + * @summary Deletes a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePolicyFragment.json + */ +async function apiManagementDeletePolicy() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.delete( + resourceGroupName, + serviceName, + id, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeletePolicy(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetEntityTagSample.ts new file mode 100644 index 000000000000..cdc2c3e3c213 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of a policy fragment. + * + * @summary Gets the entity state (Etag) version of a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicyFragment.json + */ +async function apiManagementHeadPolicyFragment() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.getEntityTag( + resourceGroupName, + serviceName, + id + ); + console.log(result); +} + +async function main() { + apiManagementHeadPolicyFragment(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetSample.ts new file mode 100644 index 000000000000..19083d34fdcc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentGetSample.ts @@ -0,0 +1,74 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PolicyFragmentGetOptionalParams, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a policy fragment. + * + * @summary Gets a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFragment.json + */ +async function apiManagementGetPolicyFragment() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.get( + resourceGroupName, + serviceName, + id + ); + console.log(result); +} + +/** + * This sample demonstrates how to Gets a policy fragment. + * + * @summary Gets a policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFragmentFormat.json + */ +async function apiManagementGetPolicyFragmentFormat() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const format = "rawxml"; + const options: PolicyFragmentGetOptionalParams = { format }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.get( + resourceGroupName, + serviceName, + id, + options + ); + console.log(result); +} + +async function main() { + apiManagementGetPolicyFragment(); + apiManagementGetPolicyFragmentFormat(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListByServiceSample.ts new file mode 100644 index 000000000000..353baac0c7c2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListByServiceSample.ts @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets all policy fragments. + * + * @summary Gets all policy fragments. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragments.json + */ +async function apiManagementListPolicyFragments() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.listByService( + resourceGroupName, + serviceName + ); + console.log(result); +} + +async function main() { + apiManagementListPolicyFragments(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListReferencesSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListReferencesSample.ts new file mode 100644 index 000000000000..2915136023ac --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyFragmentListReferencesSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists policy resources that reference the policy fragment. + * + * @summary Lists policy resources that reference the policy fragment. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicyFragmentReferences.json + */ +async function apiManagementListPolicyFragmentReferences() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const id = "policyFragment1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.policyFragment.listReferences( + resourceGroupName, + serviceName, + id + ); + console.log(result); +} + +async function main() { + apiManagementListPolicyFragmentReferences(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetEntityTagSample.ts index f4cd5b0eb3b7..9db6f475ac6c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the Global policy definition in the Api Management service. * * @summary Gets the entity state (Etag) version of the Global policy definition in the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPolicy.json */ async function apiManagementHeadPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetSample.ts index 473ef69fbd41..7d7a1ace58ce 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Get the Global policy definition of the Api Management service. * * @summary Get the Global policy definition of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicy.json */ async function apiManagementGetPolicy() { const subscriptionId = @@ -44,7 +44,7 @@ async function apiManagementGetPolicy() { * This sample demonstrates how to Get the Global policy definition of the Api Management service. * * @summary Get the Global policy definition of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPolicyFormat.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPolicyFormat.json */ async function apiManagementGetPolicyFormat() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyListByServiceSample.ts index 2533950950b6..8d8b7608c482 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/policyListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the Global Policy definitions of the Api Management service. * * @summary Lists all the Global Policy definitions of the Api Management service. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPolicies.json */ async function apiManagementListPolicies() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigCreateOrUpdateSample.ts new file mode 100644 index 000000000000..4f96bd2686ef --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigCreateOrUpdateSample.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PortalConfigContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the developer portal configuration. + * + * @summary Create or update the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalConfig.json + */ +async function apiManagementCreatePortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const ifMatch = "*"; + const parameters: PortalConfigContract = { + cors: { allowedOrigins: ["https://contoso.com"] }, + csp: { + allowedSources: ["*.contoso.com"], + mode: "reportOnly", + reportUri: ["https://report.contoso.com"] + }, + delegation: { + delegateRegistration: false, + delegateSubscription: false, + delegationUrl: undefined, + validationKey: undefined + }, + enableBasicAuth: true, + signin: { require: false }, + signup: { + termsOfService: { + requireConsent: false, + text: "I agree to the service terms and conditions." + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.createOrUpdate( + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreatePortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetEntityTagSample.ts new file mode 100644 index 000000000000..ce2436ba1b65 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the developer portal configuration. + * + * @summary Gets the entity state (Etag) version of the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalConfig.json + */ +async function apiManagementHeadPortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.getEntityTag( + resourceGroupName, + serviceName, + portalConfigId + ); + console.log(result); +} + +async function main() { + apiManagementHeadPortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetSample.ts new file mode 100644 index 000000000000..5463fc5e330b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the developer portal configuration. + * + * @summary Get the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalConfig.json + */ +async function apiManagementPortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.get( + resourceGroupName, + serviceName, + portalConfigId + ); + console.log(result); +} + +async function main() { + apiManagementPortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigListByServiceSample.ts new file mode 100644 index 000000000000..39148724a093 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigListByServiceSample.ts @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists the developer portal configurations. + * + * @summary Lists the developer portal configurations. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalConfig.json + */ +async function apiManagementListPortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.listByService( + resourceGroupName, + serviceName + ); + console.log(result); +} + +async function main() { + apiManagementListPortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigUpdateSample.ts new file mode 100644 index 000000000000..f46de1dcd5d3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalConfigUpdateSample.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PortalConfigContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update the developer portal configuration. + * + * @summary Update the developer portal configuration. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalConfig.json + */ +async function apiManagementUpdatePortalConfig() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const portalConfigId = "default"; + const ifMatch = "*"; + const parameters: PortalConfigContract = { + cors: { allowedOrigins: ["https://contoso.com"] }, + csp: { + allowedSources: ["*.contoso.com"], + mode: "reportOnly", + reportUri: ["https://report.contoso.com"] + }, + delegation: { + delegateRegistration: false, + delegateSubscription: false, + delegationUrl: undefined, + validationKey: undefined + }, + enableBasicAuth: true, + signin: { require: false }, + signup: { + termsOfService: { + requireConsent: false, + text: "I agree to the service terms and conditions." + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.portalConfig.update( + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdatePortalConfig(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionCreateOrUpdateSample.ts index f79c9c80af23..0246e008cac5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. * * @summary Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreatePortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreatePortalRevision.json */ async function apiManagementCreatePortalRevision() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetEntityTagSample.ts index 86b55b8873b4..c731ded35a84 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the developer portal revision specified by its identifier. * * @summary Gets the developer portal revision specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadPortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadPortalRevision.json */ async function apiManagementHeadPortalRevision() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetSample.ts index 95ce9a87311b..90ec6a242e8a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the developer portal's revision specified by its identifier. * * @summary Gets the developer portal's revision specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPortalRevision.json */ async function apiManagementGetPortalRevision() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionListByServiceSample.ts index 30e41ddd89e6..8cf1e88339e6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists developer portal's revisions. * * @summary Lists developer portal's revisions. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalRevisions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalRevisions.json */ async function apiManagementListPortalRevisions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionUpdateSample.ts index 84f3848ce009..7e31dbff5bdf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalRevisionUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the description of specified portal revision or makes it current. * * @summary Updates the description of specified portal revision or makes it current. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdatePortalRevision.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdatePortalRevision.json */ async function apiManagementUpdatePortalRevision() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalSettingsListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalSettingsListByServiceSample.ts index c7c4f4edc5d5..b16d6107ba68 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalSettingsListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/portalSettingsListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of portalsettings defined within a service instance.. * * @summary Lists a collection of portalsettings defined within a service instance.. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPortalSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPortalSettings.json */ async function apiManagementListPortalSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts index 168f0a9a1c4c..808909204a6f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Private Endpoint Connection or updates an existing one. * * @summary Creates a new Private Endpoint Connection or updates an existing one. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementApproveOrRejectPrivateEndpointConnection.json */ async function apiManagementApproveOrRejectPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts index e569d463937e..a0cc9313d7b5 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Private Endpoint Connection. * * @summary Deletes the specified Private Endpoint Connection. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeletePrivateEndpointConnection.json */ async function apiManagementDeletePrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionGetByNameSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionGetByNameSample.ts index a9246d226d9b..ed705263e493 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionGetByNameSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionGetByNameSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the Private Endpoint Connection specified by its identifier. * * @summary Gets the details of the Private Endpoint Connection specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateEndpointConnection.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateEndpointConnection.json */ async function apiManagementGetPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionGetPrivateLinkResourceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionGetPrivateLinkResourceSample.ts index 979d6b3caf1d..10b6a4e2a268 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionGetPrivateLinkResourceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionGetPrivateLinkResourceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources * * @summary Gets the private link resources - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetPrivateLinkGroupResource.json */ async function apiManagementGetPrivateLinkGroupResource() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionListByServiceSample.ts index 54c9adf895b0..6527fddd32b9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all private endpoint connections of the API Management service instance. * * @summary Lists all private endpoint connections of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateEndpointConnections.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateEndpointConnections.json */ async function apiManagementListPrivateEndpointConnections() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionListPrivateLinkResourcesSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionListPrivateLinkResourcesSample.ts index 631ab02fec51..50bed1bc390c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionListPrivateLinkResourcesSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/privateEndpointConnectionListPrivateLinkResourcesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources * * @summary Gets the private link resources - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListPrivateLinkGroupResources.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListPrivateLinkGroupResources.json */ async function apiManagementListPrivateLinkGroupResources() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiCheckEntityExistsSample.ts index a3091d125312..7e70371099cc 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that API entity specified by identifier is associated with the Product entity. * * @summary Checks that API entity specified by identifier is associated with the Product entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductApi.json */ async function apiManagementHeadProductApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiCreateOrUpdateSample.ts index 106197144010..9e15389960c7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Adds an API to the specified product. * * @summary Adds an API to the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductApi.json */ async function apiManagementCreateProductApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiDeleteSample.ts index d15c25efd089..d404bc767db3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified API from the specified product. * * @summary Deletes the specified API from the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductApi.json */ async function apiManagementDeleteProductApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiListByProductSample.ts index 368600f2395e..53b66522bb8d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productApiListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of the APIs associated with a product. * * @summary Lists a collection of the APIs associated with a product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductApis.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductApis.json */ async function apiManagementListProductApis() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productCreateOrUpdateSample.ts index 2f8122601192..6232d0b6ba2c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a product. * * @summary Creates or Updates a product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProduct.json */ async function apiManagementCreateProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productDeleteSample.ts index 4a032555668a..241c237c9a47 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productDeleteSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Delete product. * * @summary Delete product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProduct.json */ async function apiManagementDeleteProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGetEntityTagSample.ts index a7170e6e1ecc..b615b809896e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the product specified by its identifier. * * @summary Gets the entity state (Etag) version of the product specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProduct.json */ async function apiManagementHeadProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGetSample.ts index 2754b8cc0dba..4ec43bce9e7b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the product specified by its identifier. * * @summary Gets the details of the product specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProduct.json */ async function apiManagementGetProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupCheckEntityExistsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupCheckEntityExistsSample.ts index 1c2d0a8aa689..16437f00cc40 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupCheckEntityExistsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupCheckEntityExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that Group entity specified by identifier is associated with the Product entity. * * @summary Checks that Group entity specified by identifier is associated with the Product entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductGroup.json */ async function apiManagementHeadProductGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupCreateOrUpdateSample.ts index 8d93108bc1b4..5ddd2bd110d7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Adds the association between the specified developer group with the specified product. * * @summary Adds the association between the specified developer group with the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductGroup.json */ async function apiManagementCreateProductGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupDeleteSample.ts index 967feab7faae..94c45c59a732 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the association between the specified group and product. * * @summary Deletes the association between the specified group and product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductGroup.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductGroup.json */ async function apiManagementDeleteProductGroup() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupListByProductSample.ts index 635e937ae97d..bc88afdb591e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productGroupListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of developer groups associated with the specified product. * * @summary Lists the collection of developer groups associated with the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductGroups.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductGroups.json */ async function apiManagementListProductGroups() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productListByServiceSample.ts index 85797a697b10..ae381908848f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of products in the specified service instance. * * @summary Lists a collection of products in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProducts.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProducts.json */ async function apiManagementListProducts() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productListByTagsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productListByTagsSample.ts index 4e1bc363e54f..d8274ee2a74b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productListByTagsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productListByTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of products associated with tags. * * @summary Lists a collection of products associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductsByTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductsByTags.json */ async function apiManagementListProductsByTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyCreateOrUpdateSample.ts index dec33d99a959..0f73b1c7dec0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates policy configuration for the Product. * * @summary Creates or updates policy configuration for the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductPolicy.json */ async function apiManagementCreateProductPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyDeleteSample.ts index 4ac83976cb4f..ddd21565a8ec 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the policy configuration at the Product. * * @summary Deletes the policy configuration at the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductPolicy.json */ async function apiManagementDeleteProductPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyGetEntityTagSample.ts index cb971a85dfba..583cd01a7292 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the ETag of the policy configuration at the Product level. * * @summary Get the ETag of the policy configuration at the Product level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductPolicy.json */ async function apiManagementHeadProductPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyGetSample.ts index fde45b79ddb2..8591ab0faa18 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the Product level. * * @summary Get the policy configuration at the Product level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductPolicy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductPolicy.json */ async function apiManagementGetProductPolicy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyListByProductSample.ts index b790611c477d..592a208c2a38 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productPolicyListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the policy configuration at the Product level. * * @summary Get the policy configuration at the Product level. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductPolicies.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductPolicies.json */ async function apiManagementListProductPolicies() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productSubscriptionsListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productSubscriptionsListSample.ts index 32e3463c996a..92a57cc82332 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productSubscriptionsListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productSubscriptionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of subscriptions to the specified product. * * @summary Lists the collection of subscriptions to the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductSubscriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductSubscriptions.json */ async function apiManagementListProductSubscriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productUpdateSample.ts index 45ce81606a2f..108231efc6eb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update existing product details. * * @summary Update existing product details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProduct.json */ async function apiManagementUpdateProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiCreateOrUpdateSample.ts new file mode 100644 index 000000000000..62626d52456d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiCreateOrUpdateSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { WikiContract, ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a new Wiki for a Product or updates an existing one. + * + * @summary Creates a new Wiki for a Product or updates an existing one. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductWiki.json + */ +async function apiManagementCreateProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const parameters: WikiContract = { + documents: [{ documentationId: "docId1" }, { documentationId: "docId2" }] + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.createOrUpdate( + resourceGroupName, + serviceName, + productId, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementCreateProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiDeleteSample.ts new file mode 100644 index 000000000000..c6a47ccec611 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified Wiki from a Product. + * + * @summary Deletes the specified Wiki from a Product. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductWiki.json + */ +async function apiManagementDeleteProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.delete( + resourceGroupName, + serviceName, + productId, + ifMatch + ); + console.log(result); +} + +async function main() { + apiManagementDeleteProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetEntityTagSample.ts new file mode 100644 index 000000000000..a038f7af6758 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetEntityTagSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * + * @summary Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductWiki.json + */ +async function apiManagementHeadProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.getEntityTag( + resourceGroupName, + serviceName, + productId + ); + console.log(result); +} + +async function main() { + apiManagementHeadProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetSample.ts new file mode 100644 index 000000000000..813b2cf26058 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the Wiki for a Product specified by its identifier. + * + * @summary Gets the details of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductWiki.json + */ +async function apiManagementGetProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.get( + resourceGroupName, + serviceName, + productId + ); + console.log(result); +} + +async function main() { + apiManagementGetProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiUpdateSample.ts new file mode 100644 index 000000000000..9b7c4f9d648f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikiUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + WikiUpdateContract, + ApiManagementClient +} from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the details of the Wiki for a Product specified by its identifier. + * + * @summary Updates the details of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateProductWiki.json + */ +async function apiManagementUpdateProductWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const ifMatch = "*"; + const parameters: WikiUpdateContract = { + documents: [{ documentationId: "docId1" }] + }; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const result = await client.productWiki.update( + resourceGroupName, + serviceName, + productId, + ifMatch, + parameters + ); + console.log(result); +} + +async function main() { + apiManagementUpdateProductWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikisListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikisListSample.ts new file mode 100644 index 000000000000..eae0b06af239 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/productWikisListSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ApiManagementClient } from "@azure/arm-apimanagement"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the Wiki for a Product specified by its identifier. + * + * @summary Gets the details of the Wiki for a Product specified by its identifier. + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductWikis.json + */ +async function apiManagementGetApiWiki() { + const subscriptionId = + process.env["APIMANAGEMENT_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["APIMANAGEMENT_RESOURCE_GROUP"] || "rg1"; + const serviceName = "apimService1"; + const productId = "57d1f7558aa04f15146d9d8a"; + const credential = new DefaultAzureCredential(); + const client = new ApiManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.productWikis.list( + resourceGroupName, + serviceName, + productId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + apiManagementGetApiWiki(); +} + +main().catch(console.error); diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysListByServiceSample.ts index 8bf8b09167a0..e30cd43ebd6b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. * * @summary Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeys.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeys.json */ async function apiManagementGetQuotaCounterKeys() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysUpdateSample.ts index 0b88c223ba92..915cac0059d3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByCounterKeysUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. * * @summary Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKey.json */ async function apiManagementUpdateQuotaCounterKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByPeriodKeysGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByPeriodKeysGetSample.ts index 630271cebd0b..e6c9445e5125 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByPeriodKeysGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByPeriodKeysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. * * @summary Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetQuotaCounterKeysByQuotaPeriod.json */ async function apiManagementGetQuotaCounterKeysByQuotaPeriod() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByPeriodKeysUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByPeriodKeysUpdateSample.ts index c34309c20332..2a5951cdc029 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByPeriodKeysUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/quotaByPeriodKeysUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing quota counter value in the specified service instance. * * @summary Updates an existing quota counter value in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json */ async function apiManagementUpdateQuotaCounterKeyByQuotaPeriod() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/regionListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/regionListByServiceSample.ts index 8be3f5324897..efd5680f27b7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/regionListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/regionListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all azure regions in which the service exists. * * @summary Lists all azure regions in which the service exists. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListRegions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListRegions.json */ async function apiManagementListRegions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByApiSample.ts index 3e57cd443d17..2c79ef784584 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by API. * * @summary Lists report records by API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByApi.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByApi.json */ async function apiManagementGetReportsByApi() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByGeoSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByGeoSample.ts index ad76635efd76..09abd47808a9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByGeoSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByGeoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by geography. * * @summary Lists report records by geography. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByGeo.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByGeo.json */ async function apiManagementGetReportsByGeo() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByOperationSample.ts index 469f72f09380..cf11ce2a1a6d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by API Operations. * * @summary Lists report records by API Operations. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByOperation.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByOperation.json */ async function apiManagementGetReportsByOperation() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByProductSample.ts index e76912e18196..ba62392350d4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by Product. * * @summary Lists report records by Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByProduct.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByProduct.json */ async function apiManagementGetReportsByProduct() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByRequestSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByRequestSample.ts index 5bf3032e9d8d..1e164289dd9c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByRequestSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByRequestSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by Request. * * @summary Lists report records by Request. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByRequest.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByRequest.json */ async function apiManagementGetReportsByRequest() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListBySubscriptionSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListBySubscriptionSample.ts index 67f3a9cfa033..6de51ec97e0f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListBySubscriptionSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by subscription. * * @summary Lists report records by subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsBySubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsBySubscription.json */ async function apiManagementGetReportsBySubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByTimeSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByTimeSample.ts index d05bc89a16dd..181ea10ce899 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByTimeSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByTimeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by Time. * * @summary Lists report records by Time. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByTime.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByTime.json */ async function apiManagementGetReportsByTime() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByUserSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByUserSample.ts index 8e12d584281e..4291513d0653 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByUserSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/reportsListByUserSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists report records by User. * * @summary Lists report records by User. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetReportsByUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetReportsByUser.json */ async function apiManagementGetReportsByUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsCreateOrUpdateSample.ts index 599598922489..f266ccfc4c65 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update Sign-In settings. * * @summary Create or Update Sign-In settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignIn.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignIn.json */ async function apiManagementPortalSettingsUpdateSignIn() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsGetEntityTagSample.ts index adef1dd2b8f1..2c52470d5ce3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the SignInSettings. * * @summary Gets the entity state (Etag) version of the SignInSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignInSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignInSettings.json */ async function apiManagementHeadSignInSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsGetSample.ts index fc2975986d5b..28f28743a6c1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get Sign In Settings for the Portal * * @summary Get Sign In Settings for the Portal - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignIn.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignIn.json */ async function apiManagementPortalSettingsGetSignIn() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsUpdateSample.ts index 27bb636125ce..c89f5a49379b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signInSettingsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update Sign-In settings. * * @summary Update Sign-In settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignIn.json */ async function apiManagementPortalSettingsUpdateSignIn() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsCreateOrUpdateSample.ts index fccab7b1d0b1..ad1197c5fffd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update Sign-Up settings. * * @summary Create or Update Sign-Up settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsPutSignUp.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsPutSignUp.json */ async function apiManagementPortalSettingsUpdateSignUp() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsGetEntityTagSample.ts index ac42ebecd742..9143fe8bdcf0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the SignUpSettings. * * @summary Gets the entity state (Etag) version of the SignUpSettings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSignUpSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSignUpSettings.json */ async function apiManagementHeadSignUpSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsGetSample.ts index f12b3ca8ecbb..319a4b7bd46f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get Sign Up Settings for the Portal * * @summary Get Sign Up Settings for the Portal - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsGetSignUp.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsGetSignUp.json */ async function apiManagementPortalSettingsGetSignUp() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsUpdateSample.ts index de0026f44378..7741a12efa7e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/signUpSettingsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update Sign-Up settings. * * @summary Update Sign-Up settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementPortalSettingsUpdateSignUp.json */ async function apiManagementPortalSettingsUpdateSignUp() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionCreateOrUpdateSample.ts index 58e9c315c128..05e275c85dc4 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the subscription of specified user to the specified product. * * @summary Creates or updates the subscription of specified user to the specified product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateSubscription.json */ async function apiManagementCreateSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionDeleteSample.ts index 52f04d1e4e0b..67f671d3a2e2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified subscription. * * @summary Deletes the specified subscription. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteSubscription.json */ async function apiManagementDeleteSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionGetEntityTagSample.ts index 0fb4c291a350..99b2bf3acad1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. * * @summary Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadSubscription.json */ async function apiManagementHeadSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionGetSample.ts index e1e791729d3f..59dd2b118352 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Subscription entity. * * @summary Gets the specified Subscription entity. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetSubscription.json */ async function apiManagementGetSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionListSample.ts index 50c819caf62c..29b594046e65 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all subscriptions of the API Management service instance. * * @summary Lists all subscriptions of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSubscriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSubscriptions.json */ async function apiManagementListSubscriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionListSecretsSample.ts index 7ad90fb0c956..5965ee649a51 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Subscription keys. * * @summary Gets the specified Subscription keys. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionListSecrets.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionListSecrets.json */ async function apiManagementSubscriptionListSecrets() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionRegeneratePrimaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionRegeneratePrimaryKeySample.ts index efc9913e4d57..28088928c4d8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionRegeneratePrimaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionRegeneratePrimaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates primary key of existing subscription of the API Management service instance. * * @summary Regenerates primary key of existing subscription of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegeneratePrimaryKey.json */ async function apiManagementSubscriptionRegeneratePrimaryKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionRegenerateSecondaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionRegenerateSecondaryKeySample.ts index e7b612b41a65..575f32f09ce0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionRegenerateSecondaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionRegenerateSecondaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates secondary key of existing subscription of the API Management service instance. * * @summary Regenerates secondary key of existing subscription of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementSubscriptionRegenerateSecondaryKey.json */ async function apiManagementSubscriptionRegenerateSecondaryKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionUpdateSample.ts index 6efb3a8ac4db..dcfdc0e6e6da 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/subscriptionUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of a subscription specified by its identifier. * * @summary Updates the details of a subscription specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateSubscription.json */ async function apiManagementUpdateSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToApiSample.ts index 50fc13e62d9e..52aa8cbe6993 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Assign tag to the Api. * * @summary Assign tag to the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiTag.json */ async function apiManagementCreateApiTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToOperationSample.ts index 234bf061840a..720adf7c4489 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Assign tag to the Operation. * * @summary Assign tag to the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateApiOperationTag.json */ async function apiManagementCreateApiOperationTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToProductSample.ts index e058a9521870..e7327d91cf64 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagAssignToProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Assign tag to the Product. * * @summary Assign tag to the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateProductTag.json */ async function apiManagementCreateProductTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagCreateOrUpdateSample.ts index da3c31bde828..95a59272991c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a tag. * * @summary Creates a tag. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTag.json */ async function apiManagementCreateTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDeleteSample.ts index 7ba1eee5cd6c..ed2af0a78357 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific tag of the API Management service instance. * * @summary Deletes specific tag of the API Management service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteTag.json */ async function apiManagementDeleteTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromApiSample.ts index ba8e0bb6ffa8..adeb2e1c6ea6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Detach the tag from the Api. * * @summary Detach the tag from the Api. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiTag.json */ async function apiManagementDeleteApiTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromOperationSample.ts index 032ae67645c5..55ec990815ff 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Detach the tag from the Operation. * * @summary Detach the tag from the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteApiOperationTag.json */ async function apiManagementDeleteApiOperationTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromProductSample.ts index 5e36720be1d8..cc92c57bdf3b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagDetachFromProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Detach the tag from the Product. * * @summary Detach the tag from the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteProductTag.json */ async function apiManagementDeleteProductTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByApiSample.ts index 2330681ceb67..e1f4ad9b464f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tag associated with the API. * * @summary Get tag associated with the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiTag.json */ async function apiManagementGetApiTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByOperationSample.ts index 15a725f8f3b7..b500b22c44c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tag associated with the Operation. * * @summary Get tag associated with the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetApiOperationTag.json */ async function apiManagementGetApiOperationTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByProductSample.ts index 166fec04dd87..ed0443df7ae3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tag associated with the Product. * * @summary Get tag associated with the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetProductTag.json */ async function apiManagementGetProductTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByApiSample.ts index 3e7e280fab13..f412d5d3df32 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiTag.json */ async function apiManagementHeadApiTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByOperationSample.ts index 8071f0deb119..d6d7ecab6aee 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadApiOperationTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadApiOperationTag.json */ async function apiManagementHeadApiOperationTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByProductSample.ts index 2f18f8d36cd6..b411670bbc87 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadProductTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadProductTag.json */ async function apiManagementHeadProductTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateSample.ts index 08ed2193ae82..efab0cd07fa9 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetEntityStateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state version of the tag specified by its identifier. * * @summary Gets the entity state version of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTag.json */ async function apiManagementHeadTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetSample.ts index c691b7006e0a..a76bd73c4d04 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the tag specified by its identifier. * * @summary Gets the details of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTag.json */ async function apiManagementGetTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByApiSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByApiSample.ts index e314b0697b13..d602d51dfd99 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByApiSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByApiSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Tags associated with the API. * * @summary Lists all Tags associated with the API. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiTags.json */ async function apiManagementListApiTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByOperationSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByOperationSample.ts index 70bb4ba415ff..d5314d8a8c8e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByOperationSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Tags associated with the Operation. * * @summary Lists all Tags associated with the Operation. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListApiOperationTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListApiOperationTags.json */ async function apiManagementListApiOperationTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByProductSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByProductSample.ts index da391881fe9b..e5f974185617 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByProductSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByProductSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Tags associated with the Product. * * @summary Lists all Tags associated with the Product. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListProductTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListProductTags.json */ async function apiManagementListProductTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByServiceSample.ts index 1c8ddeea0333..1590eb84e906 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of tags defined within a service instance. * * @summary Lists a collection of tags defined within a service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTags.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTags.json */ async function apiManagementListTags() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagResourceListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagResourceListByServiceSample.ts index ec2bfab96fff..7e4fdbdb908a 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagResourceListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagResourceListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of resources associated with tags. * * @summary Lists a collection of resources associated with tags. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTagResources.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTagResources.json */ async function apiManagementListTagResources() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagUpdateSample.ts index 087594dcaee8..c9cf0351412d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tagUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the tag specified by its identifier. * * @summary Updates the details of the tag specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTag.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTag.json */ async function apiManagementUpdateTag() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessCreateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessCreateSample.ts index 7ada5bfdf692..5980978da091 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessCreateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update tenant access information details. * * @summary Update tenant access information details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateTenantAccess.json */ async function apiManagementCreateTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGetEntityTagSample.ts index 6d3acb424a4a..4ad470bacf74 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Tenant access metadata * * @summary Tenant access metadata - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadTenantAccess.json */ async function apiManagementHeadTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGetSample.ts index 9a40950f740a..89a00b00a34c 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tenant access information details without secrets. * * @summary Get tenant access information details without secrets. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantAccess.json */ async function apiManagementGetTenantAccess() { const subscriptionId = @@ -41,7 +41,7 @@ async function apiManagementGetTenantAccess() { * This sample demonstrates how to Get tenant access information details without secrets. * * @summary Get tenant access information details without secrets. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantGitAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantGitAccess.json */ async function apiManagementGetTenantGitAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGitRegeneratePrimaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGitRegeneratePrimaryKeySample.ts index 5c3c2be94531..b0ebbca83394 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGitRegeneratePrimaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGitRegeneratePrimaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate primary access key for GIT. * * @summary Regenerate primary access key for GIT. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGitRegenerateSecondaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGitRegenerateSecondaryKeySample.ts index f65eca681ad1..237541c234c1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGitRegenerateSecondaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessGitRegenerateSecondaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate secondary access key for GIT. * * @summary Regenerate secondary access key for GIT. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessListByServiceSample.ts index eb80a00ad6d5..b639a89e236d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns list of access infos - for Git and Management endpoints. * * @summary Returns list of access infos - for Git and Management endpoints. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantAccess.json */ async function apiManagementListTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessListSecretsSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessListSecretsSample.ts index 289a8134e38f..084ace7979c0 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessListSecretsSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessListSecretsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tenant access information details. * * @summary Get tenant access information details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListSecretsTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListSecretsTenantAccess.json */ async function apiManagementListSecretsTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessRegeneratePrimaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessRegeneratePrimaryKeySample.ts index a4cf03f214f3..ba54ff5d6c7f 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessRegeneratePrimaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessRegeneratePrimaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate primary access key * * @summary Regenerate primary access key - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessRegenerateSecondaryKeySample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessRegenerateSecondaryKeySample.ts index dc48ddbbf4d2..5bf80798e4e1 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessRegenerateSecondaryKeySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessRegenerateSecondaryKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerate secondary access key * * @summary Regenerate secondary access key - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessRegenerateKey.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessRegenerateKey.json */ async function apiManagementTenantAccessRegenerateKey() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessUpdateSample.ts index 7ef47158b24e..0a45399af35d 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantAccessUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update tenant access information details. * * @summary Update tenant access information details. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateTenantAccess.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateTenantAccess.json */ async function apiManagementUpdateTenantAccess() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationDeploySample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationDeploySample.ts index 1ea15aa09021..30a6f486f333 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationDeploySample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationDeploySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. * * @summary This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationDeploy.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationDeploy.json */ async function apiManagementTenantConfigurationDeploy() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationGetSyncStateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationGetSyncStateSample.ts index 5d9fd75c2379..183413c070e7 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationGetSyncStateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationGetSyncStateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of the most recent synchronization between the configuration database and the Git repository. * * @summary Gets the status of the most recent synchronization between the configuration database and the Git repository. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantAccessSyncState.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantAccessSyncState.json */ async function apiManagementTenantAccessSyncState() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationSaveSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationSaveSample.ts index 418106b9b5be..339b7d8e350b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationSaveSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationSaveSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. * * @summary This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationSave.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationSave.json */ async function apiManagementTenantConfigurationSave() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationValidateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationValidateSample.ts index 8989ab0f761b..593245c52c97 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationValidateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantConfigurationValidateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. * * @summary This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementTenantConfigurationValidate.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementTenantConfigurationValidate.json */ async function apiManagementTenantConfigurationValidate() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantSettingsGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantSettingsGetSample.ts index 21794d9d7346..62f39d5d4132 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantSettingsGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantSettingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get tenant settings. * * @summary Get tenant settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetTenantSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetTenantSettings.json */ async function apiManagementGetTenantSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantSettingsListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantSettingsListByServiceSample.ts index 295f44ca712f..bee5b4a6d6fd 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantSettingsListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/tenantSettingsListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Public settings. * * @summary Public settings. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListTenantSettings.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListTenantSettings.json */ async function apiManagementListTenantSettings() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userConfirmationPasswordSendSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userConfirmationPasswordSendSample.ts index 041e893ec5a5..fbab7fc3a2cb 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userConfirmationPasswordSendSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userConfirmationPasswordSendSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Sends confirmation * * @summary Sends confirmation - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserConfirmationPasswordSend.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserConfirmationPasswordSend.json */ async function apiManagementUserConfirmationPasswordSend() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userCreateOrUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userCreateOrUpdateSample.ts index caec5fb731b8..f21acf2952a6 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userCreateOrUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or Updates a user. * * @summary Creates or Updates a user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementCreateUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementCreateUser.json */ async function apiManagementCreateUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userDeleteSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userDeleteSample.ts index 6ad89e436f66..b07039d2c5ab 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userDeleteSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific user. * * @summary Deletes specific user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementDeleteUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementDeleteUser.json */ async function apiManagementDeleteUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGenerateSsoUrlSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGenerateSsoUrlSample.ts index d7370913668e..f1e39fe5ea16 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGenerateSsoUrlSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGenerateSsoUrlSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. * * @summary Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserGenerateSsoUrl.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserGenerateSsoUrl.json */ async function apiManagementUserGenerateSsoUrl() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetEntityTagSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetEntityTagSample.ts index 83df23f0bff6..a8d971057e1e 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetEntityTagSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetEntityTagSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the entity state (Etag) version of the user specified by its identifier. * * @summary Gets the entity state (Etag) version of the user specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementHeadUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementHeadUser.json */ async function apiManagementHeadUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetSample.ts index 1694976a133a..af21ca84b0c8 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the user specified by its identifier. * * @summary Gets the details of the user specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUser.json */ async function apiManagementGetUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetSharedAccessTokenSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetSharedAccessTokenSample.ts index 84dae8b52843..dae88fd58203 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetSharedAccessTokenSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGetSharedAccessTokenSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Shared Access Authorization Token for the User. * * @summary Gets the Shared Access Authorization Token for the User. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUserToken.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUserToken.json */ async function apiManagementUserToken() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGroupListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGroupListSample.ts index 398696727ecc..633fea2229a3 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGroupListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userGroupListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all user groups. * * @summary Lists all user groups. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserGroups.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserGroups.json */ async function apiManagementListUserGroups() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userIdentitiesListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userIdentitiesListSample.ts index 5d39e7ff2881..0e7f010d6fcf 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userIdentitiesListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userIdentitiesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List of all user identities. * * @summary List of all user identities. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserIdentities.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserIdentities.json */ async function apiManagementListUserIdentities() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userListByServiceSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userListByServiceSample.ts index 673c561426c2..b212a1781a0b 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userListByServiceSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists a collection of registered users in the specified service instance. * * @summary Lists a collection of registered users in the specified service instance. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUsers.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUsers.json */ async function apiManagementListUsers() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userSubscriptionGetSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userSubscriptionGetSample.ts index e31ac7b92ad2..d64b3f87dfc2 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userSubscriptionGetSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userSubscriptionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Subscription entity associated with a particular user. * * @summary Gets the specified Subscription entity associated with a particular user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementGetUserSubscription.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementGetUserSubscription.json */ async function apiManagementGetUserSubscription() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userSubscriptionListSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userSubscriptionListSample.ts index 47ff2cee1c52..47fe92e03081 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userSubscriptionListSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userSubscriptionListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the collection of subscriptions of the specified user. * * @summary Lists the collection of subscriptions of the specified user. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementListUserSubscriptions.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementListUserSubscriptions.json */ async function apiManagementListUserSubscriptions() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userUpdateSample.ts b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userUpdateSample.ts index 043bb851c39f..17b2ed83fcea 100644 --- a/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userUpdateSample.ts +++ b/sdk/apimanagement/arm-apimanagement/samples/v9/typescript/src/userUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the details of the user specified by its identifier. * * @summary Updates the details of the user specified by its identifier. - * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/examples/ApiManagementUpdateUser.json + * x-ms-original-file: specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/examples/ApiManagementUpdateUser.json */ async function apiManagementUpdateUser() { const subscriptionId = diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts index 6c22a4e01e78..7907189618aa 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -14,8 +14,12 @@ import { SendRequest } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "./lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "./lroImpl"; import { ApiImpl, ApiRevisionImpl, @@ -23,6 +27,8 @@ import { ApiOperationImpl, ApiOperationPolicyImpl, TagImpl, + GraphQLApiResolverImpl, + GraphQLApiResolverPolicyImpl, ApiProductImpl, ApiPolicyImpl, ApiSchemaImpl, @@ -32,9 +38,15 @@ import { ApiIssueAttachmentImpl, ApiTagDescriptionImpl, OperationOperationsImpl, + ApiWikiImpl, + ApiWikisImpl, ApiExportImpl, ApiVersionSetImpl, AuthorizationServerImpl, + AuthorizationProviderImpl, + AuthorizationImpl, + AuthorizationLoginLinksImpl, + AuthorizationAccessPolicyImpl, BackendImpl, CacheImpl, CertificateImpl, @@ -64,6 +76,8 @@ import { OutboundNetworkDependenciesEndpointsImpl, PolicyImpl, PolicyDescriptionImpl, + PolicyFragmentImpl, + PortalConfigImpl, PortalRevisionImpl, PortalSettingsImpl, SignInSettingsImpl, @@ -75,6 +89,8 @@ import { ProductGroupImpl, ProductSubscriptionsImpl, ProductPolicyImpl, + ProductWikiImpl, + ProductWikisImpl, QuotaByCounterKeysImpl, QuotaByPeriodKeysImpl, RegionImpl, @@ -91,7 +107,8 @@ import { UserGroupImpl, UserSubscriptionImpl, UserIdentitiesImpl, - UserConfirmationPasswordImpl + UserConfirmationPasswordImpl, + DocumentationImpl } from "./operations"; import { Api, @@ -100,6 +117,8 @@ import { ApiOperation, ApiOperationPolicy, Tag, + GraphQLApiResolver, + GraphQLApiResolverPolicy, ApiProduct, ApiPolicy, ApiSchema, @@ -109,9 +128,15 @@ import { ApiIssueAttachment, ApiTagDescription, OperationOperations, + ApiWiki, + ApiWikis, ApiExport, ApiVersionSet, AuthorizationServer, + AuthorizationProvider, + Authorization, + AuthorizationLoginLinks, + AuthorizationAccessPolicy, Backend, Cache, Certificate, @@ -141,6 +166,8 @@ import { OutboundNetworkDependenciesEndpoints, Policy, PolicyDescription, + PolicyFragment, + PortalConfig, PortalRevision, PortalSettings, SignInSettings, @@ -152,6 +179,8 @@ import { ProductGroup, ProductSubscriptions, ProductPolicy, + ProductWiki, + ProductWikis, QuotaByCounterKeys, QuotaByPeriodKeys, Region, @@ -168,7 +197,8 @@ import { UserGroup, UserSubscription, UserIdentities, - UserConfirmationPassword + UserConfirmationPassword, + Documentation } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -182,25 +212,38 @@ import { export class ApiManagementClient extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the ApiManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. - * The subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApiManagementClientOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: ApiManagementClientOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: ApiManagementClientOptionalParams | string, + options?: ApiManagementClientOptionalParams ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -212,7 +255,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-apimanagement/9.0.1`; + const packageDetails = `azsdk-js-arm-apimanagement/9.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -265,13 +308,15 @@ export class ApiManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-08-01"; + this.apiVersion = options.apiVersion || "2022-08-01"; this.api = new ApiImpl(this); this.apiRevision = new ApiRevisionImpl(this); this.apiRelease = new ApiReleaseImpl(this); this.apiOperation = new ApiOperationImpl(this); this.apiOperationPolicy = new ApiOperationPolicyImpl(this); this.tag = new TagImpl(this); + this.graphQLApiResolver = new GraphQLApiResolverImpl(this); + this.graphQLApiResolverPolicy = new GraphQLApiResolverPolicyImpl(this); this.apiProduct = new ApiProductImpl(this); this.apiPolicy = new ApiPolicyImpl(this); this.apiSchema = new ApiSchemaImpl(this); @@ -281,9 +326,15 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiIssueAttachment = new ApiIssueAttachmentImpl(this); this.apiTagDescription = new ApiTagDescriptionImpl(this); this.operationOperations = new OperationOperationsImpl(this); + this.apiWiki = new ApiWikiImpl(this); + this.apiWikis = new ApiWikisImpl(this); this.apiExport = new ApiExportImpl(this); this.apiVersionSet = new ApiVersionSetImpl(this); this.authorizationServer = new AuthorizationServerImpl(this); + this.authorizationProvider = new AuthorizationProviderImpl(this); + this.authorization = new AuthorizationImpl(this); + this.authorizationLoginLinks = new AuthorizationLoginLinksImpl(this); + this.authorizationAccessPolicy = new AuthorizationAccessPolicyImpl(this); this.backend = new BackendImpl(this); this.cache = new CacheImpl(this); this.certificate = new CertificateImpl(this); @@ -319,6 +370,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { ); this.policy = new PolicyImpl(this); this.policyDescription = new PolicyDescriptionImpl(this); + this.policyFragment = new PolicyFragmentImpl(this); + this.portalConfig = new PortalConfigImpl(this); this.portalRevision = new PortalRevisionImpl(this); this.portalSettings = new PortalSettingsImpl(this); this.signInSettings = new SignInSettingsImpl(this); @@ -332,6 +385,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.productGroup = new ProductGroupImpl(this); this.productSubscriptions = new ProductSubscriptionsImpl(this); this.productPolicy = new ProductPolicyImpl(this); + this.productWiki = new ProductWikiImpl(this); + this.productWikis = new ProductWikisImpl(this); this.quotaByCounterKeys = new QuotaByCounterKeysImpl(this); this.quotaByPeriodKeys = new QuotaByPeriodKeysImpl(this); this.region = new RegionImpl(this); @@ -349,6 +404,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.userSubscription = new UserSubscriptionImpl(this); this.userIdentities = new UserIdentitiesImpl(this); this.userConfirmationPassword = new UserConfirmationPasswordImpl(this); + this.documentation = new DocumentationImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -383,7 +439,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Performs a connectivity check between the API Management service and a given destination, and * returns metrics for the connection, as well as errors encountered while trying to establish it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param connectivityCheckRequestParams Connectivity Check request parameters. * @param options The options parameters. @@ -394,8 +450,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PerformConnectivityCheckAsyncResponse > > { @@ -405,7 +461,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { ): Promise => { return this.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -438,20 +494,23 @@ export class ApiManagementClient extends coreClient.ServiceClient { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, connectivityCheckRequestParams, options }, - performConnectivityCheckAsyncOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: performConnectivityCheckAsyncOperationSpec + }); + const poller = await createHttpPoller< + PerformConnectivityCheckAsyncResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -460,7 +519,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Performs a connectivity check between the API Management service and a given destination, and * returns metrics for the connection, as well as errors encountered while trying to establish it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param connectivityCheckRequestParams Connectivity Check request parameters. * @param options The options parameters. @@ -486,6 +545,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiOperation: ApiOperation; apiOperationPolicy: ApiOperationPolicy; tag: Tag; + graphQLApiResolver: GraphQLApiResolver; + graphQLApiResolverPolicy: GraphQLApiResolverPolicy; apiProduct: ApiProduct; apiPolicy: ApiPolicy; apiSchema: ApiSchema; @@ -495,9 +556,15 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiIssueAttachment: ApiIssueAttachment; apiTagDescription: ApiTagDescription; operationOperations: OperationOperations; + apiWiki: ApiWiki; + apiWikis: ApiWikis; apiExport: ApiExport; apiVersionSet: ApiVersionSet; authorizationServer: AuthorizationServer; + authorizationProvider: AuthorizationProvider; + authorization: Authorization; + authorizationLoginLinks: AuthorizationLoginLinks; + authorizationAccessPolicy: AuthorizationAccessPolicy; backend: Backend; cache: Cache; certificate: Certificate; @@ -527,6 +594,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { outboundNetworkDependenciesEndpoints: OutboundNetworkDependenciesEndpoints; policy: Policy; policyDescription: PolicyDescription; + policyFragment: PolicyFragment; + portalConfig: PortalConfig; portalRevision: PortalRevision; portalSettings: PortalSettings; signInSettings: SignInSettings; @@ -538,6 +607,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { productGroup: ProductGroup; productSubscriptions: ProductSubscriptions; productPolicy: ProductPolicy; + productWiki: ProductWiki; + productWikis: ProductWikis; quotaByCounterKeys: QuotaByCounterKeys; quotaByPeriodKeys: QuotaByPeriodKeys; region: Region; @@ -555,6 +626,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { userSubscription: UserSubscription; userIdentities: UserIdentities; userConfirmationPassword: UserConfirmationPassword; + documentation: Documentation; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); diff --git a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts +++ b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 0696e3f8c99d..4e69c371d1f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/index.ts @@ -83,6 +83,10 @@ export interface AuthenticationSettingsContract { oAuth2?: OAuth2AuthenticationSettingsContract; /** OpenID Connect Authentication Settings */ openid?: OpenIdAuthenticationSettingsContract; + /** Collection of OAuth2 authentication settings included into this API. */ + oAuth2AuthenticationSettings?: OAuth2AuthenticationSettingsContract[]; + /** Collection of Open ID Connect authentication settings included into this API. */ + openidAuthenticationSettings?: OpenIdAuthenticationSettingsContract[]; } /** API OAuth2 Authentication settings details. */ @@ -237,6 +241,8 @@ export interface ApiCreateOrUpdateParameter { * * `graphql` creates GraphQL API. */ soapApiType?: SoapApiType; + /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; } /** Criteria to limit import of WSDL to a subset of the document. */ @@ -510,6 +516,32 @@ export interface TagCollection { nextLink?: string; } +/** Paged Resolver list representation. */ +export interface ResolverCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ResolverContract[]; + /** Total record count number across all pages. */ + count?: number; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** GraphQL API Resolver Update Contract details. */ +export interface ResolverUpdateContract { + /** Resolver Name. */ + displayName?: string; + /** Path is type/field being resolved. */ + path?: string; + /** Description of the resolver. May include HTML formatting tags. */ + description?: string; +} + /** Paged Products list representation. */ export interface ProductCollection { /** Page values. */ @@ -783,6 +815,32 @@ export interface OperationTagResourceContractProperties { readonly urlTemplate?: string; } +/** Wiki documentation details. */ +export interface WikiDocumentationContract { + /** Documentation Identifier */ + documentationId?: string; +} + +/** Wiki update contract details. */ +export interface WikiUpdateContract { + /** Collection wiki documents included into this wiki. */ + documents?: WikiDocumentationContract[]; +} + +/** Paged Wiki list representation. */ +export interface WikiCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: WikiContract[]; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** API Export result. */ export interface ApiExportResult { /** ResourceId of the API which was exported. */ @@ -885,6 +943,76 @@ export interface AuthorizationServerSecretsContract { resourceOwnerPassword?: string; } +/** Paged Authorization Provider list representation. */ +export interface AuthorizationProviderCollection { + /** Page values. */ + value?: AuthorizationProviderContract[]; + /** Next page link if any. */ + nextLink?: string; +} + +/** OAuth2 settings details */ +export interface AuthorizationProviderOAuth2Settings { + /** Redirect URL to be set in the OAuth application. */ + redirectUrl?: string; + /** OAuth2 settings */ + grantTypes?: AuthorizationProviderOAuth2GrantTypes; +} + +/** Authorization Provider oauth2 grant types settings */ +export interface AuthorizationProviderOAuth2GrantTypes { + /** OAuth2 authorization code grant parameters */ + authorizationCode?: { [propertyName: string]: string }; + /** OAuth2 client credential grant parameters */ + clientCredentials?: { [propertyName: string]: string }; +} + +/** Paged Authorization list representation. */ +export interface AuthorizationCollection { + /** Page values. */ + value?: AuthorizationContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Authorization error details. */ +export interface AuthorizationError { + /** Error code */ + code?: string; + /** Error message */ + message?: string; +} + +/** Authorization login request contract. */ +export interface AuthorizationLoginRequestContract { + /** The redirect URL after login has completed. */ + postLoginRedirectUrl?: string; +} + +/** Authorization login response contract. */ +export interface AuthorizationLoginResponseContract { + /** The login link */ + loginLink?: string; +} + +/** Authorization confirm consent code request contract. */ +export interface AuthorizationConfirmConsentCodeRequestContract { + /** The consent code from the authorization server after authorizing and consenting. */ + consentCode?: string; +} + +/** Paged Authorization Access Policy list representation. */ +export interface AuthorizationAccessPolicyCollection { + /** Page values. */ + value?: AuthorizationAccessPolicyContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged Backend list representation. */ export interface BackendCollection { /** Backend values. */ @@ -901,13 +1029,13 @@ export interface BackendBaseParameters { title?: string; /** Backend Description. */ description?: string; - /** Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ + /** Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ resourceId?: string; /** Backend Properties contract */ properties?: BackendProperties; /** Backend Credentials Contract Properties */ credentials?: BackendCredentialsContract; - /** Backend Proxy Contract Properties */ + /** Backend gateway Contract Properties */ proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; @@ -989,13 +1117,13 @@ export interface BackendUpdateParameters { title?: string; /** Backend Description. */ description?: string; - /** Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ + /** Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ resourceId?: string; /** Backend Properties contract */ properties?: BackendProperties; /** Backend Credentials Contract Properties */ credentials?: BackendCredentialsContract; - /** Backend Proxy Contract Properties */ + /** Backend gateway Contract Properties */ proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; @@ -1435,12 +1563,19 @@ export interface ApiManagementServiceBaseProperties { virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ additionalLocations?: AdditionalLocation[]; - /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

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

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

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

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

You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.
Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 */ customProperties?: { [propertyName: string]: string }; /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ certificates?: CertificateConfiguration[]; /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ enableClientCertificate?: boolean; + /** Property can be used to enable NAT Gateway for this API Management service. */ + natGatewayState?: NatGatewayState; + /** + * Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly outboundPublicIPAddresses?: string[]; /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ disableGateway?: boolean; /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ @@ -4130,244 +3701,1083 @@ export interface ApiManagementServiceResource extends ApimResource { */ readonly platformVersion?: PlatformVersion; /** Publisher email. */ - publisherEmail: string; + publisherEmail?: string; /** Publisher name. */ - publisherName: string; + publisherName?: string; } -/** Parameter supplied to Update Api Management Service. */ -export interface ApiManagementServiceUpdateParameters extends ApimResource { - /** SKU properties of the API Management service. */ - sku?: ApiManagementServiceSkuProperties; - /** Managed service identity of the Api Management service. */ - identity?: ApiManagementServiceIdentity; +/** User profile. */ +export interface UserContractProperties extends UserEntityBaseParameters { + /** First name. */ + firstName?: string; + /** Last name. */ + lastName?: string; + /** Email address. */ + email?: string; /** - * ETag of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * */ - readonly etag?: string; - /** A list of availability zones denoting where the resource needs to come from. */ - zones?: string[]; - /** Email address from which the notification will be sent. */ - notificationSenderEmail?: string; + registrationDate?: Date; /** - * The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * Collection of groups user is part of. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; - /** - * The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + readonly groups?: GroupContractProperties[]; +} + +/** Parameters supplied to the Create User operation. */ +export interface UserCreateParameterProperties + extends UserEntityBaseParameters { + /** Email address. Must not be empty and must be unique within the service instance. */ + email: string; + /** First name. */ + firstName: string; + /** Last name. */ + lastName: string; + /** User Password. If no value is provided, a default password is generated. */ + password?: string; + /** Determines the type of application which send the create user request. Default is legacy portal. */ + appType?: AppType; + /** Determines the type of confirmation e-mail that will be sent to the newly created user. */ + confirmation?: Confirmation; +} + +/** Parameters supplied to the Update User operation. */ +export interface UserUpdateParametersProperties + extends UserEntityBaseParameters { + /** Email address. Must not be empty and must be unique within the service instance. */ + email?: string; + /** User Password. */ + password?: string; + /** First name. */ + firstName?: string; + /** Last name. */ + lastName?: string; +} + +/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ +export interface IdentityProviderContractProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ +export interface IdentityProviderCreateContractProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret: string; +} + +/** Parameters supplied to the Update Identity Provider operation. */ +export interface IdentityProviderUpdateProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId?: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. */ + clientSecret?: string; +} + +/** NamedValue Contract properties. */ +export interface NamedValueContractProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractProperties; +} + +/** NamedValue Contract properties. */ +export interface NamedValueCreateContractProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractCreateProperties; +} + +/** NamedValue Contract properties. */ +export interface NamedValueUpdateParameterProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName?: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractCreateProperties; +} + +/** API Create or Update Properties. */ +export interface ApiCreateOrUpdateProperties extends ApiContractProperties { + /** Content value when Importing an API. */ + value?: string; + /** Format of the Content in which the API is getting imported. */ + format?: ContentFormat; + /** Criteria to limit import of WSDL to a subset of the document. */ + wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; + /** + * Type of API to create. + * * `http` creates a REST API + * * `soap` creates a SOAP pass-through API + * * `websocket` creates websocket API + * * `graphql` creates GraphQL API. + */ + soapApiType?: SoapApiType; + /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; +} + +/** API details. */ +export interface ApiContract extends ProxyResource { + /** Description of the API. May include HTML formatting tags. */ + description?: string; + /** Collection of authentication settings included into this API. */ + authenticationSettings?: AuthenticationSettingsContract; + /** Protocols over which API is made available. */ + subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; + /** Type of API. */ + apiType?: ApiType; + /** Describes the revision of the API. If no value is provided, default revision 1 is created */ + apiRevision?: string; + /** Indicates the version identifier of the API if the API is versioned */ + apiVersion?: string; + /** Indicates if API revision is current api revision. */ + isCurrent?: boolean; + /** + * Indicates if API revision is accessible via the gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isOnline?: boolean; + /** Description of the API Revision. */ + apiRevisionDescription?: string; + /** Description of the API Version. */ + apiVersionDescription?: string; + /** A resource identifier for the related ApiVersionSet. */ + apiVersionSetId?: string; + /** Specifies whether an API or Product subscription is required for accessing the API. */ + subscriptionRequired?: boolean; + /** A URL to the Terms of Service for the API. MUST be in the format of a URL. */ + termsOfServiceUrl?: string; + /** Contact information for the API. */ + contact?: ApiContactInformation; + /** License information for the API. */ + license?: ApiLicenseInformation; + /** API identifier of the source API. */ + sourceApiId?: string; + /** API name. Must be 1 to 300 characters long. */ + displayName?: string; + /** Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path?: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; + /** Version set details */ + apiVersionSet?: ApiVersionSetContractDetails; +} + +/** ApiRelease details. */ +export interface ApiReleaseContract extends ProxyResource { + /** Identifier of the API the release belongs to. */ + apiId?: string; + /** + * The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdDateTime?: Date; + /** + * The time the API release was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly updatedDateTime?: Date; + /** Release Notes */ + notes?: string; +} + +/** API Operation details. */ +export interface OperationContract extends ProxyResource { + /** Collection of URL template parameters. */ + templateParameters?: ParameterContract[]; + /** Description of the operation. May include HTML formatting tags. */ + description?: string; + /** An entity containing request details. */ + request?: RequestContract; + /** Array of Operation responses. */ + responses?: ResponseContract[]; + /** Operation Policies */ + policies?: string; + /** Operation Name. */ + displayName?: string; + /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ + method?: string; + /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ + urlTemplate?: string; +} + +/** Policy Contract details. */ +export interface PolicyContract extends ProxyResource { + /** Contents of the Policy as defined by the format. */ + value?: string; + /** Format of the policyContent. */ + format?: PolicyContentFormat; +} + +/** Tag Contract details. */ +export interface TagContract extends ProxyResource { + /** Tag name. */ + displayName?: string; +} + +/** GraphQL API Resolver details. */ +export interface ResolverContract extends ProxyResource { + /** Resolver Name. */ + displayName?: string; + /** Path is type/field being resolved. */ + path?: string; + /** Description of the resolver. May include HTML formatting tags. */ + description?: string; +} + +/** Product details. */ +export interface ProductContract extends ProxyResource { + /** Product description. May include HTML formatting tags. */ + description?: string; + /** Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process. */ + terms?: string; + /** Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true. */ + subscriptionRequired?: boolean; + /** whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false. */ + approvalRequired?: boolean; + /** Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false. */ + subscriptionsLimit?: number; + /** whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. */ + state?: ProductState; + /** Product name. */ + displayName?: string; +} + +/** API Schema Contract details. */ +export interface SchemaContract extends ProxyResource { + /** Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`. */ + contentType?: string; + /** Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI. */ + value?: string; + /** Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise. */ + definitions?: Record; + /** Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise. */ + components?: Record; +} + +/** Diagnostic details. */ +export interface DiagnosticContract extends ProxyResource { + /** Specifies for what type of messages sampling settings should not apply. */ + alwaysLog?: AlwaysLog; + /** Resource Id of a target logger. */ + loggerId?: string; + /** Sampling settings for Diagnostic. */ + sampling?: SamplingSettings; + /** Diagnostic settings for incoming/outgoing HTTP messages to the Gateway. */ + frontend?: PipelineDiagnosticSettings; + /** Diagnostic settings for incoming/outgoing HTTP messages to the Backend */ + backend?: PipelineDiagnosticSettings; + /** Log the ClientIP. Default is false. */ + logClientIp?: boolean; + /** Sets correlation protocol to use for Application Insights diagnostics. */ + httpCorrelationProtocol?: HttpCorrelationProtocol; + /** The verbosity level applied to traces emitted by trace policies. */ + verbosity?: Verbosity; + /** The format of the Operation Name for Application Insights telemetries. Default is Name. */ + operationNameFormat?: OperationNameFormat; + /** Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings. */ + metrics?: boolean; +} + +/** Issue Contract details. */ +export interface IssueContract extends ProxyResource { + /** Date and time when the issue was created. */ + createdDate?: Date; + /** Status of the issue. */ + state?: State; + /** A resource identifier for the API the issue was created for. */ + apiId?: string; + /** The issue title. */ + title?: string; + /** Text describing the issue. */ + description?: string; + /** A resource identifier for the user created the issue. */ + userId?: string; +} + +/** Issue Comment Contract details. */ +export interface IssueCommentContract extends ProxyResource { + /** Comment text. */ + text?: string; + /** Date and time when the comment was created. */ + createdDate?: Date; + /** A resource identifier for the user who left the comment. */ + userId?: string; +} + +/** Issue Attachment Contract details. */ +export interface IssueAttachmentContract extends ProxyResource { + /** Filename by which the binary data will be saved. */ + title?: string; + /** Either 'link' if content is provided via an HTTP link or the MIME type of the Base64-encoded binary data provided in the 'content' property. */ + contentFormat?: string; + /** An HTTP link or Base64-encoded binary data. */ + content?: string; +} + +/** Contract details. */ +export interface TagDescriptionContract extends ProxyResource { + /** Description of the Tag. */ + description?: string; + /** Absolute URL of external resources describing the tag. */ + externalDocsUrl?: string; + /** Description of the external resources describing the tag. */ + externalDocsDescription?: string; + /** Identifier of the tag in the form of /tags/{tagId} */ + tagId?: string; + /** Tag name. */ + displayName?: string; +} + +/** Wiki properties */ +export interface WikiContract extends ProxyResource { + /** Collection wiki documents included into this wiki. */ + documents?: WikiDocumentationContract[]; +} + +/** API Version Set Contract details. */ +export interface ApiVersionSetContract extends ProxyResource { + /** Description of API Version Set. */ + description?: string; + /** Name of query parameter that indicates the API Version if versioningScheme is set to `query`. */ + versionQueryName?: string; + /** Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. */ + versionHeaderName?: string; + /** Name of API Version Set */ + displayName?: string; + /** An value that determines where the API Version identifier will be located in a HTTP request. */ + versioningScheme?: VersioningScheme; +} + +/** External OAuth authorization server settings. */ +export interface AuthorizationServerContract extends ProxyResource { + /** Description of the authorization server. Can contain HTML formatting tags. */ + description?: string; + /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ + authorizationMethods?: AuthorizationMethod[]; + /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ + tokenEndpoint?: string; + /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ + supportState?: boolean; + /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ + defaultScope?: string; + /** Specifies the mechanism by which access token is passed to the API. */ + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; + /** User-friendly authorization server name. */ + displayName?: string; + /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; + /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ + clientRegistrationEndpoint?: string; + /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ + authorizationEndpoint?: string; + /** Form of an authorization grant, which the client uses to request the access token. */ + grantTypes?: GrantType[]; + /** Client or app id registered with this authorization server. */ + clientId?: string; + /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** External OAuth authorization server settings. */ +export interface AuthorizationServerUpdateContract extends ProxyResource { + /** Description of the authorization server. Can contain HTML formatting tags. */ + description?: string; + /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ + authorizationMethods?: AuthorizationMethod[]; + /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ + tokenEndpoint?: string; + /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ + supportState?: boolean; + /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ + defaultScope?: string; + /** Specifies the mechanism by which access token is passed to the API. */ + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; + /** User-friendly authorization server name. */ + displayName?: string; + /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; + /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ + clientRegistrationEndpoint?: string; + /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ + authorizationEndpoint?: string; + /** Form of an authorization grant, which the client uses to request the access token. */ + grantTypes?: GrantType[]; + /** Client or app id registered with this authorization server. */ + clientId?: string; + /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** Authorization Provider contract. */ +export interface AuthorizationProviderContract extends ProxyResource { + /** Authorization Provider name. Must be 1 to 300 characters long. */ + displayName?: string; + /** Identity provider name. Must be 1 to 300 characters long. */ + identityProvider?: string; + /** OAuth2 settings */ + oauth2?: AuthorizationProviderOAuth2Settings; +} + +/** Authorization contract. */ +export interface AuthorizationContract extends ProxyResource { + /** Authorization type options */ + authorizationType?: AuthorizationType; + /** OAuth2 grant type options */ + oAuth2GrantType?: OAuth2GrantType; + /** Authorization parameters */ + parameters?: { [propertyName: string]: string }; + /** Authorization error details. */ + error?: AuthorizationError; + /** Status of the Authorization */ + status?: string; +} + +/** Authorization access policy contract. */ +export interface AuthorizationAccessPolicyContract extends ProxyResource { + /** The Tenant Id */ + tenantId?: string; + /** The Object Id */ + objectId?: string; +} + +/** Backend details. */ +export interface BackendContract extends ProxyResource { + /** Backend Title. */ + title?: string; + /** Backend Description. */ + description?: string; + /** Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ + resourceId?: string; + /** Backend Properties contract */ + properties?: BackendProperties; + /** Backend Credentials Contract Properties */ + credentials?: BackendCredentialsContract; + /** Backend gateway Contract Properties */ + proxy?: BackendProxyContract; + /** Backend TLS Properties */ + tls?: BackendTlsProperties; + /** Runtime Url of the Backend. */ + url?: string; + /** Backend communication protocol. */ + protocol?: BackendProtocol; +} + +/** Reconnect request parameters. */ +export interface BackendReconnectContract extends ProxyResource { + /** Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconnect is PT2M. */ + after?: string; +} + +/** Cache details. */ +export interface CacheContract extends ProxyResource { + /** Cache description */ + description?: string; + /** Runtime connection string to cache */ + connectionString?: string; + /** Location identifier to use cache from (should be either 'default' or valid Azure region identifier) */ + useFromLocation?: string; + /** Original uri of entity in external system cache points to */ + resourceId?: string; +} + +/** Certificate details. */ +export interface CertificateContract extends ProxyResource { + /** Subject attribute of the certificate. */ + subject?: string; + /** Thumbprint of the certificate. */ + thumbprint?: string; + /** + * Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + expirationDate?: Date; + /** KeyVault location details of the certificate. */ + keyVault?: KeyVaultContractProperties; +} + +/** Content type contract details. */ +export interface ContentTypeContract extends ProxyResource { + /** Content type identifier */ + idPropertiesId?: string; + /** Content type name. Must be 1 to 250 characters long. */ + namePropertiesName?: string; + /** Content type description. */ + description?: string; + /** Content type schema. */ + schema?: Record; + /** Content type version. */ + version?: string; +} + +/** Content type contract details. */ +export interface ContentItemContract extends ProxyResource { + /** Properties of the content item. */ + properties?: { [propertyName: string]: any }; +} + +/** Deleted API Management Service information. */ +export interface DeletedServiceContract extends ProxyResource { + /** + * API Management Service Master Location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetProvisioningState?: string; + readonly location?: string; + /** Fully-qualified API Management Service Resource ID */ + serviceId?: string; + /** UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ + scheduledPurgeDate?: Date; + /** UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ + deletionDate?: Date; +} + +/** Email Template details. */ +export interface EmailTemplateContract extends ProxyResource { + /** Subject of the Template. */ + subject?: string; + /** Email Template Body. This should be a valid XDocument */ + body?: string; + /** Title of the Template. */ + title?: string; + /** Description of the Email Template. */ + description?: string; /** - * Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * Whether the template is the default template provided by API Management or has been edited. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdAtUtc?: Date; + readonly isDefault?: boolean; + /** Email Template Parameter values. */ + parameters?: EmailTemplateParametersContractProperties[]; +} + +/** Gateway details. */ +export interface GatewayContract extends ProxyResource { + /** Gateway location. */ + locationData?: ResourceLocationDataContract; + /** Gateway description */ + description?: string; +} + +/** Gateway hostname configuration details. */ +export interface GatewayHostnameConfigurationContract extends ProxyResource { + /** Hostname value. Supports valid domain name, partial or full wildcard */ + hostname?: string; + /** Identifier of Certificate entity that will be used for TLS connection establishment */ + certificateId?: string; + /** Determines whether gateway requests client certificate */ + negotiateClientCertificate?: boolean; + /** Specifies if TLS 1.0 is supported */ + tls10Enabled?: boolean; + /** Specifies if TLS 1.1 is supported */ + tls11Enabled?: boolean; + /** Specifies if HTTP/2.0 is supported */ + http2Enabled?: boolean; +} + +/** Association entity details. */ +export interface AssociationContract extends ProxyResource { + /** Provisioning state. */ + provisioningState?: "created"; +} + +/** Gateway certificate authority details. */ +export interface GatewayCertificateAuthorityContract extends ProxyResource { + /** Determines whether certificate authority is trusted. */ + isTrusted?: boolean; +} + +/** Contract details. */ +export interface GroupContract extends ProxyResource { + /** Group name. */ + displayName?: string; + /** Group description. Can contain HTML formatting tags. */ + description?: string; /** - * Gateway URL of the API Management service. + * true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gatewayUrl?: string; + readonly builtIn?: boolean; + /** Group type. */ + typePropertiesType?: GroupType; + /** For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. */ + externalId?: string; +} + +/** User details. */ +export interface UserContract extends ProxyResource { + /** Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. */ + state?: UserState; + /** Optional note about a user set by the administrator. */ + note?: string; + /** Collection of user identities. */ + identities?: UserIdentityContract[]; + /** First name. */ + firstName?: string; + /** Last name. */ + lastName?: string; + /** Email address. */ + email?: string; + /** + * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + registrationDate?: Date; /** - * Gateway URL of the API Management service in the Default Region. + * Collection of groups user is part of. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gatewayRegionalUrl?: string; + readonly groups?: GroupContractProperties[]; +} + +/** Identity Provider details. */ +export interface IdentityProviderContract extends ProxyResource { + /** Identity Provider Type identifier. */ + typePropertiesType?: IdentityProviderType; + /** The TenantId to use instead of Common when logging into Active Directory */ + signinTenant?: string; + /** List of Allowed Tenants when configuring Azure Active Directory login. */ + allowedTenants?: string[]; + /** OpenID Connect discovery endpoint hostname for AAD or AAD B2C. */ + authority?: string; + /** Signup Policy Name. Only applies to AAD B2C Identity Provider. */ + signupPolicyName?: string; + /** Signin Policy Name. Only applies to AAD B2C Identity Provider. */ + signinPolicyName?: string; + /** Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. */ + profileEditingPolicyName?: string; + /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ + passwordResetPolicyName?: string; + /** The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider. */ + clientLibrary?: string; + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId?: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** Identity Provider details. */ +export interface IdentityProviderCreateContract extends ProxyResource { + /** Identity Provider Type identifier. */ + typePropertiesType?: IdentityProviderType; + /** The TenantId to use instead of Common when logging into Active Directory */ + signinTenant?: string; + /** List of Allowed Tenants when configuring Azure Active Directory login. */ + allowedTenants?: string[]; + /** OpenID Connect discovery endpoint hostname for AAD or AAD B2C. */ + authority?: string; + /** Signup Policy Name. Only applies to AAD B2C Identity Provider. */ + signupPolicyName?: string; + /** Signin Policy Name. Only applies to AAD B2C Identity Provider. */ + signinPolicyName?: string; + /** Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. */ + profileEditingPolicyName?: string; + /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ + passwordResetPolicyName?: string; + /** The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider. */ + clientLibrary?: string; + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId?: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** Logger details. */ +export interface LoggerContract extends ProxyResource { + /** Logger type. */ + loggerType?: LoggerType; + /** Logger description. */ + description?: string; /** - * Publisher portal endpoint Url of the API Management service. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The name and SendRule connection string of the event hub for azureEventHub logger. + * Instrumentation key for applicationInsights logger. */ - readonly portalUrl?: string; + credentials?: { [propertyName: string]: string }; + /** Whether records are buffered in the logger before publishing. Default is assumed to be true. */ + isBuffered?: boolean; + /** Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource). */ + resourceId?: string; +} + +/** NamedValue details. */ +export interface NamedValueContract extends ProxyResource { + /** Optional tags that when provided can be used to filter the NamedValue list. */ + tags?: string[]; + /** Determines whether the value is a secret and should be encrypted or not. Default value is false. */ + secret?: boolean; + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName?: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractProperties; +} + +/** NamedValue details. */ +export interface NamedValueCreateContract extends ProxyResource { + /** Optional tags that when provided can be used to filter the NamedValue list. */ + tags?: string[]; + /** Determines whether the value is a secret and should be encrypted or not. Default value is false. */ + secret?: boolean; + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName?: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractCreateProperties; +} + +/** Notification details. */ +export interface NotificationContract extends ProxyResource { + /** Title of the Notification. */ + title?: string; + /** Description of the Notification. */ + description?: string; + /** Recipient Parameter values. */ + recipients?: RecipientsContractProperties; +} + +/** Recipient User details. */ +export interface RecipientUserContract extends ProxyResource { + /** API Management UserId subscribed to notification. */ + userId?: string; +} + +/** Recipient Email details. */ +export interface RecipientEmailContract extends ProxyResource { + /** User Email subscribed to notification. */ + email?: string; +} + +/** OpenId Connect Provider details. */ +export interface OpenidConnectProviderContract extends ProxyResource { + /** User-friendly OpenID Connect Provider name. */ + displayName?: string; + /** User-friendly description of OpenID Connect Provider. */ + description?: string; + /** Metadata endpoint URI. */ + metadataEndpoint?: string; + /** Client ID of developer console which is the client application. */ + clientId?: string; + /** Client Secret of developer console which is the client application. */ + clientSecret?: string; + /** If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; +} + +/** Policy description details. */ +export interface PolicyDescriptionContract extends ProxyResource { /** - * Management API endpoint URL of the API Management service. + * Policy description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managementApiUrl?: string; + readonly description?: string; /** - * SCM endpoint URL of the API Management service. + * Binary OR value of the Snippet scope. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scmUrl?: string; + readonly scope?: number; +} + +/** Policy fragment contract details. */ +export interface PolicyFragmentContract extends ProxyResource { + /** Contents of the policy fragment. */ + value?: string; + /** Policy fragment description. */ + description?: string; + /** Format of the policy fragment content. */ + format?: PolicyFragmentContentFormat; +} + +export interface ResourceCollectionValueItem extends ProxyResource {} + +/** The developer portal configuration contract. */ +export interface PortalConfigContract extends ProxyResource { + /** Enable or disable Basic authentication method. */ + enableBasicAuth?: boolean; + signin?: PortalConfigPropertiesSignin; + signup?: PortalConfigPropertiesSignup; + /** The developer portal delegation settings. */ + delegation?: PortalConfigDelegationProperties; + /** The developer portal Cross-Origin Resource Sharing (CORS) settings. */ + cors?: PortalConfigCorsProperties; + /** The developer portal Content Security Policy (CSP) settings. */ + csp?: PortalConfigCspProperties; +} + +/** Portal Revision's contract details. */ +export interface PortalRevisionContract extends ProxyResource { + /** Portal revision description. */ + description?: string; /** - * DEveloper Portal endpoint URL of the API Management service. + * Portal revision publishing status details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly developerPortalUrl?: string; - /** Custom hostname configuration of the API Management service. */ - hostnameConfigurations?: HostnameConfiguration[]; + readonly statusDetails?: string; /** - * Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard, Premium and Isolated SKU. + * Status of the portal's revision. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicIPAddresses?: string[]; + readonly status?: PortalRevisionStatus; + /** Indicates if the portal's revision is public. */ + isCurrent?: boolean; /** - * Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. + * Portal's revision creation date and time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateIPAddresses?: string[]; - /** Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the region. Supported only for Developer and Premium SKU being deployed in Virtual Network. */ - publicIpAddressId?: string; - /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ - publicNetworkAccess?: PublicNetworkAccess; - /** Virtual network configuration of the API Management service. */ - virtualNetworkConfiguration?: VirtualNetworkConfiguration; - /** Additional datacenter locations of the API Management service. */ - additionalLocations?: AdditionalLocation[]; - /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ - customProperties?: { [propertyName: string]: string }; - /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ - certificates?: CertificateConfiguration[]; - /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ - enableClientCertificate?: boolean; - /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ - disableGateway?: boolean; - /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ - virtualNetworkType?: VirtualNetworkType; - /** Control Plane Apis version constraint for the API Management service. */ - apiVersionConstraint?: ApiVersionConstraint; - /** Undelete Api Management Service if it was previously soft-deleted. If this flag is specified and set to True all other properties will be ignored. */ - restore?: boolean; - /** List of Private Endpoint Connections of this service. */ - privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; + readonly createdDateTime?: Date; /** - * Compute Platform Version running the service in this location. + * Last updated date and time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly platformVersion?: PlatformVersion; - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; + readonly updatedDateTime?: Date; } -/** User profile. */ -export interface UserContractProperties extends UserEntityBaseParameters { - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; - /** Email address. */ - email?: string; +/** Portal Settings for the Developer Portal. */ +export interface PortalSettingsContract extends ProxyResource { + /** A delegation Url. */ + url?: string; + /** A base64-encoded validation key to validate, that a request is coming from Azure API Management. */ + validationKey?: string; + /** Subscriptions delegation settings. */ + subscriptions?: SubscriptionsDelegationSettingsProperties; + /** User registration delegation settings. */ + userRegistration?: RegistrationDelegationSettingsProperties; + /** Redirect Anonymous users to the Sign-In page. */ + enabled?: boolean; + /** Terms of service contract properties. */ + termsOfService?: TermsOfServiceProperties; +} + +/** Sign-In settings for the Developer Portal. */ +export interface PortalSigninSettings extends ProxyResource { + /** Redirect Anonymous users to the Sign-In page. */ + enabled?: boolean; +} + +/** Sign-Up settings for a developer portal. */ +export interface PortalSignupSettings extends ProxyResource { + /** Allow users to sign up on a developer portal. */ + enabled?: boolean; + /** Terms of service contract properties. */ + termsOfService?: TermsOfServiceProperties; +} + +/** Delegation settings for a developer portal. */ +export interface PortalDelegationSettings extends ProxyResource { + /** A delegation Url. */ + url?: string; + /** A base64-encoded validation key to validate, that a request is coming from Azure API Management. */ + validationKey?: string; + /** Subscriptions delegation settings. */ + subscriptions?: SubscriptionsDelegationSettingsProperties; + /** User registration delegation settings. */ + userRegistration?: RegistrationDelegationSettingsProperties; +} + +/** Subscription details. */ +export interface SubscriptionContract extends ProxyResource { + /** The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where {userId} is a user identifier. */ + ownerId?: string; + /** Scope like /products/{productId} or /apis or /apis/{apiId}. */ + scope?: string; + /** The name of the subscription, or null if the subscription has no name. */ + displayName?: string; + /** Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. */ + state?: SubscriptionState; + /** + * Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdDate?: Date; /** - * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. * */ - registrationDate?: Date; + startDate?: Date; /** - * Collection of groups user is part of. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * */ - readonly groups?: GroupContractProperties[]; -} - -/** Parameters supplied to the Create User operation. */ -export interface UserCreateParameterProperties - extends UserEntityBaseParameters { - /** Email address. Must not be empty and must be unique within the service instance. */ - email: string; - /** First name. */ - firstName: string; - /** Last name. */ - lastName: string; - /** User Password. If no value is provided, a default password is generated. */ - password?: string; - /** Determines the type of application which send the create user request. Default is legacy portal. */ - appType?: AppType; - /** Determines the type of confirmation e-mail that will be sent to the newly created user. */ - confirmation?: Confirmation; -} - -/** Parameters supplied to the Update User operation. */ -export interface UserUpdateParametersProperties - extends UserEntityBaseParameters { - /** Email address. Must not be empty and must be unique within the service instance. */ - email?: string; - /** User Password. */ - password?: string; - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; + expirationDate?: Date; + /** + * Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + endDate?: Date; + /** + * Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + notificationDate?: Date; + /** Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + primaryKey?: string; + /** Subscription secondary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + secondaryKey?: string; + /** Optional subscription comment added by an administrator when the state is changed to the 'rejected'. */ + stateComment?: string; + /** Determines whether tracing is enabled */ + allowTracing?: boolean; } -/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ -export interface IdentityProviderContractProperties - extends IdentityProviderBaseParameters { - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; +/** Global Schema Contract details. */ +export interface GlobalSchemaContract extends ProxyResource { + /** Schema Type. Immutable. */ + schemaType?: SchemaType; + /** Free-form schema entity description. */ + description?: string; + /** Json-encoded string for non json-based schema. */ + value?: any; + /** Global Schema document object for json-based schema formats(e.g. json schema). */ + document?: Record; } -/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ -export interface IdentityProviderCreateContractProperties - extends IdentityProviderBaseParameters { - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret: string; +/** Tenant Settings. */ +export interface TenantSettingsContract extends ProxyResource { + /** Tenant settings */ + settings?: { [propertyName: string]: string }; } -/** Parameters supplied to the Update Identity Provider operation. */ -export interface IdentityProviderUpdateProperties - extends IdentityProviderBaseParameters { - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId?: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. */ - clientSecret?: string; +/** Tenant Settings. */ +export interface AccessInformationContract extends ProxyResource { + /** Access Information type ('access' or 'gitAccess') */ + idPropertiesId?: string; + /** Principal (User) Identifier. */ + principalId?: string; + /** Determines whether direct access is enabled. */ + enabled?: boolean; } -/** NamedValue Contract properties. */ -export interface NamedValueContractProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractProperties; +/** Long Running Git Operation Results. */ +export interface OperationResultContract extends ProxyResource { + /** Operation result identifier. */ + idPropertiesId?: string; + /** Status of an async operation. */ + status?: AsyncOperationStatus; + /** + * Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + started?: Date; + /** + * Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + updated?: Date; + /** Optional result info. */ + resultInfo?: string; + /** Error Body Contract */ + error?: ErrorResponseBody; + /** + * This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionLog?: OperationResultLogItemContract[]; } -/** NamedValue Contract properties. */ -export interface NamedValueCreateContractProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractCreateProperties; +/** Result of Tenant Configuration Sync State. */ +export interface TenantConfigurationSyncStateContract extends ProxyResource { + /** The name of Git branch. */ + branch?: string; + /** The latest commit Id. */ + commitId?: string; + /** value indicating if last sync was save (true) or deploy (false) operation. */ + isExport?: boolean; + /** value indicating if last synchronization was later than the configuration change. */ + isSynced?: boolean; + /** value indicating whether Git configuration access is enabled. */ + isGitEnabled?: boolean; + /** + * The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + syncDate?: Date; + /** + * The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + configurationChangeDate?: Date; + /** Most recent tenant configuration operation identifier */ + lastOperationId?: string; } -/** NamedValue Contract properties. */ -export interface NamedValueUpdateParameterProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName?: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractCreateProperties; +/** Markdown documentation details. */ +export interface DocumentationContract extends ProxyResource { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; } -/** API Create or Update Properties. */ -export interface ApiCreateOrUpdateProperties extends ApiContractProperties { - /** Content value when Importing an API. */ - value?: string; - /** Format of the Content in which the API is getting imported. */ - format?: ContentFormat; - /** Criteria to limit import of WSDL to a subset of the document. */ - wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; +/** Long Running Git Resolver Results. */ +export interface ResolverResultContract extends ProxyResource { + /** Resolver result identifier. */ + idPropertiesId?: string; + /** Status of an async resolver. */ + status?: AsyncResolverStatus; /** - * Type of API to create. - * * `http` creates a REST API - * * `soap` creates a SOAP pass-through API - * * `websocket` creates websocket API - * * `graphql` creates GraphQL API. + * Start time of an async resolver. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * */ - soapApiType?: SoapApiType; + started?: Date; + /** + * Last update time of an async resolver. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + updated?: Date; + /** Optional result info. */ + resultInfo?: string; + /** Error Body Contract */ + error?: ErrorResponseBody; + /** + * This property if only provided as part of the TenantConfiguration_Validate resolver. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy resolver. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionLog?: ResolverResultLogItemContract[]; } /** Defines headers for Api_getEntityTag operation. */ @@ -4526,6 +4936,48 @@ export interface TagUpdateHeaders { eTag?: string; } +/** Defines headers for GraphQLApiResolver_getEntityTag operation. */ +export interface GraphQLApiResolverGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for GraphQLApiResolver_get operation. */ +export interface GraphQLApiResolverGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for GraphQLApiResolver_createOrUpdate operation. */ +export interface GraphQLApiResolverCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for GraphQLApiResolver_update operation. */ +export interface GraphQLApiResolverUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for GraphQLApiResolverPolicy_getEntityTag operation. */ +export interface GraphQLApiResolverPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for GraphQLApiResolverPolicy_get operation. */ +export interface GraphQLApiResolverPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for GraphQLApiResolverPolicy_createOrUpdate operation. */ +export interface GraphQLApiResolverPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for ApiPolicy_getEntityTag operation. */ export interface ApiPolicyGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -4634,32 +5086,56 @@ export interface ApiIssueAttachmentGetEntityTagHeaders { eTag?: string; } -/** Defines headers for ApiIssueAttachment_get operation. */ -export interface ApiIssueAttachmentGetHeaders { +/** Defines headers for ApiIssueAttachment_get operation. */ +export interface ApiIssueAttachmentGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ApiIssueAttachment_createOrUpdate operation. */ +export interface ApiIssueAttachmentCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ApiTagDescription_getEntityTag operation. */ +export interface ApiTagDescriptionGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ApiTagDescription_get operation. */ +export interface ApiTagDescriptionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ApiTagDescription_createOrUpdate operation. */ +export interface ApiTagDescriptionCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ApiIssueAttachment_createOrUpdate operation. */ -export interface ApiIssueAttachmentCreateOrUpdateHeaders { +/** Defines headers for ApiWiki_getEntityTag operation. */ +export interface ApiWikiGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ApiTagDescription_getEntityTag operation. */ -export interface ApiTagDescriptionGetEntityTagHeaders { +/** Defines headers for ApiWiki_get operation. */ +export interface ApiWikiGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ApiTagDescription_get operation. */ -export interface ApiTagDescriptionGetHeaders { +/** Defines headers for ApiWiki_createOrUpdate operation. */ +export interface ApiWikiCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ApiTagDescription_createOrUpdate operation. */ -export interface ApiTagDescriptionCreateOrUpdateHeaders { +/** Defines headers for ApiWiki_update operation. */ +export interface ApiWikiUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } @@ -4718,6 +5194,54 @@ export interface AuthorizationServerListSecretsHeaders { eTag?: string; } +/** Defines headers for AuthorizationProvider_get operation. */ +export interface AuthorizationProviderGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for AuthorizationProvider_createOrUpdate operation. */ +export interface AuthorizationProviderCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Authorization_get operation. */ +export interface AuthorizationGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Authorization_createOrUpdate operation. */ +export interface AuthorizationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for 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 AuthorizationLoginLinks_post operation. */ +export interface AuthorizationLoginLinksPostHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for AuthorizationAccessPolicy_get operation. */ +export interface AuthorizationAccessPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for AuthorizationAccessPolicy_createOrUpdate operation. */ +export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for Backend_getEntityTag operation. */ export interface BackendGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -4820,6 +5344,31 @@ export interface ContentItemCreateOrUpdateHeaders { eTag?: string; } +/** Defines headers for DeletedServices_purge operation. */ +export interface DeletedServicesPurgeHeaders { + location?: string; +} + +/** Defines headers for ApiManagementService_restore operation. */ +export interface ApiManagementServiceRestoreHeaders { + location?: string; +} + +/** Defines headers for ApiManagementService_backup operation. */ +export interface ApiManagementServiceBackupHeaders { + location?: string; +} + +/** Defines headers for ApiManagementService_migrateToStv2 operation. */ +export interface ApiManagementServiceMigrateToStv2Headers { + location?: string; +} + +/** Defines headers for ApiManagementService_applyNetworkConfigurationUpdates operation. */ +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders { + location?: string; +} + /** Defines headers for Diagnostic_getEntityTag operation. */ export interface DiagnosticGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5102,6 +5651,36 @@ export interface PolicyCreateOrUpdateHeaders { eTag?: string; } +/** Defines headers for PolicyFragment_getEntityTag operation. */ +export interface PolicyFragmentGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for PolicyFragment_get operation. */ +export interface PolicyFragmentGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for PolicyFragment_createOrUpdate operation. */ +export interface PolicyFragmentCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: string; +} + +/** Defines headers for PortalConfig_getEntityTag operation. */ +export interface PortalConfigGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for PortalConfig_get operation. */ +export interface PortalConfigGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for PortalRevision_getEntityTag operation. */ export interface PortalRevisionGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5204,6 +5783,42 @@ export interface ProductPolicyCreateOrUpdateHeaders { eTag?: string; } +/** Defines headers for ProductWiki_getEntityTag operation. */ +export interface ProductWikiGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ProductWiki_get operation. */ +export interface ProductWikiGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ProductWiki_createOrUpdate operation. */ +export interface ProductWikiCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ProductWiki_update operation. */ +export interface ProductWikiUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ProductWikis_list operation. */ +export interface ProductWikisListHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ProductWikis_listNext operation. */ +export interface ProductWikisListNextHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for GlobalSchema_getEntityTag operation. */ export interface GlobalSchemaGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5318,6 +5933,30 @@ export interface UserSubscriptionGetHeaders { eTag?: string; } +/** Defines headers for Documentation_getEntityTag operation. */ +export interface DocumentationGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_get operation. */ +export interface DocumentationGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_createOrUpdate operation. */ +export interface DocumentationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_update operation. */ +export interface DocumentationUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Known values of {@link Protocol} that the service accepts. */ export enum KnownProtocol { /** Http */ @@ -5344,11 +5983,11 @@ export type Protocol = string; /** Known values of {@link ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ export enum KnownApiVersionSetContractDetailsVersioningScheme { - /** Segment */ + /** The API Version is passed in a path segment. */ Segment = "Segment", - /** Query */ + /** The API Version is passed in a query parameter. */ Query = "Query", - /** Header */ + /** The API Version is passed in a HTTP header. */ Header = "Header" } @@ -5357,9 +5996,9 @@ export enum KnownApiVersionSetContractDetailsVersioningScheme { * {@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** \ - * **Query** \ - * **Header** + * **Segment**: The API Version is passed in a path segment. \ + * **Query**: The API Version is passed in a query parameter. \ + * **Header**: The API Version is passed in a HTTP header. */ export type ApiVersionSetContractDetailsVersioningScheme = string; @@ -5415,7 +6054,7 @@ export enum KnownContentFormat { SwaggerJson = "swagger-json", /** The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. */ SwaggerLinkJson = "swagger-link-json", - /** The contents are inline and the document is a WSDL/Soap document. */ + /** The contents are inline and the document is a WSDL\/Soap document. */ Wsdl = "wsdl", /** The WSDL document is hosted on a publicly accessible internet address. */ WsdlLink = "wsdl-link", @@ -5474,15 +6113,33 @@ export enum KnownSoapApiType { */ export type SoapApiType = string; +/** Known values of {@link TranslateRequiredQueryParametersConduct} that the service accepts. */ +export enum KnownTranslateRequiredQueryParametersConduct { + /** Translates required query parameters to template ones. Is a default value */ + Template = "template", + /** Leaves required query parameters as they are (no translation done). */ + Query = "query" +} + +/** + * Defines values for TranslateRequiredQueryParametersConduct. \ + * {@link KnownTranslateRequiredQueryParametersConduct} can be used interchangeably with TranslateRequiredQueryParametersConduct, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **template**: Translates required query parameters to template ones. Is a default value \ + * **query**: Leaves required query parameters as they are (no translation done). + */ +export type TranslateRequiredQueryParametersConduct = string; + /** Known values of {@link PolicyContentFormat} that the service accepts. */ export enum KnownPolicyContentFormat { /** The contents are inline and Content type is an XML document. */ Xml = "xml", - /** The policy XML document is hosted on a http endpoint accessible from the API Management service. */ + /** The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. */ XmlLink = "xml-link", /** The contents are inline and Content type is a non XML encoded policy document. */ Rawxml = "rawxml", - /** The policy document is not Xml encoded and is hosted on a http endpoint accessible from the API Management service. */ + /** The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ RawxmlLink = "rawxml-link" } @@ -5492,9 +6149,9 @@ export enum KnownPolicyContentFormat { * this enum contains the known values that the service supports. * ### Known values supported by the service * **xml**: The contents are inline and Content type is an XML document. \ - * **xml-link**: The policy XML document is hosted on a http endpoint accessible from the API Management service. \ + * **xml-link**: The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. \ * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. \ - * **rawxml-link**: The policy document is not Xml encoded and is hosted on a http endpoint accessible from the API Management service. + * **rawxml-link**: The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ export type PolicyContentFormat = string; @@ -5583,9 +6240,9 @@ export type DataMaskingMode = string; export enum KnownHttpCorrelationProtocol { /** Do not read and inject correlation headers. */ None = "None", - /** Inject Request-Id and Request-Context headers with request correlation data. See https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md. */ + /** Inject Request-Id and Request-Context headers with request correlation data. See https:\//github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. */ Legacy = "Legacy", - /** Inject Trace Context headers. See https://w3c.github.io/trace-context. */ + /** Inject Trace Context headers. See https:\//w3c.github.io\/trace-context. */ W3C = "W3C" } @@ -5755,13 +6412,13 @@ export type VersioningScheme = string; /** Known values of {@link GrantType} that the service accepts. */ export enum KnownGrantType { - /** Authorization Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.1. */ + /** Authorization Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.1. */ AuthorizationCode = "authorizationCode", - /** Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2. */ + /** Implicit Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.2. */ Implicit = "implicit", - /** Resource Owner Password Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.3. */ + /** Resource Owner Password Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.3. */ ResourceOwnerPassword = "resourceOwnerPassword", - /** Client Credentials Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.4. */ + /** Client Credentials Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.4. */ ClientCredentials = "clientCredentials" } @@ -5813,6 +6470,39 @@ export enum KnownBearerTokenSendingMethod { */ export type BearerTokenSendingMethod = string; +/** Known values of {@link AuthorizationType} that the service accepts. */ +export enum KnownAuthorizationType { + /** OAuth2 authorization type */ + OAuth2 = "OAuth2" +} + +/** + * Defines values for AuthorizationType. \ + * {@link KnownAuthorizationType} can be used interchangeably with AuthorizationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **OAuth2**: OAuth2 authorization type + */ +export type AuthorizationType = string; + +/** Known values of {@link OAuth2GrantType} that the service accepts. */ +export enum KnownOAuth2GrantType { + /** Authorization Code grant */ + AuthorizationCode = "AuthorizationCode", + /** Client Credential grant */ + ClientCredentials = "ClientCredentials" +} + +/** + * Defines values for OAuth2GrantType. \ + * {@link KnownOAuth2GrantType} can be used interchangeably with OAuth2GrantType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AuthorizationCode**: Authorization Code grant \ + * **ClientCredentials**: Client Credential grant + */ +export type OAuth2GrantType = string; + /** Known values of {@link BackendProtocol} that the service accepts. */ export enum KnownBackendProtocol { /** The Backend is a RESTful service. */ @@ -6149,6 +6839,24 @@ export enum KnownPublicNetworkAccess { */ export type PublicNetworkAccess = string; +/** Known values of {@link NatGatewayState} that the service accepts. */ +export enum KnownNatGatewayState { + /** Nat Gateway is enabled for the service. */ + Enabled = "Enabled", + /** Nat Gateway is disabled for the service. */ + Disabled = "Disabled" +} + +/** + * Defines values for NatGatewayState. \ + * {@link KnownNatGatewayState} can be used interchangeably with NatGatewayState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Nat Gateway is enabled for the service. \ + * **Disabled**: Nat Gateway is disabled for the service. + */ +export type NatGatewayState = string; + /** Known values of {@link PlatformVersion} that the service accepts. */ export enum KnownPlatformVersion { /** Platform version cannot be determined, as compute platform is not deployed. */ @@ -6464,6 +7172,45 @@ export enum KnownNotificationName { */ export type NotificationName = string; +/** Known values of {@link PolicyFragmentContentFormat} that the service accepts. */ +export enum KnownPolicyFragmentContentFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml" +} + +/** + * Defines values for PolicyFragmentContentFormat. \ + * {@link KnownPolicyFragmentContentFormat} can be used interchangeably with PolicyFragmentContentFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: The contents are inline and Content type is an XML document. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. + */ +export type PolicyFragmentContentFormat = string; + +/** Known values of {@link PortalSettingsCspMode} that the service accepts. */ +export enum KnownPortalSettingsCspMode { + /** The browser will block requests not matching allowed origins. */ + Enabled = "enabled", + /** The browser will not apply the origin restrictions. */ + Disabled = "disabled", + /** The browser will report requests not matching allowed origins without blocking them. */ + ReportOnly = "reportOnly" +} + +/** + * Defines values for PortalSettingsCspMode. \ + * {@link KnownPortalSettingsCspMode} can be used interchangeably with PortalSettingsCspMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled**: The browser will block requests not matching allowed origins. \ + * **disabled**: The browser will not apply the origin restrictions. \ + * **reportOnly**: The browser will report requests not matching allowed origins without blocking them. + */ +export type PortalSettingsCspMode = string; + /** Known values of {@link PortalRevisionStatus} that the service accepts. */ export enum KnownPortalRevisionStatus { /** Portal's revision has been queued. */ @@ -6514,7 +7261,7 @@ export type PrivateEndpointConnectionProvisioningState = string; /** Known values of {@link SchemaType} that the service accepts. */ export enum KnownSchemaType { - /** Xml schema type. */ + /** XML schema type. */ Xml = "xml", /** Json schema type. */ Json = "json" @@ -6525,7 +7272,7 @@ export enum KnownSchemaType { * {@link KnownSchemaType} can be used interchangeably with SchemaType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **xml**: Xml schema type. \ + * **xml**: XML schema type. \ * **json**: Json schema type. */ export type SchemaType = string; @@ -6660,6 +7407,12 @@ export type AsyncOperationStatus = | "InProgress" | "Succeeded" | "Failed"; +/** Defines values for AsyncResolverStatus. */ +export type AsyncResolverStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; /** Optional parameters. */ export interface ApiListByServiceOptionalParams @@ -7046,80 +7799,186 @@ export interface TagDetachFromProductOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByServiceOptionalParams +export interface TagListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Scope like 'apis', 'products' or 'apis/{apiId} */ + scope?: string; +} + +/** Contains response data for the listByService operation. */ +export type TagListByServiceResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityState operation. */ +export type TagGetEntityStateResponse = TagGetEntityStateHeaders; + +/** Optional parameters. */ +export interface TagGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TagGetResponse = TagGetHeaders & TagContract; + +/** Optional parameters. */ +export interface TagCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type TagUpdateResponse = TagUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByOperationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperationNext operation. */ +export type TagListByOperationNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type TagListByApiNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type TagListByProductNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type TagListByServiceNextResponse = TagCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Scope like 'apis', 'products' or 'apis/{apiId} */ - scope?: string; } -/** Contains response data for the listByService operation. */ -export type TagListByServiceResponse = TagCollection; +/** Contains response data for the listByApi operation. */ +export type GraphQLApiResolverListByApiResponse = ResolverCollection; /** Optional parameters. */ -export interface TagGetEntityStateOptionalParams +export interface GraphQLApiResolverGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityState operation. */ -export type TagGetEntityStateResponse = TagGetEntityStateHeaders; +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetOptionalParams extends coreClient.OperationOptions {} +export interface GraphQLApiResolverGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TagGetResponse = TagGetHeaders & TagContract; +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & + ResolverContract; /** Optional parameters. */ -export interface TagCreateOrUpdateOptionalParams +export interface GraphQLApiResolverCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; +export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & + ResolverContract; /** Optional parameters. */ -export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} +export interface GraphQLApiResolverUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type TagUpdateResponse = TagUpdateHeaders & TagContract; +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & + ResolverContract; /** Optional parameters. */ -export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} +export interface GraphQLApiResolverDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByOperationNextOptionalParams +export interface GraphQLApiResolverListByApiNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByOperationNext operation. */ -export type TagListByOperationNextResponse = TagCollection; +/** Contains response data for the listByApiNext operation. */ +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; /** Optional parameters. */ -export interface TagListByApiNextOptionalParams +export interface GraphQLApiResolverPolicyListByResolverOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type TagListByApiNextResponse = TagCollection; +/** Contains response data for the listByResolver operation. */ +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; /** Optional parameters. */ -export interface TagListByProductNextOptionalParams +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type TagListByProductNextResponse = TagCollection; +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface TagListByServiceNextOptionalParams +export interface GraphQLApiResolverPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TagListByServiceNextResponse = TagCollection; +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolverNext operation. */ +export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; /** Optional parameters. */ export interface ApiProductListByApisOptionalParams @@ -7520,31 +8379,257 @@ export interface OperationListByTagsOptionalParams top?: number; /** Number of records to skip. */ skip?: number; - /** Include not tagged Operations. */ - includeNotTaggedOperations?: boolean; + /** Include not tagged Operations. */ + includeNotTaggedOperations?: boolean; +} + +/** Contains response data for the listByTags operation. */ +export type OperationListByTagsResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface OperationListByTagsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTagsNext operation. */ +export type OperationListByTagsNextResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiWikiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & + WikiContract; + +/** Optional parameters. */ +export interface ApiWikiUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiWikisListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type ApiWikisListResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiWikisListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiWikisListNextResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiExportGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiExportGetResponse = ApiExportResult; + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface ApiVersionSetGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiVersionSetGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiVersionSetCreateOrUpdateResponse = ApiVersionSetCreateOrUpdateHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; + +/** Optional parameters. */ +export interface AuthorizationServerGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; + +/** Optional parameters. */ +export interface AuthorizationServerGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & + AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & + AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & + AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationServerListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & + AuthorizationServerSecretsContract; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the listByTags operation. */ -export type OperationListByTagsResponse = TagResourceCollection; +/** Contains response data for the listByService operation. */ +export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; /** Optional parameters. */ -export interface OperationListByTagsNextOptionalParams +export interface AuthorizationProviderGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type OperationListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the get operation. */ +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & + AuthorizationProviderContract; /** Optional parameters. */ -export interface ApiExportGetOptionalParams +export interface AuthorizationProviderCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & + AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiExportGetResponse = ApiExportResult; +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; /** Optional parameters. */ -export interface ApiVersionSetListByServiceOptionalParams +export interface AuthorizationListByAuthorizationProviderOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7552,56 +8637,56 @@ export interface ApiVersionSetListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; - -/** Optional parameters. */ -export interface ApiVersionSetGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders; +/** Contains response data for the listByAuthorizationProvider operation. */ +export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; /** Optional parameters. */ -export interface ApiVersionSetGetOptionalParams +export interface AuthorizationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & - ApiVersionSetContract; +export type AuthorizationGetResponse = AuthorizationGetHeaders & + AuthorizationContract; /** Optional parameters. */ -export interface ApiVersionSetCreateOrUpdateOptionalParams +export interface AuthorizationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiVersionSetCreateOrUpdateResponse = ApiVersionSetCreateOrUpdateHeaders & - ApiVersionSetContract; +export type AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & + AuthorizationContract; /** Optional parameters. */ -export interface ApiVersionSetUpdateOptionalParams +export interface AuthorizationDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & - ApiVersionSetContract; +/** Optional parameters. */ +export interface AuthorizationConfirmConsentCodeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the confirmConsentCode operation. */ +export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; /** Optional parameters. */ -export interface ApiVersionSetDeleteOptionalParams +export interface AuthorizationListByAuthorizationProviderNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAuthorizationProviderNext operation. */ +export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; + /** Optional parameters. */ -export interface ApiVersionSetListByServiceNextOptionalParams +export interface AuthorizationLoginLinksPostOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; +/** Contains response data for the post operation. */ +export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & + AuthorizationLoginResponseContract; /** Optional parameters. */ -export interface AuthorizationServerListByServiceOptionalParams +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams extends coreClient.OperationOptions { /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; @@ -7611,61 +8696,38 @@ export interface AuthorizationServerListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; - -/** Optional parameters. */ -export interface AuthorizationServerGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; +/** Contains response data for the listByAuthorization operation. */ +export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; /** Optional parameters. */ -export interface AuthorizationServerGetOptionalParams +export interface AuthorizationAccessPolicyGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & - AuthorizationServerContract; +export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & + AuthorizationAccessPolicyContract; /** Optional parameters. */ -export interface AuthorizationServerCreateOrUpdateOptionalParams +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & - AuthorizationServerContract; - -/** Optional parameters. */ -export interface AuthorizationServerUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & - AuthorizationServerContract; - -/** Optional parameters. */ -export interface AuthorizationServerDeleteOptionalParams - extends coreClient.OperationOptions {} +export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & + AuthorizationAccessPolicyContract; /** Optional parameters. */ -export interface AuthorizationServerListSecretsOptionalParams +export interface AuthorizationAccessPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & - AuthorizationServerSecretsContract; - /** Optional parameters. */ -export interface AuthorizationServerListByServiceNextOptionalParams +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +/** Contains response data for the listByAuthorizationNext operation. */ +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; /** Optional parameters. */ export interface BackendListByServiceOptionalParams @@ -8060,6 +9122,18 @@ export interface ApiManagementServiceDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ApiManagementServiceMigrateToStv2OptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the migrateToStv2 operation. */ +export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; + /** Optional parameters. */ export interface ApiManagementServiceListByResourceGroupOptionalParams extends coreClient.OperationOptions {} @@ -9014,6 +10088,107 @@ export interface PolicyDescriptionListByServiceOptionalParams /** Contains response data for the listByService operation. */ export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; +/** Optional parameters. */ +export interface PolicyFragmentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} + +/** Contains response data for the listByService operation. */ +export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; + +/** Optional parameters. */ +export interface PolicyFragmentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface PolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} + +/** Contains response data for the get operation. */ +export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & + PolicyFragmentContract; + +/** Optional parameters. */ +export interface PolicyFragmentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & + PolicyFragmentContract; + +/** Optional parameters. */ +export interface PolicyFragmentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PolicyFragmentListReferencesOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listReferences operation. */ +export type PolicyFragmentListReferencesResponse = ResourceCollection; + +/** Optional parameters. */ +export interface PortalConfigListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type PortalConfigListByServiceResponse = PortalConfigCollection; + +/** Optional parameters. */ +export interface PortalConfigGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; + +/** Optional parameters. */ +export interface PortalConfigGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PortalConfigGetResponse = PortalConfigGetHeaders & + PortalConfigContract; + +/** Optional parameters. */ +export interface PortalConfigUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type PortalConfigUpdateResponse = PortalConfigContract; + +/** Optional parameters. */ +export interface PortalConfigCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + /** Optional parameters. */ export interface PortalRevisionListByServiceOptionalParams extends coreClient.OperationOptions { @@ -9462,6 +10637,64 @@ export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHea export interface ProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} +/** Optional parameters. */ +export interface ProductWikiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ProductWikiGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; + +/** Optional parameters. */ +export interface ProductWikiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & + WikiContract; + +/** Optional parameters. */ +export interface ProductWikiUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; + +/** Optional parameters. */ +export interface ProductWikiDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ProductWikisListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; + +/** Optional parameters. */ +export interface ProductWikisListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & + WikiCollection; + /** Optional parameters. */ export interface QuotaByCounterKeysListByServiceOptionalParams extends coreClient.OperationOptions {} @@ -10133,6 +11366,65 @@ export interface UserConfirmationPasswordSendOptionalParams appType?: AppType; } +/** Optional parameters. */ +export interface DocumentationListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type DocumentationListByServiceResponse = DocumentationCollection; + +/** Optional parameters. */ +export interface DocumentationGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; + +/** Optional parameters. */ +export interface DocumentationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DocumentationGetResponse = DocumentationGetHeaders & + DocumentationContract; + +/** Optional parameters. */ +export interface DocumentationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & + DocumentationContract; + +/** Optional parameters. */ +export interface DocumentationUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & + DocumentationContract; + +/** Optional parameters. */ +export interface DocumentationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DocumentationListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type DocumentationListByServiceNextResponse = DocumentationCollection; + /** Optional parameters. */ export interface ApiManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts index c52a89b3a64d..8234e98b768a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts @@ -254,6 +254,34 @@ export const AuthenticationSettingsContract: coreClient.CompositeMapper = { name: "Composite", className: "OpenIdAuthenticationSettingsContract" } + }, + oAuth2AuthenticationSettings: { + serializedName: "oAuth2AuthenticationSettings", + xmlName: "oAuth2AuthenticationSettings", + xmlElementName: "OAuth2AuthenticationSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OAuth2AuthenticationSettingsContract" + } + } + } + }, + openidAuthenticationSettings: { + serializedName: "openidAuthenticationSettings", + xmlName: "openidAuthenticationSettings", + xmlElementName: "OpenIdAuthenticationSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract" + } + } + } } } } @@ -749,6 +777,13 @@ export const ApiCreateOrUpdateParameter: coreClient.CompositeMapper = { type: { name: "String" } + }, + translateRequiredQueryParametersConduct: { + serializedName: "properties.translateRequiredQueryParameters", + xmlName: "properties.translateRequiredQueryParameters", + type: { + name: "String" + } } } } @@ -1678,6 +1713,88 @@ export const TagCollection: coreClient.CompositeMapper = { } }; +export const ResolverCollection: coreClient.CompositeMapper = { + serializedName: "ResolverCollection", + type: { + name: "Composite", + className: "ResolverCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "ResolverContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolverContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResolverUpdateContract: coreClient.CompositeMapper = { + serializedName: "ResolverUpdateContract", + type: { + name: "Composite", + className: "ResolverUpdateContract", + modelProperties: { + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + path: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.path", + xmlName: "properties.path", + type: { + name: "String" + } + }, + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + export const ProductCollection: coreClient.CompositeMapper = { serializedName: "ProductCollection", type: { @@ -2515,6 +2632,80 @@ export const OperationTagResourceContractProperties: coreClient.CompositeMapper } }; +export const WikiDocumentationContract: coreClient.CompositeMapper = { + serializedName: "WikiDocumentationContract", + type: { + name: "Composite", + className: "WikiDocumentationContract", + modelProperties: { + documentationId: { + serializedName: "documentationId", + xmlName: "documentationId", + type: { + name: "String" + } + } + } + } +}; + +export const WikiUpdateContract: coreClient.CompositeMapper = { + serializedName: "WikiUpdateContract", + type: { + name: "Composite", + className: "WikiUpdateContract", + modelProperties: { + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract" + } + } + } + } + } + } +}; + +export const WikiCollection: coreClient.CompositeMapper = { + serializedName: "WikiCollection", + type: { + name: "Composite", + className: "WikiCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "WikiContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ApiExportResult: coreClient.CompositeMapper = { serializedName: "ApiExportResult", type: { @@ -2908,33 +3099,26 @@ export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { } }; -export const BackendCollection: coreClient.CompositeMapper = { - serializedName: "BackendCollection", +export const AuthorizationProviderCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderCollection", type: { name: "Composite", - className: "BackendCollection", + className: "AuthorizationProviderCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "BackendContract", + xmlElementName: "AuthorizationProviderContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BackendContract" + className: "AuthorizationProviderContract" } } } }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } - }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", @@ -2946,88 +3130,328 @@ export const BackendCollection: coreClient.CompositeMapper = { } }; -export const BackendBaseParameters: coreClient.CompositeMapper = { - serializedName: "BackendBaseParameters", +export const AuthorizationProviderOAuth2Settings: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2Settings", type: { name: "Composite", - className: "BackendBaseParameters", + className: "AuthorizationProviderOAuth2Settings", modelProperties: { - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "title", - xmlName: "title", + redirectUrl: { + serializedName: "redirectUrl", + xmlName: "redirectUrl", type: { name: "String" } }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "description", - xmlName: "description", + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", type: { - name: "String" + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes" } - }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "resourceId", - xmlName: "resourceId", + } + } + } +}; + +export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2GrantTypes", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes", + modelProperties: { + authorizationCode: { + serializedName: "authorizationCode", + xmlName: "authorizationCode", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - properties: { - serializedName: "properties", - xmlName: "properties", + clientCredentials: { + serializedName: "clientCredentials", + xmlName: "clientCredentials", type: { - name: "Composite", - className: "BackendProperties" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - credentials: { - serializedName: "credentials", - xmlName: "credentials", + } + } + } +}; + +export const AuthorizationCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationCollection", + type: { + name: "Composite", + className: "AuthorizationCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationContract", type: { - name: "Composite", - className: "BackendCredentialsContract" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationContract" + } + } } }, - proxy: { - serializedName: "proxy", - xmlName: "proxy", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Composite", - className: "BackendProxyContract" + name: "Number" } }, - tls: { - serializedName: "tls", - xmlName: "tls", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Composite", - className: "BackendTlsProperties" + name: "String" } } } } }; -export const BackendProperties: coreClient.CompositeMapper = { - serializedName: "BackendProperties", +export const AuthorizationError: coreClient.CompositeMapper = { + serializedName: "AuthorizationError", type: { name: "Composite", - className: "BackendProperties", + className: "AuthorizationError", modelProperties: { - serviceFabricCluster: { + code: { + serializedName: "code", + xmlName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + xmlName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginRequestContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginRequestContract", + type: { + name: "Composite", + className: "AuthorizationLoginRequestContract", + modelProperties: { + postLoginRedirectUrl: { + serializedName: "postLoginRedirectUrl", + xmlName: "postLoginRedirectUrl", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginResponseContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginResponseContract", + type: { + name: "Composite", + className: "AuthorizationLoginResponseContract", + modelProperties: { + loginLink: { + serializedName: "loginLink", + xmlName: "loginLink", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationConfirmConsentCodeRequestContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationConfirmConsentCodeRequestContract", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeRequestContract", + modelProperties: { + consentCode: { + serializedName: "consentCode", + xmlName: "consentCode", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyCollection", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationAccessPolicyContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationAccessPolicyContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const BackendCollection: coreClient.CompositeMapper = { + serializedName: "BackendCollection", + type: { + name: "Composite", + className: "BackendCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "BackendContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const BackendBaseParameters: coreClient.CompositeMapper = { + serializedName: "BackendBaseParameters", + type: { + name: "Composite", + className: "BackendBaseParameters", + modelProperties: { + title: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "title", + xmlName: "title", + type: { + name: "String" + } + }, + description: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "description", + xmlName: "description", + type: { + name: "String" + } + }, + resourceId: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "resourceId", + xmlName: "resourceId", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + xmlName: "properties", + type: { + name: "Composite", + className: "BackendProperties" + } + }, + credentials: { + serializedName: "credentials", + xmlName: "credentials", + type: { + name: "Composite", + className: "BackendCredentialsContract" + } + }, + proxy: { + serializedName: "proxy", + xmlName: "proxy", + type: { + name: "Composite", + className: "BackendProxyContract" + } + }, + tls: { + serializedName: "tls", + xmlName: "tls", + type: { + name: "Composite", + className: "BackendTlsProperties" + } + } + } + } +}; + +export const BackendProperties: coreClient.CompositeMapper = { + serializedName: "BackendProperties", + type: { + name: "Composite", + className: "BackendProperties", + modelProperties: { + serviceFabricCluster: { serializedName: "serviceFabricCluster", xmlName: "serviceFabricCluster", type: { @@ -4578,6 +5002,28 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "Boolean" } }, + natGatewayState: { + serializedName: "natGatewayState", + xmlName: "natGatewayState", + type: { + name: "String" + } + }, + outboundPublicIPAddresses: { + serializedName: "outboundPublicIPAddresses", + readOnly: true, + xmlName: "outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, disableGateway: { defaultValue: false, serializedName: "disableGateway", @@ -4886,6 +5332,27 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "String" } }, + natGatewayState: { + serializedName: "natGatewayState", + xmlName: "natGatewayState", + type: { + name: "String" + } + }, + outboundPublicIPAddresses: { + serializedName: "outboundPublicIPAddresses", + readOnly: true, + xmlName: "outboundPublicIPAddresses", + xmlElementName: "AdditionalLocationOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, disableGateway: { defaultValue: false, serializedName: "disableGateway", @@ -6192,6 +6659,16 @@ export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { type: { name: "String" } + }, + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "clientLibrary", + xmlName: "clientLibrary", + type: { + name: "String" + } } } } @@ -6280,6 +6757,16 @@ export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { name: "String" } }, + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", + type: { + name: "String" + } + }, clientId: { constraints: { MinLength: 1 @@ -6916,6 +7403,20 @@ export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { type: { name: "String" } + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean" + } + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean" + } } } } @@ -7071,11 +7572,287 @@ export const PolicyDescriptionCollection: coreClient.CompositeMapper = { } }; -export const PortalRevisionCollection: coreClient.CompositeMapper = { - serializedName: "PortalRevisionCollection", +export const PolicyFragmentCollection: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentCollection", type: { name: "Composite", - className: "PortalRevisionCollection", + className: "PolicyFragmentCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PolicyFragmentContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyFragmentContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceCollection: coreClient.CompositeMapper = { + serializedName: "ResourceCollection", + type: { + name: "Composite", + className: "ResourceCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ResourceCollectionValueItem", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceCollectionValueItem" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigCollection: coreClient.CompositeMapper = { + serializedName: "PortalConfigCollection", + type: { + name: "Composite", + className: "PortalConfigCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PortalConfigContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PortalConfigContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigPropertiesSignin: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignin", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignin", + modelProperties: { + require: { + defaultValue: false, + serializedName: "require", + xmlName: "require", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PortalConfigPropertiesSignup: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignup", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignup", + modelProperties: { + termsOfService: { + serializedName: "termsOfService", + xmlName: "termsOfService", + type: { + name: "Composite", + className: "PortalConfigTermsOfServiceProperties" + } + } + } + } +}; + +export const PortalConfigTermsOfServiceProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigTermsOfServiceProperties", + type: { + name: "Composite", + className: "PortalConfigTermsOfServiceProperties", + modelProperties: { + text: { + serializedName: "text", + xmlName: "text", + type: { + name: "String" + } + }, + requireConsent: { + defaultValue: false, + serializedName: "requireConsent", + xmlName: "requireConsent", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PortalConfigDelegationProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigDelegationProperties", + type: { + name: "Composite", + className: "PortalConfigDelegationProperties", + modelProperties: { + delegateRegistration: { + defaultValue: false, + serializedName: "delegateRegistration", + xmlName: "delegateRegistration", + type: { + name: "Boolean" + } + }, + delegateSubscription: { + defaultValue: false, + serializedName: "delegateSubscription", + xmlName: "delegateSubscription", + type: { + name: "Boolean" + } + }, + delegationUrl: { + serializedName: "delegationUrl", + xmlName: "delegationUrl", + type: { + name: "String" + } + }, + validationKey: { + serializedName: "validationKey", + xmlName: "validationKey", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigCorsProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCorsProperties", + type: { + name: "Composite", + className: "PortalConfigCorsProperties", + modelProperties: { + allowedOrigins: { + serializedName: "allowedOrigins", + xmlName: "allowedOrigins", + xmlElementName: "PortalConfigCorsPropertiesAllowedOriginsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PortalConfigCspProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCspProperties", + type: { + name: "Composite", + className: "PortalConfigCspProperties", + modelProperties: { + mode: { + defaultValue: "disabled", + serializedName: "mode", + xmlName: "mode", + type: { + name: "String" + } + }, + reportUri: { + serializedName: "reportUri", + xmlName: "reportUri", + xmlElementName: "PortalConfigCspPropertiesReportUriItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowedSources: { + serializedName: "allowedSources", + xmlName: "allowedSources", + xmlElementName: "PortalConfigCspPropertiesAllowedSourcesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PortalRevisionCollection: coreClient.CompositeMapper = { + serializedName: "PortalRevisionCollection", + type: { + name: "Composite", + className: "PortalRevisionCollection", modelProperties: { value: { serializedName: "value", @@ -9290,25 +10067,82 @@ export const UserTokenResult: coreClient.CompositeMapper = { } }; -export const ApiRevisionInfoContract: coreClient.CompositeMapper = { - serializedName: "ApiRevisionInfoContract", +export const DocumentationCollection: coreClient.CompositeMapper = { + serializedName: "DocumentationCollection", type: { name: "Composite", - className: "ApiRevisionInfoContract", + className: "DocumentationCollection", modelProperties: { - sourceApiId: { - serializedName: "sourceApiId", - xmlName: "sourceApiId", + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "DocumentationContract", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DocumentationContract" + } + } } }, - apiVersionName: { - constraints: { - MaxLength: 100 - }, - serializedName: "apiVersionName", - xmlName: "apiVersionName", + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationUpdateContract: coreClient.CompositeMapper = { + serializedName: "DocumentationUpdateContract", + type: { + name: "Composite", + className: "DocumentationUpdateContract", + modelProperties: { + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", + type: { + name: "String" + } + } + } + } +}; + +export const ApiRevisionInfoContract: coreClient.CompositeMapper = { + serializedName: "ApiRevisionInfoContract", + type: { + name: "Composite", + className: "ApiRevisionInfoContract", + modelProperties: { + sourceApiId: { + serializedName: "sourceApiId", + xmlName: "sourceApiId", + type: { + name: "String" + } + }, + apiVersionName: { + constraints: { + MaxLength: 100 + }, + serializedName: "apiVersionName", + xmlName: "apiVersionName", type: { name: "String" } @@ -9359,6 +10193,37 @@ export const QuotaCounterValueContract: coreClient.CompositeMapper = { } }; +export const ResolverResultLogItemContract: coreClient.CompositeMapper = { + serializedName: "ResolverResultLogItemContract", + type: { + name: "Composite", + className: "ResolverResultLogItemContract", + modelProperties: { + objectType: { + serializedName: "objectType", + xmlName: "objectType", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + xmlName: "action", + type: { + name: "String" + } + }, + objectKey: { + serializedName: "objectKey", + xmlName: "objectKey", + type: { + name: "String" + } + } + } + } +}; + export const ApiContractProperties: coreClient.CompositeMapper = { serializedName: "ApiContractProperties", type: { @@ -9549,232 +10414,248 @@ export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { } }; -export const ApiContract: coreClient.CompositeMapper = { - serializedName: "ApiContract", +export const ProxyResource: coreClient.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - className: "ApiContract", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", modelProperties: { ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + privateEndpoint: { + serializedName: "properties.privateEndpoint", + xmlName: "properties.privateEndpoint", type: { - name: "String" + name: "Composite", + className: "PrivateEndpoint" } }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + xmlName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "AuthenticationSettingsContract" + className: "PrivateLinkServiceConnectionState" } }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" + name: "String" } - }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + groupId: { + serializedName: "properties.groupId", + readOnly: true, + xmlName: "properties.groupId", type: { name: "String" } }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, + xmlName: "properties.requiredMembers", + xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - apiVersion: { + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + xmlName: "properties.requiredZoneNames", + xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const OperationContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationContractProperties", + type: { + name: "Composite", + className: "OperationContractProperties", + modelProperties: { + ...OperationEntityBaseContract.type.modelProperties, + displayName: { constraints: { - MaxLength: 100 + MaxLength: 300, + MinLength: 1 }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", - type: { - name: "Boolean" - } - }, - isOnline: { - serializedName: "properties.isOnline", - readOnly: true, - xmlName: "properties.isOnline", + method: { + serializedName: "method", + required: true, + xmlName: "method", type: { - name: "Boolean" + name: "String" } }, - apiRevisionDescription: { + urlTemplate: { constraints: { - MaxLength: 256 + MaxLength: 1000, + MinLength: 1 }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", + serializedName: "urlTemplate", + required: true, + xmlName: "urlTemplate", type: { name: "String" } - }, - apiVersionDescription: { + } + } + } +}; + +export const OperationUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationUpdateContractProperties", + type: { + name: "Composite", + className: "OperationUpdateContractProperties", + modelProperties: { + ...OperationEntityBaseContract.type.modelProperties, + displayName: { constraints: { - MaxLength: 256 + MaxLength: 300, + MinLength: 1 }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + method: { + serializedName: "method", + xmlName: "method", type: { name: "String" } }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", - type: { - name: "Boolean" - } - }, - termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "urlTemplate", + xmlName: "urlTemplate", type: { name: "String" } - }, - contact: { - serializedName: "properties.contact", - xmlName: "properties.contact", - type: { - name: "Composite", - className: "ApiContactInformation" - } - }, - license: { - serializedName: "properties.license", - xmlName: "properties.license", - type: { - name: "Composite", - className: "ApiLicenseInformation" - } - }, - sourceApiId: { - serializedName: "properties.sourceApiId", - xmlName: "properties.sourceApiId", - type: { - name: "String" - } - }, + } + } + } +}; + +export const ProductContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductContractProperties", + type: { + name: "Composite", + className: "ProductContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, displayName: { constraints: { MaxLength: 300, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } - }, - serviceUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + } + } + } +}; + +export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductTagResourceContractProperties", + type: { + name: "Composite", + className: "ProductTagResourceContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", type: { name: "String" } }, - path: { + name: { constraints: { - MaxLength: 400 + MaxLength: 300, + MinLength: 1 }, - serializedName: "properties.path", - xmlName: "properties.path", + serializedName: "name", + required: true, + xmlName: "name", type: { name: "String" } - }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - xmlName: "properties.apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } } } } }; -export const ApiReleaseContract: coreClient.CompositeMapper = { - serializedName: "ApiReleaseContract", +export const ProductUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ProductUpdateProperties", type: { name: "Composite", - className: "ApiReleaseContract", + className: "ProductUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", - type: { - name: "String" - } - }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", - type: { - name: "DateTime" - } - }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", - type: { - name: "DateTime" - } - }, - notes: { - serializedName: "properties.notes", - xmlName: "properties.notes", + ...ProductEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } @@ -9783,91 +10664,65 @@ export const ApiReleaseContract: coreClient.CompositeMapper = { } }; -export const OperationContract: coreClient.CompositeMapper = { - serializedName: "OperationContract", +export const IssueContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueContractProperties", type: { name: "Composite", - className: "OperationContract", + className: "IssueContractProperties", modelProperties: { - ...Resource.type.modelProperties, - templateParameters: { - serializedName: "properties.templateParameters", - xmlName: "properties.templateParameters", - xmlElementName: "ParameterContract", + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + required: true, + xmlName: "title", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterContract" - } - } + name: "String" } }, description: { - constraints: { - MaxLength: 1000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "description", + required: true, + xmlName: "description", type: { name: "String" } }, - request: { - serializedName: "properties.request", - xmlName: "properties.request", - type: { - name: "Composite", - className: "RequestContract" - } - }, - responses: { - serializedName: "properties.responses", - xmlName: "properties.responses", - xmlElementName: "ResponseContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResponseContract" - } - } - } - }, - policies: { - serializedName: "properties.policies", - xmlName: "properties.policies", + userId: { + serializedName: "userId", + required: true, + xmlName: "userId", type: { name: "String" } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + } + } + } +}; + +export const IssueUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueUpdateContractProperties", + type: { + name: "Composite", + className: "IssueUpdateContractProperties", + modelProperties: { + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + xmlName: "title", type: { name: "String" } }, - method: { - serializedName: "properties.method", - xmlName: "properties.method", + description: { + serializedName: "description", + xmlName: "description", type: { name: "String" } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "properties.urlTemplate", - xmlName: "properties.urlTemplate", + userId: { + serializedName: "userId", + xmlName: "userId", type: { name: "String" } @@ -9876,24 +10731,27 @@ export const OperationContract: coreClient.CompositeMapper = { } }; -export const PolicyContract: coreClient.CompositeMapper = { - serializedName: "PolicyContract", +export const TagDescriptionContractProperties: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContractProperties", type: { name: "Composite", - className: "PolicyContract", + className: "TagDescriptionContractProperties", modelProperties: { - ...Resource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + ...TagDescriptionBaseProperties.type.modelProperties, + tagId: { + serializedName: "tagId", + xmlName: "tagId", type: { name: "String" } }, - format: { - defaultValue: "xml", - serializedName: "properties.format", - xmlName: "properties.format", + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } @@ -9902,20 +10760,29 @@ export const PolicyContract: coreClient.CompositeMapper = { } }; -export const TagContract: coreClient.CompositeMapper = { - serializedName: "TagContract", +export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContractProperties", type: { name: "Composite", - className: "TagContract", + className: "ApiVersionSetContractProperties", modelProperties: { - ...Resource.type.modelProperties, + ...ApiVersionSetEntityBase.type.modelProperties, displayName: { constraints: { - MaxLength: 160, + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + required: true, + xmlName: "displayName", + type: { + name: "String" + } + }, + versioningScheme: { + serializedName: "versioningScheme", + required: true, + xmlName: "versioningScheme", type: { name: "String" } @@ -9924,276 +10791,298 @@ export const TagContract: coreClient.CompositeMapper = { } }; -export const ProductContract: coreClient.CompositeMapper = { - serializedName: "ProductContract", +export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetUpdateParametersProperties", type: { name: "Composite", - className: "ProductContract", + className: "ApiVersionSetUpdateParametersProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { + ...ApiVersionSetEntityBase.type.modelProperties, + displayName: { constraints: { - MaxLength: 1000 + MaxLength: 100, + MinLength: 1 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - terms: { - serializedName: "properties.terms", - xmlName: "properties.terms", + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", type: { name: "String" } - }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + } + } + } +}; + +export const AuthorizationServerContractProperties: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContractProperties", + type: { + name: "Composite", + className: "AuthorizationServerContractProperties", + modelProperties: { + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { - name: "Boolean" + name: "String" } }, - approvalRequired: { - serializedName: "properties.approvalRequired", - xmlName: "properties.approvalRequired", + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", type: { name: "Boolean" } }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", - xmlName: "properties.subscriptionsLimit", - type: { - name: "Number" - } - }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", type: { - name: "Enum", - allowedValues: ["notPublished", "published"] + name: "Boolean" } }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + required: true, + xmlName: "clientRegistrationEndpoint", type: { name: "String" } - } - } - } -}; - -export const SchemaContract: coreClient.CompositeMapper = { - serializedName: "SchemaContract", - type: { - name: "Composite", - className: "SchemaContract", - modelProperties: { - ...Resource.type.modelProperties, - contentType: { - serializedName: "properties.contentType", - xmlName: "properties.contentType", + }, + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + required: true, + xmlName: "authorizationEndpoint", type: { name: "String" } }, - value: { - serializedName: "properties.document.value", - xmlName: "properties.document.value", + grantTypes: { + serializedName: "grantTypes", + required: true, + xmlName: "grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - definitions: { - serializedName: "properties.document.definitions", - xmlName: "properties.document.definitions", + clientId: { + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - components: { - serializedName: "properties.document.components", - xmlName: "properties.document.components", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } } } } }; -export const DiagnosticContract: coreClient.CompositeMapper = { - serializedName: "DiagnosticContract", +export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContractProperties", type: { name: "Composite", - className: "DiagnosticContract", + className: "AuthorizationServerUpdateContractProperties", modelProperties: { - ...Resource.type.modelProperties, - alwaysLog: { - serializedName: "properties.alwaysLog", - xmlName: "properties.alwaysLog", - type: { - name: "String" - } - }, - loggerId: { - serializedName: "properties.loggerId", - xmlName: "properties.loggerId", + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - sampling: { - serializedName: "properties.sampling", - xmlName: "properties.sampling", - type: { - name: "Composite", - className: "SamplingSettings" - } - }, - frontend: { - serializedName: "properties.frontend", - xmlName: "properties.frontend", + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", type: { - name: "Composite", - className: "PipelineDiagnosticSettings" + name: "Boolean" } }, - backend: { - serializedName: "properties.backend", - xmlName: "properties.backend", + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", type: { - name: "Composite", - className: "PipelineDiagnosticSettings" + name: "Boolean" } }, - logClientIp: { - serializedName: "properties.logClientIp", - xmlName: "properties.logClientIp", + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + xmlName: "clientRegistrationEndpoint", type: { - name: "Boolean" + name: "String" } }, - httpCorrelationProtocol: { - serializedName: "properties.httpCorrelationProtocol", - xmlName: "properties.httpCorrelationProtocol", + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + xmlName: "authorizationEndpoint", type: { name: "String" } }, - verbosity: { - serializedName: "properties.verbosity", - xmlName: "properties.verbosity", + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - operationNameFormat: { - serializedName: "properties.operationNameFormat", - xmlName: "properties.operationNameFormat", + clientId: { + serializedName: "clientId", + xmlName: "clientId", type: { name: "String" } }, - metrics: { - serializedName: "properties.metrics", - xmlName: "properties.metrics", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "Boolean" + name: "String" } } } } }; -export const IssueContract: coreClient.CompositeMapper = { - serializedName: "IssueContract", +export const BackendContractProperties: coreClient.CompositeMapper = { + serializedName: "BackendContractProperties", type: { name: "Composite", - className: "IssueContract", + className: "BackendContractProperties", modelProperties: { - ...Resource.type.modelProperties, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", + ...BackendBaseParameters.type.modelProperties, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "url", + required: true, + xmlName: "url", type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "String" - } - }, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + protocol: { + serializedName: "protocol", + required: true, + xmlName: "protocol", type: { name: "String" } - }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + } + } + } +}; + +export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameterProperties", + type: { + name: "Composite", + className: "BackendUpdateParameterProperties", + modelProperties: { + ...BackendBaseParameters.type.modelProperties, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "url", + xmlName: "url", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + protocol: { + serializedName: "protocol", + xmlName: "protocol", type: { name: "String" } - }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + } + } + } +}; + +export const KeyVaultContractProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultContractProperties", + type: { + name: "Composite", + className: "KeyVaultContractProperties", + modelProperties: { + ...KeyVaultContractCreateProperties.type.modelProperties, + lastStatus: { + serializedName: "lastStatus", + xmlName: "lastStatus", type: { - name: "String" + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties" } } } } }; -export const IssueCommentContract: coreClient.CompositeMapper = { - serializedName: "IssueCommentContract", +export const ApiManagementServiceProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceProperties", type: { name: "Composite", - className: "IssueCommentContract", + className: "ApiManagementServiceProperties", modelProperties: { - ...Resource.type.modelProperties, - text: { - serializedName: "properties.text", - xmlName: "properties.text", + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherEmail", + required: true, + xmlName: "publisherEmail", type: { name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherName", + required: true, + xmlName: "publisherName", type: { name: "String" } @@ -10202,30 +11091,29 @@ export const IssueCommentContract: coreClient.CompositeMapper = { } }; -export const IssueAttachmentContract: coreClient.CompositeMapper = { - serializedName: "IssueAttachmentContract", +export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateProperties", type: { name: "Composite", - className: "IssueAttachmentContract", + className: "ApiManagementServiceUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - contentFormat: { - serializedName: "properties.contentFormat", - xmlName: "properties.contentFormat", + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherEmail", + xmlName: "publisherEmail", type: { name: "String" } }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherName", + xmlName: "publisherName", type: { name: "String" } @@ -10234,158 +11122,168 @@ export const IssueAttachmentContract: coreClient.CompositeMapper = { } }; -export const TagDescriptionContract: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContract", +export const ApiManagementServiceResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceResource", type: { name: "Composite", - className: "TagDescriptionContract", + className: "ApiManagementServiceResource", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", type: { - name: "String" + name: "Composite", + className: "ApiManagementServiceSkuProperties" } }, - externalDocsUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.externalDocsUrl", - xmlName: "properties.externalDocsUrl", + identity: { + serializedName: "identity", + xmlName: "identity", type: { - name: "String" + name: "Composite", + className: "ApiManagementServiceIdentity" } }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", - xmlName: "properties.externalDocsDescription", + systemData: { + serializedName: "systemData", + xmlName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - tagId: { - serializedName: "properties.tagId", - xmlName: "properties.tagId", + location: { + serializedName: "location", + required: true, + xmlName: "location", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", type: { name: "String" } - } - } - } -}; - -export const ApiVersionSetContract: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContract", - type: { - name: "Composite", - className: "ApiVersionSetContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceResourceZonesItem", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - versionQueryName: { + notificationSenderEmail: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.versionQueryName", - xmlName: "properties.versionQueryName", + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", type: { name: "String" } }, - versionHeaderName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.versionHeaderName", - xmlName: "properties.versionHeaderName", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", type: { name: "String" } }, - versioningScheme: { - serializedName: "properties.versioningScheme", - xmlName: "properties.versioningScheme", + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const AuthorizationServerContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContract", - type: { - name: "Composite", - className: "AuthorizationServerContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", type: { name: "String" } }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", + type: { + name: "String" + } + }, + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", + type: { + name: "String" + } + }, + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", + type: { + name: "String" + } + }, + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", + type: { + name: "String" + } + }, + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", + type: { + name: "String" + } + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", type: { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] + name: "Composite", + className: "HostnameConfiguration" } } } }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", type: { name: "Sequence", element: { @@ -10395,97 +11293,100 @@ export const AuthorizationServerContract: coreClient.CompositeMapper = { } } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "TokenBodyParameterContract" + name: "String" } } } }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", type: { name: "String" } }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", type: { - name: "Boolean" + name: "String" } }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", type: { - name: "String" + name: "Composite", + className: "VirtualNetworkConfiguration" } }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AdditionalLocation" } } } }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } } }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", type: { - name: "String" + name: "Boolean" } }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", type: { name: "String" } }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", type: { name: "Sequence", element: { @@ -10495,113 +11396,121 @@ export const AuthorizationServerContract: coreClient.CompositeMapper = { } } }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", type: { - name: "String" + name: "Boolean" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", type: { name: "String" } - } - } - } -}; - -export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContract", - type: { - name: "Composite", - className: "AuthorizationServerUpdateContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", type: { - name: "String" + name: "Composite", + className: "ApiVersionConstraint" } }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", + type: { + name: "Boolean" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", type: { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper" } } } }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + publisherEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.publisherEmail", + required: true, + xmlName: "properties.publisherEmail", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } + name: "String" } }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.publisherName", + required: true, + xmlName: "properties.publisherName", type: { name: "String" } + } + } + } +}; + +export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateParameters", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateParameters", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties" + } }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + identity: { + serializedName: "identity", + xmlName: "identity", type: { - name: "Boolean" + name: "Composite", + className: "ApiManagementServiceIdentity" } }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", type: { name: "String" } }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", type: { name: "Sequence", element: { @@ -10611,231 +11520,290 @@ export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { } } }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", + notificationSenderEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", type: { name: "String" } }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", type: { name: "String" } }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", type: { - name: "String" + name: "DateTime" } }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", type: { name: "String" } }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", type: { name: "String" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", type: { name: "String" } - } - } - } -}; - -export const BackendContract: coreClient.CompositeMapper = { - serializedName: "BackendContract", - type: { - name: "Composite", - className: "BackendContract", - modelProperties: { - ...Resource.type.modelProperties, - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.title", - xmlName: "properties.title", + }, + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", type: { name: "String" } }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.description", - xmlName: "properties.description", + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", type: { name: "String" } }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", type: { name: "String" } }, - properties: { - serializedName: "properties.properties", - xmlName: "properties.properties", + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", type: { - name: "Composite", - className: "BackendProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration" + } + } } }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", type: { - name: "Composite", - className: "BackendCredentialsContract" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - proxy: { - serializedName: "properties.proxy", - xmlName: "properties.proxy", + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", type: { - name: "Composite", - className: "BackendProxyContract" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", type: { - name: "Composite", - className: "BackendTlsProperties" + name: "String" } }, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.url", - xmlName: "properties.url", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", type: { name: "String" } }, - protocol: { - serializedName: "properties.protocol", - xmlName: "properties.protocol", + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration" + } + }, + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation" + } + } + } + }, + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } + } + }, + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", + type: { + name: "Boolean" + } + }, + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", type: { name: "String" } - } - } - } -}; - -export const BackendReconnectContract: coreClient.CompositeMapper = { - serializedName: "BackendReconnectContract", - type: { - name: "Composite", - className: "BackendReconnectContract", - modelProperties: { - ...Resource.type.modelProperties, - after: { - serializedName: "properties.after", - xmlName: "properties.after", + }, + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const CacheContract: coreClient.CompositeMapper = { - serializedName: "CacheContract", - type: { - name: "Composite", - className: "CacheContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", + type: { + name: "Boolean" + } + }, + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", type: { name: "String" } }, - connectionString: { - constraints: { - MaxLength: 300 - }, - serializedName: "properties.connectionString", - xmlName: "properties.connectionString", + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint" + } + }, + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", + type: { + name: "Boolean" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper" + } + } + } + }, + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", type: { name: "String" } }, - useFromLocation: { + publisherEmail: { constraints: { - MaxLength: 256 + MaxLength: 100 }, - serializedName: "properties.useFromLocation", - xmlName: "properties.useFromLocation", + serializedName: "properties.publisherEmail", + xmlName: "properties.publisherEmail", type: { name: "String" } }, - resourceId: { + publisherName: { constraints: { - MaxLength: 2000 + MaxLength: 100 }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + serializedName: "properties.publisherName", + xmlName: "properties.publisherName", type: { name: "String" } @@ -10844,241 +11812,267 @@ export const CacheContract: coreClient.CompositeMapper = { } }; -export const CertificateContract: coreClient.CompositeMapper = { - serializedName: "CertificateContract", +export const UserContractProperties: coreClient.CompositeMapper = { + serializedName: "UserContractProperties", type: { name: "Composite", - className: "CertificateContract", + className: "UserContractProperties", modelProperties: { - ...Resource.type.modelProperties, - subject: { - serializedName: "properties.subject", - xmlName: "properties.subject", + ...UserEntityBaseParameters.type.modelProperties, + firstName: { + serializedName: "firstName", + xmlName: "firstName", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - xmlName: "properties.thumbprint", + lastName: { + serializedName: "lastName", + xmlName: "lastName", type: { name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + email: { + serializedName: "email", + xmlName: "email", + type: { + name: "String" + } + }, + registrationDate: { + serializedName: "registrationDate", + xmlName: "registrationDate", type: { name: "DateTime" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + groups: { + serializedName: "groups", + readOnly: true, + xmlName: "groups", + xmlElementName: "GroupContractProperties", type: { - name: "Composite", - className: "KeyVaultContractProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupContractProperties" + } + } } } } } }; -export const ContentTypeContract: coreClient.CompositeMapper = { - serializedName: "ContentTypeContract", +export const UserCreateParameterProperties: coreClient.CompositeMapper = { + serializedName: "UserCreateParameterProperties", type: { name: "Composite", - className: "ContentTypeContract", + className: "UserCreateParameterProperties", modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + ...UserEntityBaseParameters.type.modelProperties, + email: { + constraints: { + MaxLength: 254, + MinLength: 1 + }, + serializedName: "email", + required: true, + xmlName: "email", type: { name: "String" } }, - namePropertiesName: { - serializedName: "properties.name", - xmlName: "properties.name", + firstName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "firstName", + required: true, + xmlName: "firstName", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "lastName", + required: true, + xmlName: "lastName", type: { name: "String" } }, - schema: { - serializedName: "properties.schema", - xmlName: "properties.schema", + password: { + serializedName: "password", + xmlName: "password", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - version: { - serializedName: "properties.version", - xmlName: "properties.version", + appType: { + serializedName: "appType", + xmlName: "appType", type: { name: "String" } - } - } - } -}; - -export const ContentItemContract: coreClient.CompositeMapper = { - serializedName: "ContentItemContract", - type: { - name: "Composite", - className: "ContentItemContract", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - xmlName: "properties", + }, + confirmation: { + serializedName: "confirmation", + xmlName: "confirmation", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } } } } }; -export const DeletedServiceContract: coreClient.CompositeMapper = { - serializedName: "DeletedServiceContract", +export const UserUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "UserUpdateParametersProperties", type: { name: "Composite", - className: "DeletedServiceContract", + className: "UserUpdateParametersProperties", modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - xmlName: "location", + ...UserEntityBaseParameters.type.modelProperties, + email: { + constraints: { + MaxLength: 254, + MinLength: 1 + }, + serializedName: "email", + xmlName: "email", type: { name: "String" } }, - serviceId: { - serializedName: "properties.serviceId", - xmlName: "properties.serviceId", + password: { + serializedName: "password", + xmlName: "password", type: { name: "String" } }, - scheduledPurgeDate: { - serializedName: "properties.scheduledPurgeDate", - xmlName: "properties.scheduledPurgeDate", + firstName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "firstName", + xmlName: "firstName", type: { - name: "DateTime" + name: "String" } }, - deletionDate: { - serializedName: "properties.deletionDate", - xmlName: "properties.deletionDate", + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "lastName", + xmlName: "lastName", type: { - name: "DateTime" + name: "String" } } } } }; -export const EmailTemplateContract: coreClient.CompositeMapper = { - serializedName: "EmailTemplateContract", +export const IdentityProviderContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContractProperties", type: { name: "Composite", - className: "EmailTemplateContract", + className: "IdentityProviderContractProperties", modelProperties: { - ...Resource.type.modelProperties, - subject: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { - MaxLength: 1000, MinLength: 1 }, - serializedName: "properties.subject", - xmlName: "properties.subject", + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { name: "String" } }, - body: { + clientSecret: { constraints: { MinLength: 1 }, - serializedName: "properties.body", - xmlName: "properties.body", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } - }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + } + } + } +}; + +export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContractProperties", + type: { + name: "Composite", + className: "IdentityProviderCreateContractProperties", + modelProperties: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { + constraints: { + MinLength: 1 + }, + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + clientSecret: { + constraints: { + MinLength: 1 + }, + serializedName: "clientSecret", + required: true, + xmlName: "clientSecret", type: { name: "String" } - }, - isDefault: { - serializedName: "properties.isDefault", - readOnly: true, - xmlName: "properties.isDefault", - type: { - name: "Boolean" - } - }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", - xmlElementName: "EmailTemplateParametersContractProperties", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EmailTemplateParametersContractProperties" - } - } - } } } } }; -export const GatewayContract: coreClient.CompositeMapper = { - serializedName: "GatewayContract", +export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderUpdateProperties", type: { name: "Composite", - className: "GatewayContract", + className: "IdentityProviderUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - locationData: { - serializedName: "properties.locationData", - xmlName: "properties.locationData", + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { + constraints: { + MinLength: 1 + }, + serializedName: "clientId", + xmlName: "clientId", type: { - name: "Composite", - className: "ResourceLocationDataContract" + name: "String" } }, - description: { + clientSecret: { constraints: { - MaxLength: 1000 + MinLength: 1 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } @@ -11087,492 +12081,405 @@ export const GatewayContract: coreClient.CompositeMapper = { } }; -export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationContract", +export const NamedValueContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueContractProperties", type: { name: "Composite", - className: "GatewayHostnameConfigurationContract", + className: "NamedValueContractProperties", modelProperties: { - ...Resource.type.modelProperties, - hostname: { - serializedName: "properties.hostname", - xmlName: "properties.hostname", + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - certificateId: { - serializedName: "properties.certificateId", - xmlName: "properties.certificateId", + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - negotiateClientCertificate: { - serializedName: "properties.negotiateClientCertificate", - xmlName: "properties.negotiateClientCertificate", - type: { - name: "Boolean" - } - }, - tls10Enabled: { - serializedName: "properties.tls10Enabled", - xmlName: "properties.tls10Enabled", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "Boolean" - } - }, - tls11Enabled: { - serializedName: "properties.tls11Enabled", - xmlName: "properties.tls11Enabled", - type: { - name: "Boolean" - } - }, - http2Enabled: { - serializedName: "properties.http2Enabled", - xmlName: "properties.http2Enabled", - type: { - name: "Boolean" + name: "Composite", + className: "KeyVaultContractProperties" } } } } }; -export const AssociationContract: coreClient.CompositeMapper = { - serializedName: "AssociationContract", +export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContractProperties", type: { name: "Composite", - className: "AssociationContract", + className: "NamedValueCreateContractProperties", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - defaultValue: "created", - isConstant: true, - serializedName: "properties.provisioningState", + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } - } - } - } -}; - -export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthorityContract", - type: { - name: "Composite", - className: "GatewayCertificateAuthorityContract", - modelProperties: { - ...Resource.type.modelProperties, - isTrusted: { - serializedName: "properties.isTrusted", - xmlName: "properties.isTrusted", + }, + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "value", + xmlName: "value", type: { - name: "Boolean" + name: "String" + } + }, + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", + type: { + name: "Composite", + className: "KeyVaultContractCreateProperties" } } } } }; -export const GroupContract: coreClient.CompositeMapper = { - serializedName: "GroupContract", +export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueUpdateParameterProperties", type: { name: "Composite", - className: "GroupContract", + className: "NamedValueUpdateParameterProperties", modelProperties: { - ...Resource.type.modelProperties, + ...NamedValueEntityBaseParameters.type.modelProperties, displayName: { constraints: { - MaxLength: 300, + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - description: { + value: { constraints: { - MaxLength: 1000 + MaxLength: 4096, + MinLength: 1 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - builtIn: { - serializedName: "properties.builtIn", - readOnly: true, - xmlName: "properties.builtIn", - type: { - name: "Boolean" - } - }, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "Enum", - allowedValues: ["custom", "system", "external"] - } - }, - externalId: { - serializedName: "properties.externalId", - xmlName: "properties.externalId", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" + name: "Composite", + className: "KeyVaultContractCreateProperties" } } } } }; -export const UserContract: coreClient.CompositeMapper = { - serializedName: "UserContract", +export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateProperties", type: { name: "Composite", - className: "UserContract", + className: "ApiCreateOrUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - state: { - defaultValue: "active", - serializedName: "properties.state", - xmlName: "properties.state", + ...ApiContractProperties.type.modelProperties, + value: { + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - note: { - serializedName: "properties.note", - xmlName: "properties.note", + format: { + serializedName: "format", + xmlName: "format", type: { name: "String" } }, - identities: { - serializedName: "properties.identities", - xmlName: "properties.identities", - xmlElementName: "UserIdentityContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } - }, - firstName: { - serializedName: "properties.firstName", - xmlName: "properties.firstName", + wsdlSelector: { + serializedName: "wsdlSelector", + xmlName: "wsdlSelector", type: { - name: "String" + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector" } }, - lastName: { - serializedName: "properties.lastName", - xmlName: "properties.lastName", + soapApiType: { + serializedName: "apiType", + xmlName: "apiType", type: { name: "String" } }, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + translateRequiredQueryParametersConduct: { + serializedName: "translateRequiredQueryParameters", + xmlName: "translateRequiredQueryParameters", type: { name: "String" } - }, - registrationDate: { - serializedName: "properties.registrationDate", - xmlName: "properties.registrationDate", - type: { - name: "DateTime" - } - }, - groups: { - serializedName: "properties.groups", - readOnly: true, - xmlName: "properties.groups", - xmlElementName: "GroupContractProperties", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContractProperties" - } - } - } } } } }; -export const IdentityProviderContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContract", +export const ApiContract: coreClient.CompositeMapper = { + serializedName: "ApiContract", type: { name: "Composite", - className: "IdentityProviderContract", + className: "ApiContract", modelProperties: { - ...Resource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", type: { - name: "String" + name: "Composite", + className: "AuthenticationSettingsContract" } }, - allowedTenants: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SubscriptionKeyParameterNamesContract" } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { name: "String" } }, - signupPolicyName: { + apiRevision: { constraints: { + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", type: { name: "String" } }, - signinPolicyName: { + apiVersion: { constraints: { - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", type: { name: "String" } }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", type: { - name: "String" + name: "Boolean" } }, - passwordResetPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", type: { - name: "String" + name: "Boolean" } }, - clientId: { + apiRevisionDescription: { constraints: { - MinLength: 1 + MaxLength: 256 }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", type: { name: "String" } }, - clientSecret: { + apiVersionDescription: { constraints: { - MinLength: 1 + MaxLength: 256 }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", type: { name: "String" } - } - } - } -}; - -export const IdentityProviderCreateContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContract", - type: { - name: "Composite", - className: "IdentityProviderCreateContract", - modelProperties: { - ...Resource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + }, + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", type: { name: "String" } }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", type: { name: "String" } }, - allowedTenants: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ApiContactInformation" } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + license: { + serializedName: "properties.license", + xmlName: "properties.license", type: { - name: "String" + name: "Composite", + className: "ApiLicenseInformation" } }, - signupPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", type: { name: "String" } }, - signinPolicyName: { + displayName: { constraints: { + MaxLength: 300, MinLength: 1 }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - profileEditingPolicyName: { + serviceUrl: { constraints: { - MinLength: 1 + MaxLength: 2000 }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", type: { name: "String" } }, - passwordResetPolicyName: { + path: { constraints: { - MinLength: 1 + MaxLength: 400 }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + serializedName: "properties.path", + xmlName: "properties.path", type: { name: "String" } }, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + apiVersionSet: { + serializedName: "properties.apiVersionSet", + xmlName: "properties.apiVersionSet", type: { - name: "String" + name: "Composite", + className: "ApiVersionSetContractDetails" } } } } }; -export const LoggerContract: coreClient.CompositeMapper = { - serializedName: "LoggerContract", +export const ApiReleaseContract: coreClient.CompositeMapper = { + serializedName: "ApiReleaseContract", type: { name: "Composite", - className: "LoggerContract", + className: "ApiReleaseContract", modelProperties: { - ...Resource.type.modelProperties, - loggerType: { - serializedName: "properties.loggerType", - xmlName: "properties.loggerType", - type: { - name: "String" - } - }, - description: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.description", - xmlName: "properties.description", + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { name: "String" } }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "DateTime" } }, - isBuffered: { - serializedName: "properties.isBuffered", - xmlName: "properties.isBuffered", + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", type: { - name: "Boolean" + name: "DateTime" } }, - resourceId: { - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + notes: { + serializedName: "properties.notes", + xmlName: "properties.notes", type: { name: "String" } @@ -11581,104 +12488,69 @@ export const LoggerContract: coreClient.CompositeMapper = { } }; -export const NamedValueContract: coreClient.CompositeMapper = { - serializedName: "NamedValueContract", +export const OperationContract: coreClient.CompositeMapper = { + serializedName: "OperationContract", type: { name: "Composite", - className: "NamedValueContract", + className: "OperationContract", modelProperties: { - ...Resource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + ...ProxyResource.type.modelProperties, + templateParameters: { + serializedName: "properties.templateParameters", + xmlName: "properties.templateParameters", + xmlElementName: "ParameterContract", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ParameterContract" } } } }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", - type: { - name: "Boolean" - } - }, - displayName: { + description: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 1000 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "properties.value", - xmlName: "properties.value", + request: { + serializedName: "properties.request", + xmlName: "properties.request", type: { - name: "String" + name: "Composite", + className: "RequestContract" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", - type: { - name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } -}; - -export const NamedValueCreateContract: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContract", - type: { - name: "Composite", - className: "NamedValueCreateContract", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + responses: { + serializedName: "properties.responses", + xmlName: "properties.responses", + xmlElementName: "ResponseContract", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResponseContract" } } } }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + policies: { + serializedName: "properties.policies", + xmlName: "properties.policies", type: { - name: "Boolean" + name: "String" } }, displayName: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, + MaxLength: 300, MinLength: 1 }, serializedName: "properties.displayName", @@ -11687,75 +12559,46 @@ export const NamedValueCreateContract: coreClient.CompositeMapper = { name: "String" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "properties.value", - xmlName: "properties.value", + method: { + serializedName: "properties.method", + xmlName: "properties.method", type: { name: "String" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", - type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } -}; - -export const NotificationContract: coreClient.CompositeMapper = { - serializedName: "NotificationContract", - type: { - name: "Composite", - className: "NotificationContract", - modelProperties: { - ...Resource.type.modelProperties, - title: { + urlTemplate: { constraints: { MaxLength: 1000, MinLength: 1 }, - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "properties.urlTemplate", + xmlName: "properties.urlTemplate", type: { name: "String" } - }, - recipients: { - serializedName: "properties.recipients", - xmlName: "properties.recipients", - type: { - name: "Composite", - className: "RecipientsContractProperties" - } } } } }; -export const RecipientUserContract: coreClient.CompositeMapper = { - serializedName: "RecipientUserContract", +export const PolicyContract: coreClient.CompositeMapper = { + serializedName: "PolicyContract", type: { name: "Composite", - className: "RecipientUserContract", + className: "PolicyContract", modelProperties: { - ...Resource.type.modelProperties, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "String" + } + }, + format: { + defaultValue: "xml", + serializedName: "properties.format", + xmlName: "properties.format", type: { name: "String" } @@ -11764,16 +12607,20 @@ export const RecipientUserContract: coreClient.CompositeMapper = { } }; -export const RecipientEmailContract: coreClient.CompositeMapper = { - serializedName: "RecipientEmailContract", +export const TagContract: coreClient.CompositeMapper = { + serializedName: "TagContract", type: { name: "Composite", - className: "RecipientEmailContract", + className: "TagContract", modelProperties: { - ...Resource.type.modelProperties, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } @@ -11782,16 +12629,17 @@ export const RecipientEmailContract: coreClient.CompositeMapper = { } }; -export const OpenidConnectProviderContract: coreClient.CompositeMapper = { - serializedName: "OpenidConnectProviderContract", +export const ResolverContract: coreClient.CompositeMapper = { + serializedName: "ResolverContract", type: { name: "Composite", - className: "OpenidConnectProviderContract", + className: "ResolverContract", modelProperties: { - ...Resource.type.modelProperties, + ...ProxyResource.type.modelProperties, displayName: { constraints: { - MaxLength: 50 + MaxLength: 300, + MinLength: 1 }, serializedName: "properties.displayName", xmlName: "properties.displayName", @@ -11799,75 +12647,41 @@ export const OpenidConnectProviderContract: coreClient.CompositeMapper = { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - metadataEndpoint: { - serializedName: "properties.metadataEndpoint", - xmlName: "properties.metadataEndpoint", - type: { - name: "String" - } - }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + path: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.path", + xmlName: "properties.path", type: { name: "String" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", - type: { - name: "String" - } - } - } - } -}; - -export const PolicyDescriptionContract: coreClient.CompositeMapper = { - serializedName: "PolicyDescriptionContract", - type: { - name: "Composite", - className: "PolicyDescriptionContract", - modelProperties: { - ...Resource.type.modelProperties, description: { + constraints: { + MaxLength: 1000 + }, serializedName: "properties.description", - readOnly: true, xmlName: "properties.description", type: { name: "String" } - }, - scope: { - serializedName: "properties.scope", - readOnly: true, - xmlName: "properties.scope", - type: { - name: "Number" - } } } } }; -export const PortalRevisionContract: coreClient.CompositeMapper = { - serializedName: "PortalRevisionContract", +export const ProductContract: coreClient.CompositeMapper = { + serializedName: "ProductContract", type: { name: "Composite", - className: "PortalRevisionContract", + className: "ProductContract", modelProperties: { - ...Resource.type.modelProperties, + ...ProxyResource.type.modelProperties, description: { constraints: { - MaxLength: 2000 + MaxLength: 1000 }, serializedName: "properties.description", xmlName: "properties.description", @@ -11875,118 +12689,174 @@ export const PortalRevisionContract: coreClient.CompositeMapper = { name: "String" } }, - statusDetails: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.statusDetails", - readOnly: true, - xmlName: "properties.statusDetails", + terms: { + serializedName: "properties.terms", + xmlName: "properties.terms", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, - xmlName: "properties.status", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "String" + name: "Boolean" } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + approvalRequired: { + serializedName: "properties.approvalRequired", + xmlName: "properties.approvalRequired", type: { name: "Boolean" } }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + xmlName: "properties.subscriptionsLimit", type: { - name: "DateTime" + name: "Number" } }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["notPublished", "published"] + } + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" } } } } }; -export const PortalSettingsContract: coreClient.CompositeMapper = { - serializedName: "PortalSettingsContract", - type: { +export const SchemaContract: coreClient.CompositeMapper = { + serializedName: "SchemaContract", + type: { name: "Composite", - className: "PortalSettingsContract", + className: "SchemaContract", modelProperties: { - ...Resource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + ...ProxyResource.type.modelProperties, + contentType: { + serializedName: "properties.contentType", + xmlName: "properties.contentType", type: { name: "String" } }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + value: { + serializedName: "properties.document.value", + xmlName: "properties.document.value", type: { name: "String" } }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + definitions: { + serializedName: "properties.document.definitions", + xmlName: "properties.document.definitions", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + components: { + serializedName: "properties.document.components", + xmlName: "properties.document.components", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const DiagnosticContract: coreClient.CompositeMapper = { + serializedName: "DiagnosticContract", + type: { + name: "Composite", + className: "DiagnosticContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + alwaysLog: { + serializedName: "properties.alwaysLog", + xmlName: "properties.alwaysLog", + type: { + name: "String" + } + }, + loggerId: { + serializedName: "properties.loggerId", + xmlName: "properties.loggerId", + type: { + name: "String" + } + }, + sampling: { + serializedName: "properties.sampling", + xmlName: "properties.sampling", type: { name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" + className: "SamplingSettings" } }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", type: { name: "Composite", - className: "RegistrationDelegationSettingsProperties" + className: "PipelineDiagnosticSettings" } }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", + type: { + name: "Composite", + className: "PipelineDiagnosticSettings" + } + }, + logClientIp: { + serializedName: "properties.logClientIp", + xmlName: "properties.logClientIp", type: { name: "Boolean" } }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", + httpCorrelationProtocol: { + serializedName: "properties.httpCorrelationProtocol", + xmlName: "properties.httpCorrelationProtocol", type: { - name: "Composite", - className: "TermsOfServiceProperties" + name: "String" } - } - } - } -}; - -export const PortalSigninSettings: coreClient.CompositeMapper = { - serializedName: "PortalSigninSettings", - type: { - name: "Composite", - className: "PortalSigninSettings", - modelProperties: { - ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + }, + verbosity: { + serializedName: "properties.verbosity", + xmlName: "properties.verbosity", + type: { + name: "String" + } + }, + operationNameFormat: { + serializedName: "properties.operationNameFormat", + xmlName: "properties.operationNameFormat", + type: { + name: "String" + } + }, + metrics: { + serializedName: "properties.metrics", + xmlName: "properties.metrics", type: { name: "Boolean" } @@ -11995,100 +12865,83 @@ export const PortalSigninSettings: coreClient.CompositeMapper = { } }; -export const PortalSignupSettings: coreClient.CompositeMapper = { - serializedName: "PortalSignupSettings", +export const IssueContract: coreClient.CompositeMapper = { + serializedName: "IssueContract", type: { name: "Composite", - className: "PortalSignupSettings", + className: "IssueContract", modelProperties: { - ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + ...ProxyResource.type.modelProperties, + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "Boolean" + name: "DateTime" } }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "Composite", - className: "TermsOfServiceProperties" + name: "String" } - } - } - } -}; - -export const PortalDelegationSettings: coreClient.CompositeMapper = { - serializedName: "PortalDelegationSettings", - type: { - name: "Composite", - className: "PortalDelegationSettings", - modelProperties: { - ...Resource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + }, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { name: "String" } }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" + name: "String" } }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" + name: "String" } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const IssueCommentContract: coreClient.CompositeMapper = { + serializedName: "IssueCommentContract", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "IssueCommentContract", modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - xmlName: "properties.privateEndpoint", + ...ProxyResource.type.modelProperties, + text: { + serializedName: "properties.text", + xmlName: "properties.text", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - xmlName: "properties.privateLinkServiceConnectionState", + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { name: "String" } @@ -12097,437 +12950,348 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const IssueAttachmentContract: coreClient.CompositeMapper = { + serializedName: "IssueAttachmentContract", type: { name: "Composite", - className: "PrivateLinkResource", + className: "IssueAttachmentContract", modelProperties: { - ...Resource.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - xmlName: "properties.groupId", + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - xmlName: "properties.requiredMembers", - xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", + contentFormat: { + serializedName: "properties.contentFormat", + xmlName: "properties.contentFormat", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - xmlName: "properties.requiredZoneNames", - xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const SubscriptionContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionContract", +export const TagDescriptionContract: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContract", type: { name: "Composite", - className: "SubscriptionContract", + className: "TagDescriptionContract", modelProperties: { - ...Resource.type.modelProperties, - ownerId: { - serializedName: "properties.ownerId", - xmlName: "properties.ownerId", - type: { - name: "String" - } - }, - scope: { - serializedName: "properties.scope", - xmlName: "properties.scope", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - displayName: { + externalDocsUrl: { constraints: { - MaxLength: 100 + MaxLength: 2000 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.externalDocsUrl", + xmlName: "properties.externalDocsUrl", type: { name: "String" } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] - } - }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, - xmlName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - startDate: { - serializedName: "properties.startDate", - xmlName: "properties.startDate", - type: { - name: "DateTime" - } - }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", - type: { - name: "DateTime" - } - }, - endDate: { - serializedName: "properties.endDate", - xmlName: "properties.endDate", - type: { - name: "DateTime" - } - }, - notificationDate: { - serializedName: "properties.notificationDate", - xmlName: "properties.notificationDate", + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + xmlName: "properties.externalDocsDescription", type: { - name: "DateTime" + name: "String" } }, - primaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 - }, - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", + tagId: { + serializedName: "properties.tagId", + xmlName: "properties.tagId", type: { name: "String" } }, - secondaryKey: { + displayName: { constraints: { - MaxLength: 256, + MaxLength: 160, MinLength: 1 }, - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", - type: { - name: "String" - } - }, - stateComment: { - serializedName: "properties.stateComment", - xmlName: "properties.stateComment", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } - }, - allowTracing: { - serializedName: "properties.allowTracing", - xmlName: "properties.allowTracing", - type: { - name: "Boolean" - } } } } }; -export const GlobalSchemaContract: coreClient.CompositeMapper = { - serializedName: "GlobalSchemaContract", +export const WikiContract: coreClient.CompositeMapper = { + serializedName: "WikiContract", type: { name: "Composite", - className: "GlobalSchemaContract", + className: "WikiContract", modelProperties: { - ...Resource.type.modelProperties, - schemaType: { - serializedName: "properties.schemaType", - xmlName: "properties.schemaType", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - value: { - serializedName: "properties.value", - xmlName: "properties.value", - type: { - name: "any" - } - }, - document: { - serializedName: "properties.document", - xmlName: "properties.document", + ...ProxyResource.type.modelProperties, + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract" + } + } } } } } }; -export const TenantSettingsContract: coreClient.CompositeMapper = { - serializedName: "TenantSettingsContract", +export const ApiVersionSetContract: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContract", type: { name: "Composite", - className: "TenantSettingsContract", + className: "ApiVersionSetContract", modelProperties: { - ...Resource.type.modelProperties, - settings: { - serializedName: "properties.settings", - xmlName: "properties.settings", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } - } - } - } -}; - -export const AccessInformationContract: coreClient.CompositeMapper = { - serializedName: "AccessInformationContract", - type: { - name: "Composite", - className: "AccessInformationContract", - modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + }, + versionQueryName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.versionQueryName", + xmlName: "properties.versionQueryName", type: { name: "String" } }, - principalId: { - serializedName: "properties.principalId", - xmlName: "properties.principalId", + versionHeaderName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.versionHeaderName", + xmlName: "properties.versionHeaderName", type: { name: "String" } }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Boolean" + name: "String" + } + }, + versioningScheme: { + serializedName: "properties.versioningScheme", + xmlName: "properties.versioningScheme", + type: { + name: "String" } } } } }; -export const OperationResultContract: coreClient.CompositeMapper = { - serializedName: "OperationResultContract", +export const AuthorizationServerContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContract", type: { name: "Composite", - className: "OperationResultContract", + className: "AuthorizationServerContract", modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "Enum", - allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] - } - }, - started: { - serializedName: "properties.started", - xmlName: "properties.started", + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } + } + }, + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - updated: { - serializedName: "properties.updated", - xmlName: "properties.updated", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract" + } + } } }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", type: { name: "String" } }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", type: { - name: "Composite", - className: "ErrorResponseBody" + name: "Boolean" } }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "OperationResultLogItemContract", + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", + type: { + name: "String" + } + }, + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "OperationResultLogItemContract" + name: "String" } } } - } - } - } -}; - -export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { - serializedName: "TenantConfigurationSyncStateContract", - type: { - name: "Composite", - className: "TenantConfigurationSyncStateContract", - modelProperties: { - ...Resource.type.modelProperties, - branch: { - serializedName: "properties.branch", - xmlName: "properties.branch", + }, + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", type: { name: "String" } }, - commitId: { - serializedName: "properties.commitId", - xmlName: "properties.commitId", + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { name: "String" } }, - isExport: { - serializedName: "properties.isExport", - xmlName: "properties.isExport", + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Boolean" + name: "String" } }, - isSynced: { - serializedName: "properties.isSynced", - xmlName: "properties.isSynced", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { name: "Boolean" } }, - isGitEnabled: { - serializedName: "properties.isGitEnabled", - xmlName: "properties.isGitEnabled", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { name: "Boolean" } }, - syncDate: { - serializedName: "properties.syncDate", - xmlName: "properties.syncDate", - type: { - name: "DateTime" - } - }, - configurationChangeDate: { - serializedName: "properties.configurationChangeDate", - xmlName: "properties.configurationChangeDate", + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { - name: "DateTime" + name: "String" } }, - lastOperationId: { - serializedName: "properties.lastOperationId", - xmlName: "properties.lastOperationId", + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", type: { name: "String" } - } - } - } -}; - -export const OperationContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationContractProperties", - type: { - name: "Composite", - className: "OperationContractProperties", - modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + }, + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - method: { - serializedName: "method", - required: true, - xmlName: "method", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "urlTemplate", - required: true, - xmlName: "urlTemplate", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -12536,91 +13300,180 @@ export const OperationContractProperties: coreClient.CompositeMapper = { } }; -export const OperationUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationUpdateContractProperties", +export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContract", type: { name: "Composite", - className: "OperationUpdateContractProperties", + className: "AuthorizationServerUpdateContract", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - method: { - serializedName: "method", - xmlName: "method", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "urlTemplate", - xmlName: "urlTemplate", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const ProductContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductContractProperties", - type: { - name: "Composite", - className: "ProductContractProperties", - modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, + }, + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract" + } + } + } + }, + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", + type: { + name: "String" + } + }, + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", + type: { + name: "Boolean" + } + }, + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", + type: { + name: "String" + } + }, + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", + type: { + name: "String" + } + }, + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", + type: { + name: "String" + } + }, displayName: { constraints: { - MaxLength: 300, + MaxLength: 50, MinLength: 1 }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } - } - } - } -}; - -export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductTagResourceContractProperties", - type: { - name: "Composite", - className: "ProductTagResourceContractProperties", - modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean" + } + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean" + } + }, + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { name: "String" } }, - name: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "name", - required: true, - xmlName: "name", + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", + type: { + name: "String" + } + }, + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -12629,87 +13482,83 @@ export const ProductTagResourceContractProperties: coreClient.CompositeMapper = } }; -export const ProductUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ProductUpdateProperties", +export const AuthorizationProviderContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderContract", type: { name: "Composite", - className: "ProductUpdateProperties", + className: "AuthorizationProviderContract", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, + ...ProxyResource.type.modelProperties, displayName: { constraints: { MaxLength: 300, MinLength: 1 }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - } - } - } -}; - -export const IssueContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueContractProperties", - type: { - name: "Composite", - className: "IssueContractProperties", - modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - required: true, - xmlName: "title", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - description: { - serializedName: "description", - required: true, - xmlName: "description", + identityProvider: { + serializedName: "properties.identityProvider", + xmlName: "properties.identityProvider", type: { name: "String" } }, - userId: { - serializedName: "userId", - required: true, - xmlName: "userId", + oauth2: { + serializedName: "properties.oauth2", + xmlName: "properties.oauth2", type: { - name: "String" + name: "Composite", + className: "AuthorizationProviderOAuth2Settings" } } } } }; -export const IssueUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueUpdateContractProperties", +export const AuthorizationContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationContract", type: { name: "Composite", - className: "IssueUpdateContractProperties", + className: "AuthorizationContract", modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - xmlName: "title", + ...ProxyResource.type.modelProperties, + authorizationType: { + serializedName: "properties.authorizationType", + xmlName: "properties.authorizationType", type: { name: "String" } }, - description: { - serializedName: "description", - xmlName: "description", + oAuth2GrantType: { + serializedName: "properties.oauth2grantType", + xmlName: "properties.oauth2grantType", type: { name: "String" } }, - userId: { - serializedName: "userId", - xmlName: "userId", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "AuthorizationError" + } + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", type: { name: "String" } @@ -12718,27 +13567,23 @@ export const IssueUpdateContractProperties: coreClient.CompositeMapper = { } }; -export const TagDescriptionContractProperties: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContractProperties", +export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyContract", type: { name: "Composite", - className: "TagDescriptionContractProperties", + className: "AuthorizationAccessPolicyContract", modelProperties: { - ...TagDescriptionBaseProperties.type.modelProperties, - tagId: { - serializedName: "tagId", - xmlName: "tagId", + ...ProxyResource.type.modelProperties, + tenantId: { + serializedName: "properties.tenantId", + xmlName: "properties.tenantId", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + objectId: { + serializedName: "properties.objectId", + xmlName: "properties.objectId", type: { name: "String" } @@ -12747,126 +13592,92 @@ export const TagDescriptionContractProperties: coreClient.CompositeMapper = { } }; -export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContractProperties", +export const BackendContract: coreClient.CompositeMapper = { + serializedName: "BackendContract", type: { name: "Composite", - className: "ApiVersionSetContractProperties", + className: "BackendContract", modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { + ...ProxyResource.type.modelProperties, + title: { constraints: { - MaxLength: 100, + MaxLength: 300, MinLength: 1 }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - versioningScheme: { - serializedName: "versioningScheme", - required: true, - xmlName: "versioningScheme", + description: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } - } - } - } -}; - -export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParametersProperties", - type: { - name: "Composite", - className: "ApiVersionSetUpdateParametersProperties", - modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { + }, + resourceId: { constraints: { - MaxLength: 100, + MaxLength: 2000, MinLength: 1 }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { name: "String" } }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractProperties", - type: { - name: "Composite", - className: "AuthorizationServerContractProperties", - modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + properties: { + serializedName: "properties.properties", + xmlName: "properties.properties", type: { - name: "String" + name: "Composite", + className: "BackendProperties" } }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - required: true, - xmlName: "clientRegistrationEndpoint", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" + name: "Composite", + className: "BackendCredentialsContract" } }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - required: true, - xmlName: "authorizationEndpoint", + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", type: { - name: "String" + name: "Composite", + className: "BackendProxyContract" } }, - grantTypes: { - serializedName: "grantTypes", - required: true, - xmlName: "grantTypes", - xmlElementName: "GrantType", + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "BackendTlsProperties" } }, - clientId: { - serializedName: "clientId", - required: true, - xmlName: "clientId", + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.url", + xmlName: "properties.url", type: { name: "String" } }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", + protocol: { + serializedName: "properties.protocol", + xmlName: "properties.protocol", type: { name: "String" } @@ -12875,61 +13686,67 @@ export const AuthorizationServerContractProperties: coreClient.CompositeMapper = } }; -export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContractProperties", +export const BackendReconnectContract: coreClient.CompositeMapper = { + serializedName: "BackendReconnectContract", type: { name: "Composite", - className: "AuthorizationServerUpdateContractProperties", + className: "BackendReconnectContract", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + after: { + serializedName: "properties.after", + xmlName: "properties.after", type: { - name: "String" + name: "TimeSpan" } - }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - xmlName: "clientRegistrationEndpoint", + } + } + } +}; + +export const CacheContract: coreClient.CompositeMapper = { + serializedName: "CacheContract", + type: { + name: "Composite", + className: "CacheContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - xmlName: "authorizationEndpoint", + connectionString: { + constraints: { + MaxLength: 300 + }, + serializedName: "properties.connectionString", + xmlName: "properties.connectionString", type: { name: "String" } }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - xmlElementName: "GrantType", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", + useFromLocation: { + constraints: { + MaxLength: 256 + }, + serializedName: "properties.useFromLocation", + xmlName: "properties.useFromLocation", type: { name: "String" } }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", + resourceId: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { name: "String" } @@ -12938,473 +13755,587 @@ export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMa } }; -export const BackendContractProperties: coreClient.CompositeMapper = { - serializedName: "BackendContractProperties", +export const CertificateContract: coreClient.CompositeMapper = { + serializedName: "CertificateContract", type: { name: "Composite", - className: "BackendContractProperties", + className: "CertificateContract", modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "url", - required: true, - xmlName: "url", + ...ProxyResource.type.modelProperties, + subject: { + serializedName: "properties.subject", + xmlName: "properties.subject", type: { name: "String" } }, - protocol: { - serializedName: "protocol", - required: true, - xmlName: "protocol", + thumbprint: { + serializedName: "properties.thumbprint", + xmlName: "properties.thumbprint", type: { name: "String" } + }, + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", + type: { + name: "Composite", + className: "KeyVaultContractProperties" + } } } } }; -export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameterProperties", +export const ContentTypeContract: coreClient.CompositeMapper = { + serializedName: "ContentTypeContract", type: { name: "Composite", - className: "BackendUpdateParameterProperties", + className: "ContentTypeContract", modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "url", - xmlName: "url", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - protocol: { - serializedName: "protocol", - xmlName: "protocol", + namePropertiesName: { + serializedName: "properties.name", + xmlName: "properties.name", type: { name: "String" } - } - } - } -}; - -export const KeyVaultContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultContractProperties", - type: { - name: "Composite", - className: "KeyVaultContractProperties", - modelProperties: { - ...KeyVaultContractCreateProperties.type.modelProperties, - lastStatus: { - serializedName: "lastStatus", - xmlName: "lastStatus", + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties" + name: "String" + } + }, + schema: { + serializedName: "properties.schema", + xmlName: "properties.schema", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + version: { + serializedName: "properties.version", + xmlName: "properties.version", + type: { + name: "String" } } } } }; -export const ApiManagementServiceProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceProperties", +export const ContentItemContract: coreClient.CompositeMapper = { + serializedName: "ContentItemContract", type: { name: "Composite", - className: "ApiManagementServiceProperties", + className: "ContentItemContract", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherEmail", - required: true, - xmlName: "publisherEmail", - type: { - name: "String" - } - }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherName", - required: true, - xmlName: "publisherName", + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + xmlName: "properties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateProperties", +export const DeletedServiceContract: coreClient.CompositeMapper = { + serializedName: "DeletedServiceContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateProperties", + className: "DeletedServiceContract", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherEmail", - xmlName: "publisherEmail", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + xmlName: "location", type: { name: "String" } }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherName", - xmlName: "publisherName", + serviceId: { + serializedName: "properties.serviceId", + xmlName: "properties.serviceId", type: { name: "String" } + }, + scheduledPurgeDate: { + serializedName: "properties.scheduledPurgeDate", + xmlName: "properties.scheduledPurgeDate", + type: { + name: "DateTime" + } + }, + deletionDate: { + serializedName: "properties.deletionDate", + xmlName: "properties.deletionDate", + type: { + name: "DateTime" + } } } } }; -export const ApiManagementServiceResource: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceResource", +export const EmailTemplateContract: coreClient.CompositeMapper = { + serializedName: "EmailTemplateContract", type: { name: "Composite", - className: "ApiManagementServiceResource", + className: "EmailTemplateContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", + ...ProxyResource.type.modelProperties, + subject: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" + name: "String" } }, - identity: { - serializedName: "identity", - xmlName: "identity", + body: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.body", + xmlName: "properties.body", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" + name: "String" } }, - systemData: { - serializedName: "systemData", - xmlName: "systemData", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - location: { - serializedName: "location", - required: true, - xmlName: "location", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - etag: { - serializedName: "etag", + isDefault: { + serializedName: "properties.isDefault", readOnly: true, - xmlName: "etag", + xmlName: "properties.isDefault", type: { - name: "String" + name: "Boolean" } }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceResourceZonesItem", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + xmlElementName: "EmailTemplateParametersContractProperties", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "EmailTemplateParametersContractProperties" } } } + } + } + } +}; + +export const GatewayContract: coreClient.CompositeMapper = { + serializedName: "GatewayContract", + type: { + name: "Composite", + className: "GatewayContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + locationData: { + serializedName: "properties.locationData", + xmlName: "properties.locationData", + type: { + name: "Composite", + className: "ResourceLocationDataContract" + } }, - notificationSenderEmail: { + description: { constraints: { - MaxLength: 100 + MaxLength: 1000 }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + } + } + } +}; + +export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { + serializedName: "GatewayHostnameConfigurationContract", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + hostname: { + serializedName: "properties.hostname", + xmlName: "properties.hostname", type: { name: "String" } }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + certificateId: { + serializedName: "properties.certificateId", + xmlName: "properties.certificateId", type: { name: "String" } }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + negotiateClientCertificate: { + serializedName: "properties.negotiateClientCertificate", + xmlName: "properties.negotiateClientCertificate", type: { - name: "DateTime" + name: "Boolean" } }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + tls10Enabled: { + serializedName: "properties.tls10Enabled", + xmlName: "properties.tls10Enabled", type: { - name: "String" + name: "Boolean" } }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + tls11Enabled: { + serializedName: "properties.tls11Enabled", + xmlName: "properties.tls11Enabled", type: { - name: "String" + name: "Boolean" } }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + http2Enabled: { + serializedName: "properties.http2Enabled", + xmlName: "properties.http2Enabled", type: { - name: "String" + name: "Boolean" } - }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + } + } + } +}; + +export const AssociationContract: coreClient.CompositeMapper = { + serializedName: "AssociationContract", + type: { + name: "Composite", + className: "AssociationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + defaultValue: "created", + isConstant: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthorityContract", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + isTrusted: { + serializedName: "properties.isTrusted", + xmlName: "properties.isTrusted", + type: { + name: "Boolean" + } + } + } + } +}; + +export const GroupContract: coreClient.CompositeMapper = { + serializedName: "GroupContract", + type: { + name: "Composite", + className: "GroupContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", + builtIn: { + serializedName: "properties.builtIn", readOnly: true, - xmlName: "properties.developerPortalUrl", + xmlName: "properties.builtIn", + type: { + name: "Boolean" + } + }, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "Enum", + allowedValues: ["custom", "system", "external"] + } + }, + externalId: { + serializedName: "properties.externalId", + xmlName: "properties.externalId", + type: { + name: "String" + } + } + } + } +}; + +export const UserContract: coreClient.CompositeMapper = { + serializedName: "UserContract", + type: { + name: "Composite", + className: "UserContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + defaultValue: "active", + serializedName: "properties.state", + xmlName: "properties.state", type: { name: "String" } }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + note: { + serializedName: "properties.note", + xmlName: "properties.note", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } + name: "String" } }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + identities: { + serializedName: "properties.identities", + xmlName: "properties.identities", + xmlElementName: "UserIdentityContract", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "UserIdentityContract" } } } }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + firstName: { + serializedName: "properties.firstName", + xmlName: "properties.firstName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + lastName: { + serializedName: "properties.lastName", + xmlName: "properties.lastName", type: { name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { name: "String" } }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + registrationDate: { + serializedName: "properties.registrationDate", + xmlName: "properties.registrationDate", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" + name: "DateTime" } }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + groups: { + serializedName: "properties.groups", + readOnly: true, + xmlName: "properties.groups", + xmlElementName: "GroupContractProperties", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AdditionalLocation" + className: "GroupContractProperties" } } } + } + } + } +}; + +export const IdentityProviderContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContract", + type: { + name: "Composite", + className: "IdentityProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String" + } }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + allowedTenants: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CertificateConfiguration" + name: "String" } } } }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { - name: "Boolean" + name: "String" } }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + signupPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { - name: "Boolean" + name: "String" } }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + signinPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { name: "String" } }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", - type: { - name: "Composite", - className: "ApiVersionConstraint" - } - }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + profileEditingPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "Boolean" + name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + passwordResetPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } + name: "String" } }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { name: "String" } }, - publisherEmail: { + clientId: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "properties.publisherEmail", - required: true, - xmlName: "properties.publisherEmail", + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - publisherName: { + clientSecret: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "properties.publisherName", - required: true, - xmlName: "properties.publisherName", + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -13413,41 +14344,34 @@ export const ApiManagementServiceResource: coreClient.CompositeMapper = { } }; -export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateParameters", +export const IdentityProviderCreateContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateParameters", + className: "IdentityProviderCreateContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", - type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } - }, - identity: { - serializedName: "identity", - xmlName: "identity", + ...ProxyResource.type.modelProperties, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" + name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, - xmlName: "etag", + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { name: "String" } }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + allowedTenants: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { name: "Sequence", element: { @@ -13457,268 +14381,330 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = } } }, - notificationSenderEmail: { + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", + type: { + name: "String" + } + }, + signupPolicyName: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + signinPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { name: "String" } }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + profileEditingPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { name: "String" } }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + passwordResetPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "DateTime" + name: "String" } }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { name: "String" } }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + clientId: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + clientSecret: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } - }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + } + } + } +}; + +export const LoggerContract: coreClient.CompositeMapper = { + serializedName: "LoggerContract", + type: { + name: "Composite", + className: "LoggerContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + loggerType: { + serializedName: "properties.loggerType", + xmlName: "properties.loggerType", type: { name: "String" } }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + description: { + constraints: { + MaxLength: 256 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + isBuffered: { + serializedName: "properties.isBuffered", + xmlName: "properties.isBuffered", + type: { + name: "Boolean" + } + }, + resourceId: { + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const NamedValueContract: coreClient.CompositeMapper = { + serializedName: "NamedValueContract", + type: { + name: "Composite", + className: "NamedValueContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "HostnameConfiguration" + name: "String" } } } }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { name: "String" } }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { name: "Composite", - className: "VirtualNetworkConfiguration" - } - }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } - } - }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", - type: { - name: "Dictionary", - value: { type: { name: "String" } } + className: "KeyVaultContractProperties" } - }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + } + } + } +}; + +export const NamedValueCreateContract: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContract", + type: { + name: "Composite", + className: "NamedValueCreateContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CertificateConfiguration" + name: "String" } } } }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { name: "Boolean" } }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Boolean" + name: "String" } }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { name: "String" } }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { name: "Composite", - className: "ApiVersionConstraint" + className: "KeyVaultContractCreateProperties" } - }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + } + } + } +}; + +export const NotificationContract: coreClient.CompositeMapper = { + serializedName: "NotificationContract", + type: { + name: "Composite", + className: "NotificationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + title: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "Boolean" + name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } + name: "String" } }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + recipients: { + serializedName: "properties.recipients", + xmlName: "properties.recipients", type: { - name: "String" + name: "Composite", + className: "RecipientsContractProperties" } - }, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherEmail", - xmlName: "properties.publisherEmail", + } + } + } +}; + +export const RecipientUserContract: coreClient.CompositeMapper = { + serializedName: "RecipientUserContract", + type: { + name: "Composite", + className: "RecipientUserContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { name: "String" } - }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherName", - xmlName: "properties.publisherName", + } + } + } +}; + +export const RecipientEmailContract: coreClient.CompositeMapper = { + serializedName: "RecipientEmailContract", + type: { + name: "Composite", + className: "RecipientEmailContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { name: "String" } @@ -13727,435 +14713,844 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = } }; -export const UserContractProperties: coreClient.CompositeMapper = { - serializedName: "UserContractProperties", +export const OpenidConnectProviderContract: coreClient.CompositeMapper = { + serializedName: "OpenidConnectProviderContract", type: { name: "Composite", - className: "UserContractProperties", + className: "OpenidConnectProviderContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - firstName: { - serializedName: "firstName", - xmlName: "firstName", + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - lastName: { - serializedName: "lastName", - xmlName: "lastName", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - email: { - serializedName: "email", - xmlName: "email", + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", + xmlName: "properties.metadataEndpoint", type: { name: "String" } }, - registrationDate: { - serializedName: "registrationDate", - xmlName: "registrationDate", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "DateTime" + name: "String" } }, - groups: { - serializedName: "groups", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", + type: { + name: "String" + } + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean" + } + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PolicyDescriptionContract: coreClient.CompositeMapper = { + serializedName: "PolicyDescriptionContract", + type: { + name: "Composite", + className: "PolicyDescriptionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", readOnly: true, - xmlName: "groups", - xmlElementName: "GroupContractProperties", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContractProperties" - } - } + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + readOnly: true, + xmlName: "properties.scope", + type: { + name: "Number" } } } } }; -export const UserCreateParameterProperties: coreClient.CompositeMapper = { - serializedName: "UserCreateParameterProperties", +export const PolicyFragmentContract: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentContract", type: { name: "Composite", - className: "UserCreateParameterProperties", + className: "PolicyFragmentContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "String" + } + }, + description: { constraints: { - MaxLength: 254, - MinLength: 1 + MaxLength: 1000 }, - serializedName: "email", - required: true, - xmlName: "email", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - firstName: { + format: { + serializedName: "properties.format", + xmlName: "properties.format", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceCollectionValueItem: coreClient.CompositeMapper = { + serializedName: "ResourceCollectionValueItem", + type: { + name: "Composite", + className: "ResourceCollectionValueItem", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const PortalConfigContract: coreClient.CompositeMapper = { + serializedName: "PortalConfigContract", + type: { + name: "Composite", + className: "PortalConfigContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + enableBasicAuth: { + defaultValue: true, + serializedName: "properties.enableBasicAuth", + xmlName: "properties.enableBasicAuth", + type: { + name: "Boolean" + } + }, + signin: { + serializedName: "properties.signin", + xmlName: "properties.signin", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignin" + } + }, + signup: { + serializedName: "properties.signup", + xmlName: "properties.signup", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignup" + } + }, + delegation: { + serializedName: "properties.delegation", + xmlName: "properties.delegation", + type: { + name: "Composite", + className: "PortalConfigDelegationProperties" + } + }, + cors: { + serializedName: "properties.cors", + xmlName: "properties.cors", + type: { + name: "Composite", + className: "PortalConfigCorsProperties" + } + }, + csp: { + serializedName: "properties.csp", + xmlName: "properties.csp", + type: { + name: "Composite", + className: "PortalConfigCspProperties" + } + } + } + } +}; + +export const PortalRevisionContract: coreClient.CompositeMapper = { + serializedName: "PortalRevisionContract", + type: { + name: "Composite", + className: "PortalRevisionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 2000 }, - serializedName: "firstName", - required: true, - xmlName: "firstName", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - lastName: { + statusDetails: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.statusDetails", + readOnly: true, + xmlName: "properties.statusDetails", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + xmlName: "properties.status", + type: { + name: "String" + } + }, + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", + type: { + name: "Boolean" + } + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", + type: { + name: "DateTime" + } + }, + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const PortalSettingsContract: coreClient.CompositeMapper = { + serializedName: "PortalSettingsContract", + type: { + name: "Composite", + className: "PortalSettingsContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + url: { + serializedName: "properties.url", + xmlName: "properties.url", + type: { + name: "String" + } + }, + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", + type: { + name: "String" + } + }, + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties" + } + }, + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties" + } + }, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } + }, + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties" + } + } + } + } +}; + +export const PortalSigninSettings: coreClient.CompositeMapper = { + serializedName: "PortalSigninSettings", + type: { + name: "Composite", + className: "PortalSigninSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PortalSignupSettings: coreClient.CompositeMapper = { + serializedName: "PortalSignupSettings", + type: { + name: "Composite", + className: "PortalSignupSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } + }, + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties" + } + } + } + } +}; + +export const PortalDelegationSettings: coreClient.CompositeMapper = { + serializedName: "PortalDelegationSettings", + type: { + name: "Composite", + className: "PortalDelegationSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + url: { + serializedName: "properties.url", + xmlName: "properties.url", + type: { + name: "String" + } + }, + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", + type: { + name: "String" + } + }, + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties" + } + }, + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties" + } + } + } + } +}; + +export const SubscriptionContract: coreClient.CompositeMapper = { + serializedName: "SubscriptionContract", + type: { + name: "Composite", + className: "SubscriptionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + ownerId: { + serializedName: "properties.ownerId", + xmlName: "properties.ownerId", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", + type: { + name: "String" + } + }, + displayName: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ] + } + }, + createdDate: { + serializedName: "properties.createdDate", + readOnly: true, + xmlName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + startDate: { + serializedName: "properties.startDate", + xmlName: "properties.startDate", + type: { + name: "DateTime" + } + }, + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + endDate: { + serializedName: "properties.endDate", + xmlName: "properties.endDate", + type: { + name: "DateTime" + } + }, + notificationDate: { + serializedName: "properties.notificationDate", + xmlName: "properties.notificationDate", + type: { + name: "DateTime" + } + }, + primaryKey: { constraints: { - MaxLength: 100, + MaxLength: 256, MinLength: 1 }, - serializedName: "lastName", - required: true, - xmlName: "lastName", + serializedName: "properties.primaryKey", + xmlName: "properties.primaryKey", type: { name: "String" } }, - password: { - serializedName: "password", - xmlName: "password", + secondaryKey: { + constraints: { + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.secondaryKey", + xmlName: "properties.secondaryKey", type: { name: "String" } }, - appType: { - serializedName: "appType", - xmlName: "appType", + stateComment: { + serializedName: "properties.stateComment", + xmlName: "properties.stateComment", type: { name: "String" } }, - confirmation: { - serializedName: "confirmation", - xmlName: "confirmation", + allowTracing: { + serializedName: "properties.allowTracing", + xmlName: "properties.allowTracing", type: { - name: "String" + name: "Boolean" } } } } }; -export const UserUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "UserUpdateParametersProperties", +export const GlobalSchemaContract: coreClient.CompositeMapper = { + serializedName: "GlobalSchemaContract", type: { name: "Composite", - className: "UserUpdateParametersProperties", + className: "GlobalSchemaContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - xmlName: "email", + ...ProxyResource.type.modelProperties, + schemaType: { + serializedName: "properties.schemaType", + xmlName: "properties.schemaType", type: { name: "String" } }, - password: { - serializedName: "password", - xmlName: "password", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "firstName", - xmlName: "firstName", + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" + name: "any" } }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "lastName", - xmlName: "lastName", + document: { + serializedName: "properties.document", + xmlName: "properties.document", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const IdentityProviderContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContractProperties", +export const TenantSettingsContract: coreClient.CompositeMapper = { + serializedName: "TenantSettingsContract", type: { name: "Composite", - className: "IdentityProviderContractProperties", + className: "TenantSettingsContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - required: true, - xmlName: "clientId", - type: { - name: "String" - } - }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - xmlName: "clientSecret", + ...ProxyResource.type.modelProperties, + settings: { + serializedName: "properties.settings", + xmlName: "properties.settings", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContractProperties", +export const AccessInformationContract: coreClient.CompositeMapper = { + serializedName: "AccessInformationContract", type: { name: "Composite", - className: "IdentityProviderCreateContractProperties", + className: "AccessInformationContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - required: true, - xmlName: "clientId", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - required: true, - xmlName: "clientSecret", + principalId: { + serializedName: "properties.principalId", + xmlName: "properties.principalId", type: { name: "String" } + }, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } } } } }; -export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderUpdateProperties", +export const OperationResultContract: coreClient.CompositeMapper = { + serializedName: "OperationResultContract", type: { name: "Composite", - className: "IdentityProviderUpdateProperties", + className: "OperationResultContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - xmlName: "clientId", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - xmlName: "clientSecret", + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] + } + }, + started: { + serializedName: "properties.started", + xmlName: "properties.started", + type: { + name: "DateTime" + } + }, + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", + type: { + name: "DateTime" + } + }, + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", type: { name: "String" } + }, + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "ErrorResponseBody" + } + }, + actionLog: { + serializedName: "properties.actionLog", + readOnly: true, + xmlName: "properties.actionLog", + xmlElementName: "OperationResultLogItemContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationResultLogItemContract" + } + } + } } } } }; -export const NamedValueContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueContractProperties", +export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { + serializedName: "TenantConfigurationSyncStateContract", type: { name: "Composite", - className: "NamedValueContractProperties", + className: "TenantConfigurationSyncStateContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + branch: { + serializedName: "properties.branch", + xmlName: "properties.branch", + type: { + name: "String" + } + }, + commitId: { + serializedName: "properties.commitId", + xmlName: "properties.commitId", + type: { + name: "String" + } + }, + isExport: { + serializedName: "properties.isExport", + xmlName: "properties.isExport", + type: { + name: "Boolean" + } + }, + isSynced: { + serializedName: "properties.isSynced", + xmlName: "properties.isSynced", type: { - name: "String" + name: "Boolean" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "value", - xmlName: "value", + isGitEnabled: { + serializedName: "properties.isGitEnabled", + xmlName: "properties.isGitEnabled", type: { - name: "String" + name: "Boolean" } }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + syncDate: { + serializedName: "properties.syncDate", + xmlName: "properties.syncDate", type: { - name: "Composite", - className: "KeyVaultContractProperties" + name: "DateTime" + } + }, + configurationChangeDate: { + serializedName: "properties.configurationChangeDate", + xmlName: "properties.configurationChangeDate", + type: { + name: "DateTime" + } + }, + lastOperationId: { + serializedName: "properties.lastOperationId", + xmlName: "properties.lastOperationId", + type: { + name: "String" } } } } }; -export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContractProperties", +export const DocumentationContract: coreClient.CompositeMapper = { + serializedName: "DocumentationContract", type: { name: "Composite", - className: "NamedValueCreateContractProperties", + className: "DocumentationContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "value", - xmlName: "value", + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { name: "String" } - }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", - type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } } } } }; -export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueUpdateParameterProperties", +export const ResolverResultContract: coreClient.CompositeMapper = { + serializedName: "ResolverResultContract", type: { name: "Composite", - className: "NamedValueUpdateParameterProperties", + className: "ResolverResultContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - value: { - constraints: { - MaxLength: 4096, - MinLength: 1 - }, - serializedName: "value", - xmlName: "value", + status: { + serializedName: "properties.status", + xmlName: "properties.status", type: { - name: "String" + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] } }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + started: { + serializedName: "properties.started", + xmlName: "properties.started", type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" + name: "DateTime" } - } - } - } -}; - -export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateProperties", - type: { - name: "Composite", - className: "ApiCreateOrUpdateProperties", - modelProperties: { - ...ApiContractProperties.type.modelProperties, - value: { - serializedName: "value", - xmlName: "value", + }, + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", type: { - name: "String" + name: "DateTime" } }, - format: { - serializedName: "format", - xmlName: "format", + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", type: { name: "String" } }, - wsdlSelector: { - serializedName: "wsdlSelector", - xmlName: "wsdlSelector", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" + className: "ErrorResponseBody" } }, - soapApiType: { - serializedName: "apiType", - xmlName: "apiType", + actionLog: { + serializedName: "properties.actionLog", + readOnly: true, + xmlName: "properties.actionLog", + xmlElementName: "ResolverResultLogItemContract", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolverResultLogItemContract" + } + } } } } @@ -14587,11 +15982,130 @@ export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const TagUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_updateHeaders", +export const TagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_updateHeaders", + type: { + name: "Composite", + className: "TagUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_updateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "TagUpdateHeaders", + className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14995,6 +16509,74 @@ export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper } }; +export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiWikiGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getHeaders", + type: { + name: "Composite", + className: "ApiWikiGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiWikiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_updateHeaders", + type: { + name: "Composite", + className: "ApiWikiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { serializedName: "ApiVersionSet_getEntityTagHeaders", type: { @@ -15148,6 +16730,142 @@ export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = } }; +export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_getHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_getHeaders", + type: { + name: "Composite", + className: "AuthorizationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_confirmConsentCodeHeaders", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginLinks_postHeaders", + type: { + name: "Composite", + className: "AuthorizationLoginLinksPostHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_getHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { serializedName: "Backend_getEntityTagHeaders", type: { @@ -15352,15 +17070,100 @@ export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { } }; -export const ContentTypeGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_getHeaders", +export const ContentTypeGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_getHeaders", + type: { + name: "Composite", + className: "ContentTypeGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ContentTypeCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getEntityTagHeaders", + type: { + name: "Composite", + className: "ContentItemGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ContentItemGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getHeaders", + type: { + name: "Composite", + className: "ContentItemGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ContentItemCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { + serializedName: "DeletedServices_purgeHeaders", type: { name: "Composite", - className: "ContentTypeGetHeaders", + className: "DeletedServicesPurgeHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15369,15 +17172,15 @@ export const ContentTypeGetHeaders: coreClient.CompositeMapper = { } }; -export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_createOrUpdateHeaders", +export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_restoreHeaders", type: { name: "Composite", - className: "ContentTypeCreateOrUpdateHeaders", + className: "ApiManagementServiceRestoreHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15386,15 +17189,15 @@ export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getEntityTagHeaders", +export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_backupHeaders", type: { name: "Composite", - className: "ContentItemGetEntityTagHeaders", + className: "ApiManagementServiceBackupHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15403,15 +17206,15 @@ export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getHeaders", +export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_migrateToStv2Headers", type: { name: "Composite", - className: "ContentItemGetHeaders", + className: "ApiManagementServiceMigrateToStv2Headers", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15420,15 +17223,16 @@ export const ContentItemGetHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_createOrUpdateHeaders", +export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = { + serializedName: + "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", type: { name: "Composite", - className: "ContentItemCreateOrUpdateHeaders", + className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -16236,6 +18040,91 @@ export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; +export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getEntityTagHeaders", + type: { + name: "Composite", + className: "PolicyFragmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getHeaders", + type: { + name: "Composite", + className: "PolicyFragmentGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "PolicyFragmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getEntityTagHeaders", + type: { + name: "Composite", + className: "PortalConfigGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getHeaders", + type: { + name: "Composite", + className: "PortalConfigGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { serializedName: "PortalRevision_getEntityTagHeaders", type: { @@ -16525,6 +18414,108 @@ export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; +export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getEntityTagHeaders", + type: { + name: "Composite", + className: "ProductWikiGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getHeaders", + type: { + name: "Composite", + className: "ProductWikiGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ProductWikiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_updateHeaders", + type: { + name: "Composite", + className: "ProductWikiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikisListHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listHeaders", + type: { + name: "Composite", + className: "ProductWikisListHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listNextHeaders", + type: { + name: "Composite", + className: "ProductWikisListNextHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { serializedName: "GlobalSchema_getEntityTagHeaders", type: { @@ -16847,3 +18838,71 @@ export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { } } }; + +export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getEntityTagHeaders", + type: { + name: "Composite", + className: "DocumentationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getHeaders", + type: { + name: "Composite", + className: "DocumentationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "DocumentationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_updateHeaders", + type: { + name: "Composite", + className: "DocumentationUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index 601573208ccf..5fbad6e2b16b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -19,6 +19,8 @@ import { OperationUpdateContract as OperationUpdateContractMapper, PolicyContract as PolicyContractMapper, TagCreateUpdateParameters as TagCreateUpdateParametersMapper, + ResolverContract as ResolverContractMapper, + ResolverUpdateContract as ResolverUpdateContractMapper, SchemaContract as SchemaContractMapper, DiagnosticContract as DiagnosticContractMapper, IssueContract as IssueContractMapper, @@ -26,10 +28,17 @@ import { IssueCommentContract as IssueCommentContractMapper, IssueAttachmentContract as IssueAttachmentContractMapper, TagDescriptionCreateParameters as TagDescriptionCreateParametersMapper, + WikiContract as WikiContractMapper, + WikiUpdateContract as WikiUpdateContractMapper, ApiVersionSetContract as ApiVersionSetContractMapper, ApiVersionSetUpdateParameters as ApiVersionSetUpdateParametersMapper, AuthorizationServerContract as AuthorizationServerContractMapper, AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, + AuthorizationProviderContract as AuthorizationProviderContractMapper, + AuthorizationContract as AuthorizationContractMapper, + AuthorizationConfirmConsentCodeRequestContract as AuthorizationConfirmConsentCodeRequestContractMapper, + AuthorizationLoginRequestContract as AuthorizationLoginRequestContractMapper, + AuthorizationAccessPolicyContract as AuthorizationAccessPolicyContractMapper, BackendContract as BackendContractMapper, BackendUpdateParameters as BackendUpdateParametersMapper, BackendReconnectContract as BackendReconnectContractMapper, @@ -61,6 +70,8 @@ import { NamedValueUpdateParameters as NamedValueUpdateParametersMapper, OpenidConnectProviderContract as OpenidConnectProviderContractMapper, OpenidConnectProviderUpdateContract as OpenidConnectProviderUpdateContractMapper, + PolicyFragmentContract as PolicyFragmentContractMapper, + PortalConfigContract as PortalConfigContractMapper, PortalRevisionContract as PortalRevisionContractMapper, PortalSigninSettings as PortalSigninSettingsMapper, PortalSignupSettings as PortalSignupSettingsMapper, @@ -78,7 +89,9 @@ import { SaveConfigurationParameter as SaveConfigurationParameterMapper, UserCreateParameters as UserCreateParametersMapper, UserUpdateParameters as UserUpdateParametersMapper, - UserTokenParameters as UserTokenParametersMapper + UserTokenParameters as UserTokenParametersMapper, + DocumentationContract as DocumentationContractMapper, + DocumentationUpdateContract as DocumentationUpdateContractMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -109,6 +122,10 @@ export const $host: OperationURLParameter = { export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, serializedName: "resourceGroupName", required: true, xmlName: "resourceGroupName", @@ -199,7 +216,7 @@ export const expandApiVersionSet: OperationQueryParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-08-01", + defaultValue: "2022-08-01", isConstant: true, serializedName: "api-version", type: { @@ -211,6 +228,9 @@ export const apiVersion: OperationQueryParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { + constraints: { + MinLength: 1 + }, serializedName: "subscriptionId", required: true, xmlName: "subscriptionId", @@ -459,6 +479,32 @@ export const parameters6: OperationParameter = { mapper: TagCreateUpdateParametersMapper }; +export const resolverId: OperationURLParameter = { + parameterPath: "resolverId", + mapper: { + constraints: { + MaxLength: 80, + MinLength: 1 + }, + serializedName: "resolverId", + required: true, + xmlName: "resolverId", + type: { + name: "String" + } + } +}; + +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: ResolverContractMapper +}; + +export const parameters8: OperationParameter = { + parameterPath: "parameters", + mapper: ResolverUpdateContractMapper +}; + export const accept1: OperationParameter = { parameterPath: "accept", mapper: { @@ -488,7 +534,7 @@ export const schemaId: OperationURLParameter = { } }; -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: SchemaContractMapper }; @@ -521,7 +567,7 @@ export const diagnosticId: OperationURLParameter = { } }; -export const parameters8: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: DiagnosticContractMapper }; @@ -554,12 +600,12 @@ export const issueId: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: IssueContractMapper }; -export const parameters10: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: IssueUpdateContractMapper }; @@ -581,7 +627,7 @@ export const commentId: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: IssueCommentContractMapper }; @@ -603,7 +649,7 @@ export const attachmentId: OperationURLParameter = { } }; -export const parameters12: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: IssueAttachmentContractMapper }; @@ -625,7 +671,7 @@ export const tagDescriptionId: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: TagDescriptionCreateParametersMapper }; @@ -641,6 +687,16 @@ export const includeNotTaggedOperations: OperationQueryParameter = { } }; +export const parameters16: OperationParameter = { + parameterPath: "parameters", + mapper: WikiContractMapper +}; + +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: WikiUpdateContractMapper +}; + export const format1: OperationQueryParameter = { parameterPath: "format", mapper: { @@ -682,12 +738,12 @@ export const versionSetId: OperationURLParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: ApiVersionSetContractMapper }; -export const parameters15: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: ApiVersionSetUpdateParametersMapper }; @@ -709,16 +765,92 @@ export const authsid: OperationURLParameter = { } }; -export const parameters16: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationServerContractMapper }; -export const parameters17: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationServerUpdateContractMapper }; +export const authorizationProviderId: OperationURLParameter = { + parameterPath: "authorizationProviderId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "authorizationProviderId", + required: true, + xmlName: "authorizationProviderId", + type: { + name: "String" + } + } +}; + +export const parameters22: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationProviderContractMapper +}; + +export const authorizationId: OperationURLParameter = { + parameterPath: "authorizationId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "authorizationId", + required: true, + xmlName: "authorizationId", + type: { + name: "String" + } + } +}; + +export const parameters23: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationContractMapper +}; + +export const parameters24: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationConfirmConsentCodeRequestContractMapper +}; + +export const parameters25: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationLoginRequestContractMapper +}; + +export const authorizationAccessPolicyId: OperationURLParameter = { + parameterPath: "authorizationAccessPolicyId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "authorizationAccessPolicyId", + required: true, + xmlName: "authorizationAccessPolicyId", + type: { + name: "String" + } + } +}; + +export const parameters26: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationAccessPolicyContractMapper +}; + export const backendId: OperationURLParameter = { parameterPath: "backendId", mapper: { @@ -735,17 +867,17 @@ export const backendId: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: BackendContractMapper }; -export const parameters19: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: BackendUpdateParametersMapper }; -export const parameters20: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: ["options", "parameters"], mapper: BackendReconnectContractMapper }; @@ -767,12 +899,12 @@ export const cacheId: OperationURLParameter = { } }; -export const parameters21: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: CacheContractMapper }; -export const parameters22: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: CacheUpdateParametersMapper }; @@ -805,7 +937,7 @@ export const certificateId: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: CertificateCreateOrUpdateParametersMapper }; @@ -831,7 +963,7 @@ export const contentTypeId: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: ContentTypeContractMapper }; @@ -852,7 +984,7 @@ export const contentItemId: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: ContentItemContractMapper }; @@ -869,27 +1001,27 @@ export const location: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceBackupRestoreParametersMapper }; -export const parameters27: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceResourceMapper }; -export const parameters28: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceUpdateParametersMapper }; -export const parameters29: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper }; -export const parameters30: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: ["options", "parameters"], mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper }; @@ -906,7 +1038,7 @@ export const templateName: OperationURLParameter = { } }; -export const parameters31: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: EmailTemplateUpdateParametersMapper }; @@ -927,17 +1059,17 @@ export const gatewayId: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: GatewayContractMapper }; -export const parameters33: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: GatewayKeyRegenerationRequestContractMapper }; -export const parameters34: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: GatewayTokenRequestContractMapper }; @@ -958,17 +1090,17 @@ export const hcId: OperationURLParameter = { } }; -export const parameters35: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: GatewayHostnameConfigurationContractMapper }; -export const parameters36: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: ["options", "parameters"], mapper: AssociationContractMapper }; -export const parameters37: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: GatewayCertificateAuthorityContractMapper }; @@ -989,12 +1121,12 @@ export const groupId: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: GroupCreateParametersMapper }; -export const parameters39: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: GroupUpdateParametersMapper }; @@ -1027,12 +1159,12 @@ export const identityProviderName: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderCreateContractMapper }; -export const parameters41: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderUpdateParametersMapper }; @@ -1053,12 +1185,12 @@ export const loggerId: OperationURLParameter = { } }; -export const parameters42: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: LoggerContractMapper }; -export const parameters43: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: LoggerUpdateContractMapper }; @@ -1079,12 +1211,12 @@ export const namedValueId: OperationURLParameter = { } }; -export const parameters44: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: NamedValueCreateContractMapper }; -export const parameters45: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: NamedValueUpdateParametersMapper }; @@ -1144,12 +1276,12 @@ export const opid: OperationURLParameter = { } }; -export const parameters46: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderContractMapper }; -export const parameters47: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderUpdateContractMapper }; @@ -1166,6 +1298,71 @@ export const scope1: OperationQueryParameter = { } }; +export const orderby: OperationQueryParameter = { + parameterPath: ["options", "orderby"], + mapper: { + serializedName: "$orderby", + xmlName: "$orderby", + type: { + name: "String" + } + } +}; + +export const id: OperationURLParameter = { + parameterPath: "id", + mapper: { + constraints: { + Pattern: new RegExp("(^[\\w]+$)|(^[\\w][\\w\\-]+[\\w]$)"), + MaxLength: 80, + MinLength: 1 + }, + serializedName: "id", + required: true, + xmlName: "id", + type: { + name: "String" + } + } +}; + +export const format2: OperationQueryParameter = { + parameterPath: ["options", "format"], + mapper: { + serializedName: "format", + xmlName: "format", + type: { + name: "String" + } + } +}; + +export const parameters57: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyFragmentContractMapper +}; + +export const portalConfigId: OperationURLParameter = { + parameterPath: "portalConfigId", + mapper: { + constraints: { + MaxLength: 80, + MinLength: 1 + }, + serializedName: "portalConfigId", + required: true, + xmlName: "portalConfigId", + type: { + name: "String" + } + } +}; + +export const parameters58: OperationParameter = { + parameterPath: "parameters", + mapper: PortalConfigContractMapper +}; + export const portalRevisionId: OperationURLParameter = { parameterPath: "portalRevisionId", mapper: { @@ -1182,22 +1379,22 @@ export const portalRevisionId: OperationURLParameter = { } }; -export const parameters48: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: PortalRevisionContractMapper }; -export const parameters49: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: PortalSigninSettingsMapper }; -export const parameters50: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: PortalSignupSettingsMapper }; -export const parameters51: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: PortalDelegationSettingsMapper }; @@ -1242,12 +1439,12 @@ export const expandGroups: OperationQueryParameter = { } }; -export const parameters52: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: ProductContractMapper }; -export const parameters53: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: ProductUpdateParametersMapper }; @@ -1286,7 +1483,7 @@ export const quotaCounterKey: OperationURLParameter = { } }; -export const parameters54: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: QuotaCounterValueUpdateContractMapper }; @@ -1315,17 +1512,6 @@ export const filter1: OperationQueryParameter = { } }; -export const orderby: OperationQueryParameter = { - parameterPath: ["options", "orderby"], - mapper: { - serializedName: "$orderby", - xmlName: "$orderby", - type: { - name: "String" - } - } -}; - export const interval: OperationQueryParameter = { parameterPath: "interval", mapper: { @@ -1338,7 +1524,7 @@ export const interval: OperationQueryParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: GlobalSchemaContractMapper }; @@ -1371,7 +1557,7 @@ export const sid: OperationURLParameter = { } }; -export const parameters56: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionCreateParametersMapper }; @@ -1398,7 +1584,7 @@ export const appType: OperationQueryParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionUpdateParametersMapper }; @@ -1415,17 +1601,17 @@ export const accessName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationCreateParametersMapper }; -export const parameters59: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationUpdateParametersMapper }; -export const parameters60: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: DeployConfigurationParametersMapper }; @@ -1442,22 +1628,49 @@ export const configurationName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: SaveConfigurationParameterMapper }; -export const parameters62: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: UserCreateParametersMapper }; -export const parameters63: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: UserUpdateParametersMapper }; -export const parameters64: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: UserTokenParametersMapper }; + +export const documentationId: OperationURLParameter = { + parameterPath: "documentationId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "documentationId", + required: true, + xmlName: "documentationId", + type: { + name: "String" + } + } +}; + +export const parameters76: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationContractMapper +}; + +export const parameters77: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationUpdateContractMapper +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts index c881a9a1936a..c1635689c9a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ApiContract, ApiListByServiceNextOptionalParams, @@ -54,7 +58,7 @@ export class ApiImpl implements Api { /** * Lists all APIs of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -138,7 +142,7 @@ export class ApiImpl implements Api { /** * Lists a collection of apis associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -218,7 +222,7 @@ export class ApiImpl implements Api { /** * Lists all APIs of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -235,7 +239,7 @@ export class ApiImpl implements Api { /** * Gets the entity state (Etag) version of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -255,7 +259,7 @@ export class ApiImpl implements Api { /** * Gets the details of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -275,7 +279,7 @@ export class ApiImpl implements Api { /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -289,8 +293,8 @@ export class ApiImpl implements Api { parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiCreateOrUpdateResponse > > { @@ -300,7 +304,7 @@ export class ApiImpl implements Api { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -333,15 +337,18 @@ export class ApiImpl implements Api { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, apiId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, apiId, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApiCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -349,7 +356,7 @@ export class ApiImpl implements Api { /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -375,7 +382,7 @@ export class ApiImpl implements Api { /** * Updates the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -400,7 +407,7 @@ export class ApiImpl implements Api { /** * Deletes the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -423,7 +430,7 @@ export class ApiImpl implements Api { /** * Lists a collection of apis associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -440,7 +447,7 @@ export class ApiImpl implements Api { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -459,7 +466,7 @@ export class ApiImpl implements Api { /** * ListByTagsNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByTags method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts index e07cce2b7b89..7f8a30b7977e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts @@ -45,7 +45,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Lists all diagnostics of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -138,7 +138,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Lists all diagnostics of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -157,7 +157,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -179,7 +179,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Gets the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -201,7 +201,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Creates a new Diagnostic for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -232,7 +232,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Updates the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -267,7 +267,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Deletes the specified Diagnostic from an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -292,7 +292,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. @@ -408,7 +408,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -439,7 +439,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts index 88c3e56ef789..c87591913545 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts @@ -33,7 +33,7 @@ export class ApiExportImpl implements ApiExport { /** * Gets the details of the API specified by its identifier in the format specified to the Storage Blob * with SAS Key valid for 5 minutes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts index 19350d2be36f..527cad10dd31 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts @@ -46,7 +46,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Lists all issues associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -139,7 +139,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Lists all issues associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -158,7 +158,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -179,7 +179,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Gets the details of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -200,7 +200,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Creates a new Issue for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -223,7 +223,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Updates an existing issue for an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -257,7 +257,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Deletes the specified Issue from an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -281,7 +281,7 @@ export class ApiIssueImpl implements ApiIssue { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. @@ -401,7 +401,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -432,7 +432,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts index 75f8dc935675..b4e477407b59 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts @@ -43,7 +43,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Lists all attachments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -145,7 +145,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Lists all attachments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -166,7 +166,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -189,7 +189,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Gets the details of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -212,7 +212,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Creates a new Attachment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -245,7 +245,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -279,7 +279,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts index a93a6852c7de..a7449a1a1e67 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts @@ -43,7 +43,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Lists all comments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -145,7 +145,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Lists all comments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -166,7 +166,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -189,7 +189,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Gets the details of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -212,7 +212,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Creates a new Comment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -245,7 +245,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -279,7 +279,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts index 681c8dbc4f35..874d5245fd79 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ApiManagementServiceResource, ApiManagementServiceListByResourceGroupNextOptionalParams, @@ -36,6 +40,8 @@ import { ApiManagementServiceGetOptionalParams, ApiManagementServiceGetResponse, ApiManagementServiceDeleteOptionalParams, + ApiManagementServiceMigrateToStv2OptionalParams, + ApiManagementServiceMigrateToStv2Response, ApiManagementServiceGetSsoTokenOptionalParams, ApiManagementServiceGetSsoTokenResponse, ApiManagementServiceCheckNameAvailabilityParameters, @@ -64,7 +70,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * List all API Management services within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( @@ -189,7 +195,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -200,8 +206,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceRestoreResponse > > { @@ -211,7 +217,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -244,15 +250,18 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - restoreOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: restoreOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceRestoreResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -262,7 +271,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -285,7 +294,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -296,8 +305,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceBackupResponse > > { @@ -307,7 +316,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -340,15 +349,18 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - backupOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: backupOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceBackupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -357,7 +369,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -380,7 +392,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -391,8 +403,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceCreateOrUpdateResponse > > { @@ -402,7 +414,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -435,13 +447,16 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -451,7 +466,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -473,7 +488,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -484,8 +499,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceUpdateResponse > > { @@ -495,7 +510,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -528,13 +543,16 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -543,7 +561,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -565,7 +583,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Gets an API Management service resource description. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -582,7 +600,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -590,14 +608,14 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -630,13 +648,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -645,7 +663,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -662,9 +680,104 @@ export class ApiManagementServiceImpl implements ApiManagementService { return poller.pollUntilDone(); } + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginMigrateToStv2( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementServiceMigrateToStv2Response + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: migrateToStv2OperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceMigrateToStv2Response, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginMigrateToStv2AndWait( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise { + const poller = await this.beginMigrateToStv2( + resourceGroupName, + serviceName, + options + ); + return poller.pollUntilDone(); + } + /** * List all API Management services within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( @@ -689,7 +802,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -735,7 +848,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -744,8 +857,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams ): Promise< - PollerLike< - PollOperationState< + SimplePollerLike< + OperationState< ApiManagementServiceApplyNetworkConfigurationUpdatesResponse >, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse @@ -757,7 +870,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -790,15 +903,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, options }, - applyNetworkConfigurationUpdatesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: applyNetworkConfigurationUpdatesOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, + OperationState< + ApiManagementServiceApplyNetworkConfigurationUpdatesResponse + > + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -807,7 +925,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -826,7 +944,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ @@ -880,7 +998,7 @@ const restoreOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -913,7 +1031,7 @@ const backupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -946,7 +1064,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -979,7 +1097,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1036,6 +1154,37 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const migrateToStv2OperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 201: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 202: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 204: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", @@ -1108,7 +1257,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1153,7 +1302,7 @@ const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts index e6828b5fdf6f..4c96ac12b9bf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts @@ -36,7 +36,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { /** * Gets all available SKU for a given API Management service - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -120,7 +120,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { /** * Gets all available SKU for a given API Management service - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -137,7 +137,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { /** * ListAvailableServiceSkusNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListAvailableServiceSkus * method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts index 6475a009ca4d..719e17d32e77 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts @@ -46,7 +46,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Lists a collection of the operations for the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -140,7 +140,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Lists a collection of the operations for the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -160,7 +160,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Gets the entity state (Etag) version of the API operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -183,7 +183,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Gets the details of the API Operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -206,7 +206,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Creates a new operation in the API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -238,7 +238,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Updates the details of the operation in the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -274,7 +274,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Deletes the specified operation in the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -300,7 +300,7 @@ export class ApiOperationImpl implements ApiOperation { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts index 14650d18cd28..5bec2b5db52c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts @@ -39,7 +39,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Get the list of policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -62,7 +62,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Gets the entity state (Etag) version of the API operation policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -87,7 +87,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Get the policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -112,7 +112,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Creates or updates policy configuration for the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -147,7 +147,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Deletes the policy configuration at the Api Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts index 2c89c1c2e0cb..9bcc792f5dd5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts @@ -39,7 +39,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -59,7 +59,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Gets the entity state (Etag) version of the API policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -81,7 +81,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -103,7 +103,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Creates or updates policy configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -127,7 +127,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Deletes the policy configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts index 7fb3c2555b2d..b9a226a7aadb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts @@ -36,7 +36,7 @@ export class ApiProductImpl implements ApiProduct { /** * Lists all Products, which the API is part of. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class ApiProductImpl implements ApiProduct { /** * Lists all Products, which the API is part of. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class ApiProductImpl implements ApiProduct { /** * ListByApisNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByApis method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts index 09fa04bb1a6a..345185b5a2d9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts @@ -47,7 +47,7 @@ export class ApiReleaseImpl implements ApiRelease { * Lists all releases of an API. An API release is created when making an API Revision current. * Releases are also used to rollback to previous revisions. Results will be paged and can be * constrained by the $top and $skip parameters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -142,7 +142,7 @@ export class ApiReleaseImpl implements ApiRelease { * Lists all releases of an API. An API release is created when making an API Revision current. * Releases are also used to rollback to previous revisions. Results will be paged and can be * constrained by the $top and $skip parameters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -161,7 +161,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Returns the etag of an API release. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -183,7 +183,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Returns the details of an API release. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -205,7 +205,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Creates a new Release for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -229,7 +229,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Updates the details of the release of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -264,7 +264,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Deletes the specified release in the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -289,7 +289,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts index 7ba66db5eb26..c76a9aa1f6bf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts @@ -36,7 +36,7 @@ export class ApiRevisionImpl implements ApiRevision { /** * Lists all revisions of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class ApiRevisionImpl implements ApiRevision { /** * Lists all revisions of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class ApiRevisionImpl implements ApiRevision { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts index 2844e1b40479..81cdbcbce722 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { SchemaContract, ApiSchemaListByApiNextOptionalParams, @@ -45,7 +49,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -139,7 +143,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -159,7 +163,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Gets the entity state (Etag) version of the schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -181,7 +185,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -203,7 +207,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -219,8 +223,8 @@ export class ApiSchemaImpl implements ApiSchema { parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiSchemaCreateOrUpdateResponse > > { @@ -230,7 +234,7 @@ export class ApiSchemaImpl implements ApiSchema { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -263,15 +267,25 @@ export class ApiSchemaImpl implements ApiSchema { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, apiId, schemaId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + apiId, + schemaId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApiSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -279,7 +293,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -308,7 +322,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Deletes the schema configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -333,7 +347,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -458,7 +472,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts index f21da82fdc8a..34f2b6f132b9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts @@ -45,7 +45,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on * API level but tag may be assigned to the Operations - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -140,7 +140,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on * API level but tag may be assigned to the Operations - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -160,7 +160,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -183,7 +183,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Get Tag description in scope of API - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -206,7 +206,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Create/Update tag description in scope of the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -238,7 +238,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Delete tag description for the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -271,7 +271,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -388,7 +388,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts index 1d0ca238540f..2057a4b4532a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts @@ -46,7 +46,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Lists a collection of API Version Sets in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +130,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Lists a collection of API Version Sets in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +147,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -167,7 +167,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Gets the details of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -187,7 +187,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Creates or Updates a Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -209,7 +209,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Updates the details of the Api VersionSet specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -241,7 +241,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Deletes specific Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -264,7 +264,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -375,7 +375,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -405,7 +405,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts new file mode 100644 index 000000000000..97883b205cfb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts @@ -0,0 +1,280 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { ApiWiki } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiWikiGetEntityTagOptionalParams, + ApiWikiGetEntityTagResponse, + ApiWikiGetOptionalParams, + ApiWikiGetResponse, + WikiContract, + ApiWikiCreateOrUpdateOptionalParams, + ApiWikiCreateOrUpdateResponse, + WikiUpdateContract, + ApiWikiUpdateOptionalParams, + ApiWikiUpdateResponse, + ApiWikiDeleteOptionalParams +} from "../models"; + +/** Class containing ApiWiki operations. */ +export class ApiWikiImpl implements ApiWiki { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiWiki class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + getOperationSpec + ); + } + + /** + * Creates a new Wiki for an API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + parameters: WikiContract, + options?: ApiWikiCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ApiWikiUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, ifMatch, parameters, options }, + updateOperationSpec + ); + } + + /** + * Deletes the specified Wiki from an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiWikiDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, ifMatch, options }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.ApiWikiGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts new file mode 100644 index 000000000000..d4aeb49360f5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts @@ -0,0 +1,217 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ApiWikis } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WikiContract, + ApiWikisListNextOptionalParams, + ApiWikisListOptionalParams, + ApiWikisListResponse, + ApiWikisListNextResponse +} from "../models"; + +/// +/** Class containing ApiWikis operations. */ +export class ApiWikisImpl implements ApiWikis { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiWikis class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the wikis for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + apiId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + apiId, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ApiWikisListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, serviceName, apiId, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + apiId, + options + )) { + yield* page; + } + } + + /** + * Gets the wikis for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + apiId: string, + nextLink: string, + options?: ApiWikisListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts new file mode 100644 index 000000000000..c347d55c595e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts @@ -0,0 +1,464 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Authorization } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AuthorizationContract, + AuthorizationListByAuthorizationProviderNextOptionalParams, + AuthorizationListByAuthorizationProviderOptionalParams, + AuthorizationListByAuthorizationProviderResponse, + AuthorizationGetOptionalParams, + AuthorizationGetResponse, + AuthorizationCreateOrUpdateOptionalParams, + AuthorizationCreateOrUpdateResponse, + AuthorizationDeleteOptionalParams, + AuthorizationConfirmConsentCodeRequestContract, + AuthorizationConfirmConsentCodeOptionalParams, + AuthorizationConfirmConsentCodeResponse, + AuthorizationListByAuthorizationProviderNextResponse +} from "../models"; + +/// +/** Class containing Authorization operations. */ +export class AuthorizationImpl implements Authorization { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Authorization class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of authorization providers defined within a authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + public listByAuthorizationProvider( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByAuthorizationProviderPagingAll( + resourceGroupName, + serviceName, + authorizationProviderId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByAuthorizationProviderPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + options, + settings + ); + } + }; + } + + private async *listByAuthorizationProviderPagingPage( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AuthorizationListByAuthorizationProviderResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAuthorizationProvider( + resourceGroupName, + serviceName, + authorizationProviderId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAuthorizationProviderNext( + resourceGroupName, + serviceName, + authorizationProviderId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAuthorizationProviderPagingAll( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByAuthorizationProviderPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of authorization providers defined within a authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + private _listByAuthorizationProvider( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, authorizationProviderId, options }, + listByAuthorizationProviderOperationSpec + ); + } + + /** + * Gets the details of the authorization specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationContract, + options?: AuthorizationCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes specific Authorization from the Authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + ifMatch: string, + options?: AuthorizationDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * Confirm valid consent code to suppress Authorizations anti-phishing page. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + confirmConsentCode( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationConfirmConsentCodeRequestContract, + options?: AuthorizationConfirmConsentCodeOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters, + options + }, + confirmConsentCodeOperationSpec + ); + } + + /** + * ListByAuthorizationProviderNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param nextLink The nextLink from the previous successful call to the ListByAuthorizationProvider + * method. + * @param options The options parameters. + */ + private _listByAuthorizationProviderNext( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + nextLink: string, + options?: AuthorizationListByAuthorizationProviderNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + nextLink, + options + }, + listByAuthorizationProviderNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByAuthorizationProviderOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationContract, + headersMapper: Mappers.AuthorizationGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationContract, + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.AuthorizationContract, + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.AuthorizationConfirmConsentCodeHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByAuthorizationProviderNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts new file mode 100644 index 000000000000..021fe8debd36 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts @@ -0,0 +1,439 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AuthorizationAccessPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AuthorizationAccessPolicyContract, + AuthorizationAccessPolicyListByAuthorizationNextOptionalParams, + AuthorizationAccessPolicyListByAuthorizationOptionalParams, + AuthorizationAccessPolicyListByAuthorizationResponse, + AuthorizationAccessPolicyGetOptionalParams, + AuthorizationAccessPolicyGetResponse, + AuthorizationAccessPolicyCreateOrUpdateOptionalParams, + AuthorizationAccessPolicyCreateOrUpdateResponse, + AuthorizationAccessPolicyDeleteOptionalParams, + AuthorizationAccessPolicyListByAuthorizationNextResponse +} from "../models"; + +/// +/** Class containing AuthorizationAccessPolicy operations. */ +export class AuthorizationAccessPolicyImpl + implements AuthorizationAccessPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AuthorizationAccessPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of authorization access policy defined within a authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + public listByAuthorization( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByAuthorizationPagingAll( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByAuthorizationPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options, + settings + ); + } + }; + } + + private async *listByAuthorizationPagingPage( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AuthorizationAccessPolicyListByAuthorizationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAuthorization( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAuthorizationNext( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAuthorizationPagingAll( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByAuthorizationPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of authorization access policy defined within a authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + private _listByAuthorization( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + }, + listByAuthorizationOperationSpec + ); + } + + /** + * Gets the details of the authorization access policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + options?: AuthorizationAccessPolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates Authorization Access Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + parameters: AuthorizationAccessPolicyContract, + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes specific access policy from the Authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + ifMatch: string, + options?: AuthorizationAccessPolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByAuthorizationNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param nextLink The nextLink from the previous successful call to the ListByAuthorization method. + * @param options The options parameters. + */ + private _listByAuthorizationNext( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + nextLink: string, + options?: AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + nextLink, + options + }, + listByAuthorizationNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByAuthorizationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyContract, + headersMapper: Mappers.AuthorizationAccessPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId, + Parameters.authorizationAccessPolicyId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyContract, + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.AuthorizationAccessPolicyContract, + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId, + Parameters.authorizationAccessPolicyId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId, + Parameters.authorizationAccessPolicyId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByAuthorizationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts new file mode 100644 index 000000000000..7a86c6edba4f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { AuthorizationLoginLinks } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AuthorizationLoginRequestContract, + AuthorizationLoginLinksPostOptionalParams, + AuthorizationLoginLinksPostResponse +} from "../models"; + +/** Class containing AuthorizationLoginLinks operations. */ +export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AuthorizationLoginLinks class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets authorization login links. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + post( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationLoginRequestContract, + options?: AuthorizationLoginLinksPostOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters, + options + }, + postOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const postOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationLoginResponseContract, + headersMapper: Mappers.AuthorizationLoginLinksPostHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts new file mode 100644 index 000000000000..603eae55b5fa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts @@ -0,0 +1,366 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AuthorizationProvider } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AuthorizationProviderContract, + AuthorizationProviderListByServiceNextOptionalParams, + AuthorizationProviderListByServiceOptionalParams, + AuthorizationProviderListByServiceResponse, + AuthorizationProviderGetOptionalParams, + AuthorizationProviderGetResponse, + AuthorizationProviderCreateOrUpdateOptionalParams, + AuthorizationProviderCreateOrUpdateResponse, + AuthorizationProviderDeleteOptionalParams, + AuthorizationProviderListByServiceNextResponse +} from "../models"; + +/// +/** Class containing AuthorizationProvider operations. */ +export class AuthorizationProviderImpl implements AuthorizationProvider { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AuthorizationProvider class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of authorization providers defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AuthorizationProviderListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of authorization providers defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the details of the authorization provider specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationProviderGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, authorizationProviderId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + parameters: AuthorizationProviderContract, + options?: AuthorizationProviderCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes specific authorization provider from the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + ifMatch: string, + options?: AuthorizationProviderDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: AuthorizationProviderListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderContract, + headersMapper: Mappers.AuthorizationProviderGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderContract, + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.AuthorizationProviderContract, + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts index 76fccf11be77..99abc294e940 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts @@ -48,7 +48,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Lists a collection of authorization servers defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -132,7 +132,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Lists a collection of authorization servers defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -149,7 +149,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -168,7 +168,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Gets the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -187,7 +187,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Creates new authorization server or updates an existing authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param parameters Create or update parameters. @@ -208,7 +208,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Updates the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -232,7 +232,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Deletes specific authorization server instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -254,7 +254,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Gets the client secret details of the authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -273,7 +273,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -384,7 +384,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -414,7 +414,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts index b0813f1e1097..c445f24cedbc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts @@ -47,7 +47,7 @@ export class BackendImpl implements Backend { /** * Lists a collection of backends in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -131,7 +131,7 @@ export class BackendImpl implements Backend { /** * Lists a collection of backends in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -148,7 +148,7 @@ export class BackendImpl implements Backend { /** * Gets the entity state (Etag) version of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -168,7 +168,7 @@ export class BackendImpl implements Backend { /** * Gets the details of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -188,7 +188,7 @@ export class BackendImpl implements Backend { /** * Creates or Updates a backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -210,7 +210,7 @@ export class BackendImpl implements Backend { /** * Updates an existing backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -242,7 +242,7 @@ export class BackendImpl implements Backend { /** * Deletes the specified backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -264,9 +264,9 @@ export class BackendImpl implements Backend { } /** - * Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no - * timeout was specified, timeout of 2 minutes is used. - * @param resourceGroupName The name of the resource group. + * Notifies the API Management gateway to create a new connection to the backend after the specified + * timeout. If no timeout was specified, timeout of 2 minutes is used. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -286,7 +286,7 @@ export class BackendImpl implements Backend { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -397,7 +397,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -427,7 +427,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -476,7 +476,7 @@ const reconnectOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts index ba8151a6606b..4c8a2d9f2f7c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts @@ -46,7 +46,7 @@ export class CacheImpl implements Cache { /** * Lists a collection of all external Caches in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +130,7 @@ export class CacheImpl implements Cache { /** * Lists a collection of all external Caches in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +147,7 @@ export class CacheImpl implements Cache { /** * Gets the entity state (Etag) version of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -167,7 +167,7 @@ export class CacheImpl implements Cache { /** * Gets the details of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -187,7 +187,7 @@ export class CacheImpl implements Cache { /** * Creates or updates an External Cache to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -209,7 +209,7 @@ export class CacheImpl implements Cache { /** * Updates the details of the cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -234,7 +234,7 @@ export class CacheImpl implements Cache { /** * Deletes specific Cache. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -257,7 +257,7 @@ export class CacheImpl implements Cache { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -363,7 +363,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -393,7 +393,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts index 2d327334eb6a..e4768349aeb3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts @@ -46,7 +46,7 @@ export class CertificateImpl implements Certificate { /** * Lists a collection of all certificates in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +130,7 @@ export class CertificateImpl implements Certificate { /** * Lists a collection of all certificates in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +147,7 @@ export class CertificateImpl implements Certificate { /** * Gets the entity state (Etag) version of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -167,7 +167,7 @@ export class CertificateImpl implements Certificate { /** * Gets the details of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -187,7 +187,7 @@ export class CertificateImpl implements Certificate { /** * Creates or updates the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -209,7 +209,7 @@ export class CertificateImpl implements Certificate { /** * Deletes specific certificate. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -232,7 +232,7 @@ export class CertificateImpl implements Certificate { /** * From KeyVault, Refresh the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -252,7 +252,7 @@ export class CertificateImpl implements Certificate { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -364,7 +364,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts index 2bfa42bde798..3f3cc3eac3b8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts @@ -43,7 +43,7 @@ export class ContentItemImpl implements ContentItem { /** * Lists developer portal's content items specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -136,7 +136,7 @@ export class ContentItemImpl implements ContentItem { /** * Lists developer portal's content items specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -156,7 +156,7 @@ export class ContentItemImpl implements ContentItem { /** * Returns the entity state (ETag) version of the developer portal's content item specified by its * identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -177,7 +177,7 @@ export class ContentItemImpl implements ContentItem { /** * Returns the developer portal's content item specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -198,7 +198,7 @@ export class ContentItemImpl implements ContentItem { /** * Creates a new developer portal's content item specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -228,7 +228,7 @@ export class ContentItemImpl implements ContentItem { /** * Removes the specified developer portal's content item. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -259,7 +259,7 @@ export class ContentItemImpl implements ContentItem { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param nextLink The nextLink from the previous successful call to the ListByService method. @@ -370,7 +370,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts index 3b4aa882b28c..e9208395eed7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts @@ -42,7 +42,7 @@ export class ContentTypeImpl implements ContentType { /** * Lists the developer portal's content types. Content types describe content items' properties, * validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -127,7 +127,7 @@ export class ContentTypeImpl implements ContentType { /** * Lists the developer portal's content types. Content types describe content items' properties, * validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -145,7 +145,7 @@ export class ContentTypeImpl implements ContentType { /** * Gets the details of the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -166,7 +166,7 @@ export class ContentTypeImpl implements ContentType { * Creates or updates the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Custom content types' identifiers need to start with * the `c-` prefix. Built-in content types can't be modified. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param parameters Create or update parameters. @@ -189,7 +189,7 @@ export class ContentTypeImpl implements ContentType { * Removes the specified developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Built-in content types (with identifiers starting * with the `c-` prefix) can't be removed. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -211,7 +211,7 @@ export class ContentTypeImpl implements ContentType { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -294,7 +294,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts index e6617d78ba61..d4a14c240964 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts @@ -38,7 +38,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Gets the entity state (Etag) version of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -55,7 +55,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Get Delegation Settings for the Portal. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -72,7 +72,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -94,7 +94,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Create or Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -113,7 +113,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Gets the secret validation key of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -186,7 +186,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -214,7 +214,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts index 7373b2943cb3..8dd8dab2cfc4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DeletedServiceContract, DeletedServicesListBySubscriptionNextOptionalParams, @@ -133,14 +137,14 @@ export class DeletedServicesImpl implements DeletedServices { serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -173,15 +177,15 @@ export class DeletedServicesImpl implements DeletedServices { }; }; - const lro = new LroImpl( - sendOperation, - { serviceName, location, options }, - purgeOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { serviceName, location, options }, + spec: purgeOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts index 6d479f38276e..d27a987dc82b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts @@ -45,7 +45,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Lists all diagnostics of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -129,7 +129,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Lists all diagnostics of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -146,7 +146,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -166,7 +166,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Gets the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -186,7 +186,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Creates a new Diagnostic or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -208,7 +208,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Updates the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -240,7 +240,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Deletes the specified Diagnostic. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -263,7 +263,7 @@ export class DiagnosticImpl implements Diagnostic { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -374,7 +374,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -404,7 +404,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts new file mode 100644 index 000000000000..7550ac83335b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts @@ -0,0 +1,467 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Documentation } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + DocumentationContract, + DocumentationListByServiceNextOptionalParams, + DocumentationListByServiceOptionalParams, + DocumentationListByServiceResponse, + DocumentationGetEntityTagOptionalParams, + DocumentationGetEntityTagResponse, + DocumentationGetOptionalParams, + DocumentationGetResponse, + DocumentationCreateOrUpdateOptionalParams, + DocumentationCreateOrUpdateResponse, + DocumentationUpdateContract, + DocumentationUpdateOptionalParams, + DocumentationUpdateResponse, + DocumentationDeleteOptionalParams, + DocumentationListByServiceNextResponse +} from "../models"; + +/// +/** Class containing Documentation operations. */ +export class DocumentationImpl implements Documentation { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Documentation class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all Documentations of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DocumentationListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists all Documentations of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the Documentation by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Documentation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, options }, + getOperationSpec + ); + } + + /** + * Creates a new Documentation or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + documentationId: string, + parameters: DocumentationContract, + options?: DocumentationCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Documentation for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Documentation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + parameters: DocumentationUpdateContract, + options?: DocumentationUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + documentationId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified Documentation from an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + options?: DocumentationDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: DocumentationListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DocumentationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.DocumentationGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters76, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters77, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DocumentationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts index ebe9dfbf80ec..f718843e6496 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts @@ -47,7 +47,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets all email templates - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -131,7 +131,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets all email templates - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -148,7 +148,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets the entity state (Etag) version of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -167,7 +167,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets the details of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -186,7 +186,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Updates an Email Template. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param parameters Email Template update parameters. @@ -207,7 +207,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Updates API Management email template - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -238,7 +238,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Reset the Email Template to default template provided by the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -260,7 +260,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -369,7 +369,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -399,7 +399,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts index dc93c4c32df9..490287bf253f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts @@ -52,7 +52,7 @@ export class GatewayImpl implements Gateway { /** * Lists a collection of gateways registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -136,7 +136,7 @@ export class GatewayImpl implements Gateway { /** * Lists a collection of gateways registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -153,7 +153,7 @@ export class GatewayImpl implements Gateway { /** * Gets the entity state (Etag) version of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -173,7 +173,7 @@ export class GatewayImpl implements Gateway { /** * Gets the details of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -193,7 +193,7 @@ export class GatewayImpl implements Gateway { /** * Creates or updates a Gateway to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -215,7 +215,7 @@ export class GatewayImpl implements Gateway { /** * Updates the details of the gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -247,7 +247,7 @@ export class GatewayImpl implements Gateway { /** * Deletes specific Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -270,7 +270,7 @@ export class GatewayImpl implements Gateway { /** * Retrieves gateway keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -290,7 +290,7 @@ export class GatewayImpl implements Gateway { /** * Regenerates specified gateway key invalidating any tokens created with it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -312,7 +312,7 @@ export class GatewayImpl implements Gateway { /** * Gets the Shared Access Authorization Token for the gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -334,7 +334,7 @@ export class GatewayImpl implements Gateway { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -445,7 +445,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -475,7 +475,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -548,7 +548,7 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -573,7 +573,7 @@ const generateTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts index 285c7b92f9d7..b355825a6bfe 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts @@ -41,7 +41,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Lists a collection of the APIs associated with a gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -135,7 +135,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Lists a collection of the APIs associated with a gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -155,7 +155,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Checks that API entity specified by identifier is associated with the Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -177,7 +177,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Adds an API to the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -199,7 +199,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Deletes the specified API from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -221,7 +221,7 @@ export class GatewayApiImpl implements GatewayApi { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -311,7 +311,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts index 5d0dcac613cd..bac861289331 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts @@ -44,7 +44,7 @@ export class GatewayCertificateAuthorityImpl /** * Lists the collection of Certificate Authorities for the specified Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -138,7 +138,7 @@ export class GatewayCertificateAuthorityImpl /** * Lists the collection of Certificate Authorities for the specified Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -158,7 +158,7 @@ export class GatewayCertificateAuthorityImpl /** * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -181,7 +181,7 @@ export class GatewayCertificateAuthorityImpl /** * Get assigned Gateway Certificate Authority details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -204,7 +204,7 @@ export class GatewayCertificateAuthorityImpl /** * Assign Certificate entity to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -236,7 +236,7 @@ export class GatewayCertificateAuthorityImpl /** * Remove relationship between Certificate Authority and Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -269,7 +269,7 @@ export class GatewayCertificateAuthorityImpl /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -386,7 +386,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts index f37771fe631c..c65ce1a26b6b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts @@ -44,7 +44,7 @@ export class GatewayHostnameConfigurationImpl /** * Lists the collection of hostname configurations for the specified gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -138,7 +138,7 @@ export class GatewayHostnameConfigurationImpl /** * Lists the collection of hostname configurations for the specified gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -159,7 +159,7 @@ export class GatewayHostnameConfigurationImpl /** * Checks that hostname configuration entity specified by identifier exists for specified Gateway * entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -182,7 +182,7 @@ export class GatewayHostnameConfigurationImpl /** * Get details of a hostname configuration - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -205,7 +205,7 @@ export class GatewayHostnameConfigurationImpl /** * Creates of updates hostname configuration for a Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -230,7 +230,7 @@ export class GatewayHostnameConfigurationImpl /** * Deletes the specified hostname configuration from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -256,7 +256,7 @@ export class GatewayHostnameConfigurationImpl /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -373,7 +373,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts index 155516291aeb..9081ec027225 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { GlobalSchemaContract, GlobalSchemaListByServiceNextOptionalParams, @@ -45,7 +49,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Lists a collection of schemas registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -129,7 +133,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Lists a collection of schemas registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -146,7 +150,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Gets the entity state (Etag) version of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -165,7 +169,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Gets the details of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -184,7 +188,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -197,8 +201,8 @@ export class GlobalSchemaImpl implements GlobalSchema { parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GlobalSchemaCreateOrUpdateResponse > > { @@ -208,7 +212,7 @@ export class GlobalSchemaImpl implements GlobalSchema { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -241,15 +245,18 @@ export class GlobalSchemaImpl implements GlobalSchema { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, schemaId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, schemaId, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + GlobalSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -257,7 +264,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -282,7 +289,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Deletes specific Schema. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -304,7 +311,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -423,7 +430,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts new file mode 100644 index 000000000000..1d2fa2cedd2a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts @@ -0,0 +1,513 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GraphQLApiResolver } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ResolverContract, + GraphQLApiResolverListByApiNextOptionalParams, + GraphQLApiResolverListByApiOptionalParams, + GraphQLApiResolverListByApiResponse, + GraphQLApiResolverGetEntityTagOptionalParams, + GraphQLApiResolverGetEntityTagResponse, + GraphQLApiResolverGetOptionalParams, + GraphQLApiResolverGetResponse, + GraphQLApiResolverCreateOrUpdateOptionalParams, + GraphQLApiResolverCreateOrUpdateResponse, + ResolverUpdateContract, + GraphQLApiResolverUpdateOptionalParams, + GraphQLApiResolverUpdateResponse, + GraphQLApiResolverDeleteOptionalParams, + GraphQLApiResolverListByApiNextResponse +} from "../models"; + +/// +/** Class containing GraphQLApiResolver operations. */ +export class GraphQLApiResolverImpl implements GraphQLApiResolver { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class GraphQLApiResolver class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the resolvers for the specified GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + apiId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + apiId, + options, + settings + ); + } + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GraphQLApiResolverListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + apiId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + apiId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the resolvers for the specified GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + listByApiOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the GraphQL API Resolver specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, options }, + getOperationSpec + ); + } + + /** + * Creates a new resolver in the GraphQL API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + parameters: ResolverContract, + options?: GraphQLApiResolverCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the resolver in the GraphQL API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters GraphQL API Resolver Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + parameters: ResolverUpdateContract, + options?: GraphQLApiResolverUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified resolver in the GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + options?: GraphQLApiResolverDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + apiId: string, + nextLink: string, + options?: GraphQLApiResolverListByApiNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, nextLink, options }, + listByApiNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ResolverCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.GraphQLApiResolverGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ResolverCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts new file mode 100644 index 000000000000..884fac6979f9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts @@ -0,0 +1,478 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GraphQLApiResolverPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + GraphQLApiResolverPolicyListByResolverNextOptionalParams, + GraphQLApiResolverPolicyListByResolverOptionalParams, + GraphQLApiResolverPolicyListByResolverResponse, + PolicyIdName, + GraphQLApiResolverPolicyGetEntityTagOptionalParams, + GraphQLApiResolverPolicyGetEntityTagResponse, + GraphQLApiResolverPolicyGetOptionalParams, + GraphQLApiResolverPolicyGetResponse, + GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, + GraphQLApiResolverPolicyCreateOrUpdateResponse, + GraphQLApiResolverPolicyDeleteOptionalParams, + GraphQLApiResolverPolicyListByResolverNextResponse +} from "../models"; + +/// +/** Class containing GraphQLApiResolverPolicy operations. */ +export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class GraphQLApiResolverPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the list of policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + public listByResolver( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResolverPagingAll( + resourceGroupName, + serviceName, + apiId, + resolverId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResolverPagingPage( + resourceGroupName, + serviceName, + apiId, + resolverId, + options, + settings + ); + } + }; + } + + private async *listByResolverPagingPage( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GraphQLApiResolverPolicyListByResolverResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResolver( + resourceGroupName, + serviceName, + apiId, + resolverId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResolverNext( + resourceGroupName, + serviceName, + apiId, + resolverId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResolverPagingAll( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResolverPagingPage( + resourceGroupName, + serviceName, + apiId, + resolverId, + options + )) { + yield* page; + } + } + + /** + * Get the list of policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + private _listByResolver( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, options }, + listByResolverOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Get the policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates policy configuration for the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the policy configuration at the GraphQL Api Resolver. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: GraphQLApiResolverPolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByResolverNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByResolver method. + * @param options The options parameters. + */ + private _listByResolverNext( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + nextLink: string, + options?: GraphQLApiResolverPolicyListByResolverNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, nextLink, options }, + listByResolverNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByResolverOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.GraphQLApiResolverPolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.GraphQLApiResolverPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByResolverNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.nextLink, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts index d225cc07780f..d2e53a84fd5e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts @@ -47,7 +47,7 @@ export class GroupImpl implements Group { /** * Lists a collection of groups defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -131,7 +131,7 @@ export class GroupImpl implements Group { /** * Lists a collection of groups defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -148,7 +148,7 @@ export class GroupImpl implements Group { /** * Gets the entity state (Etag) version of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -167,7 +167,7 @@ export class GroupImpl implements Group { /** * Gets the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -186,7 +186,7 @@ export class GroupImpl implements Group { /** * Creates or Updates a group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -207,7 +207,7 @@ export class GroupImpl implements Group { /** * Updates the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -231,7 +231,7 @@ export class GroupImpl implements Group { /** * Deletes specific group of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -253,7 +253,7 @@ export class GroupImpl implements Group { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -364,7 +364,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -394,7 +394,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts index 294dc38310d2..d0e13397ab74 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts @@ -41,7 +41,7 @@ export class GroupUserImpl implements GroupUser { /** * Lists a collection of user entities associated with the group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -134,7 +134,7 @@ export class GroupUserImpl implements GroupUser { /** * Lists a collection of user entities associated with the group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -153,7 +153,7 @@ export class GroupUserImpl implements GroupUser { /** * Checks that user entity specified by identifier is associated with the group entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -174,7 +174,7 @@ export class GroupUserImpl implements GroupUser { /** * Add existing user to existing group - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -195,7 +195,7 @@ export class GroupUserImpl implements GroupUser { /** * Remove existing user from existing group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -216,7 +216,7 @@ export class GroupUserImpl implements GroupUser { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index ea2f9ccc75d0..7718b64cc6b3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts @@ -50,7 +50,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Lists a collection of Identity Provider configured in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -134,7 +134,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Lists a collection of Identity Provider configured in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -151,7 +151,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Gets the entity state (Etag) version of the identityProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -170,7 +170,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Gets the configuration details of the identity Provider configured in specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -189,7 +189,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Creates or Updates the IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param parameters Create parameters. @@ -216,7 +216,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Updates an existing IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -247,7 +247,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Deletes the specified identity provider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -275,7 +275,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Gets the client secret details of the Identity Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -294,7 +294,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -430,7 +430,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts index 24d2feb9be63..83434e88bcd2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts @@ -12,6 +12,8 @@ export * from "./apiRelease"; export * from "./apiOperation"; export * from "./apiOperationPolicy"; export * from "./tag"; +export * from "./graphQLApiResolver"; +export * from "./graphQLApiResolverPolicy"; export * from "./apiProduct"; export * from "./apiPolicy"; export * from "./apiSchema"; @@ -21,9 +23,15 @@ export * from "./apiIssueComment"; export * from "./apiIssueAttachment"; export * from "./apiTagDescription"; export * from "./operationOperations"; +export * from "./apiWiki"; +export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; export * from "./authorizationServer"; +export * from "./authorizationProvider"; +export * from "./authorization"; +export * from "./authorizationLoginLinks"; +export * from "./authorizationAccessPolicy"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -53,6 +61,8 @@ export * from "./openIdConnectProvider"; export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; +export * from "./policyFragment"; +export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; export * from "./signInSettings"; @@ -64,6 +74,8 @@ export * from "./productApi"; export * from "./productGroup"; export * from "./productSubscriptions"; export * from "./productPolicy"; +export * from "./productWiki"; +export * from "./productWikis"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -81,3 +93,4 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; +export * from "./documentation"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts index 0bfb38519fe3..55bf4c71ee76 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts @@ -38,7 +38,7 @@ export class IssueImpl implements Issue { /** * Lists a collection of issues in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -122,7 +122,7 @@ export class IssueImpl implements Issue { /** * Lists a collection of issues in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -139,7 +139,7 @@ export class IssueImpl implements Issue { /** * Gets API Management issue details - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -158,7 +158,7 @@ export class IssueImpl implements Issue { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts index cbb641ad3889..626d49673b05 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts @@ -46,7 +46,7 @@ export class LoggerImpl implements Logger { /** * Lists a collection of loggers in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +130,7 @@ export class LoggerImpl implements Logger { /** * Lists a collection of loggers in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +147,7 @@ export class LoggerImpl implements Logger { /** * Gets the entity state (Etag) version of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -166,7 +166,7 @@ export class LoggerImpl implements Logger { /** * Gets the details of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -185,7 +185,7 @@ export class LoggerImpl implements Logger { /** * Creates or Updates a logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Create parameters. @@ -206,7 +206,7 @@ export class LoggerImpl implements Logger { /** * Updates an existing logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -237,7 +237,7 @@ export class LoggerImpl implements Logger { /** * Deletes the specified logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -259,7 +259,7 @@ export class LoggerImpl implements Logger { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -370,7 +370,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -400,7 +400,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index affd2e1348cc..c15754457817 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { NamedValueContract, NamedValueListByServiceNextOptionalParams, @@ -53,7 +57,7 @@ export class NamedValueImpl implements NamedValue { /** * Lists a collection of named values defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -137,7 +141,7 @@ export class NamedValueImpl implements NamedValue { /** * Lists a collection of named values defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -154,7 +158,7 @@ export class NamedValueImpl implements NamedValue { /** * Gets the entity state (Etag) version of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -173,7 +177,7 @@ export class NamedValueImpl implements NamedValue { /** * Gets the details of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -192,7 +196,7 @@ export class NamedValueImpl implements NamedValue { /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -205,8 +209,8 @@ export class NamedValueImpl implements NamedValue { parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueCreateOrUpdateResponse > > { @@ -216,7 +220,7 @@ export class NamedValueImpl implements NamedValue { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -249,15 +253,24 @@ export class NamedValueImpl implements NamedValue { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, namedValueId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + namedValueId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + NamedValueCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -265,7 +278,7 @@ export class NamedValueImpl implements NamedValue { /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -290,7 +303,7 @@ export class NamedValueImpl implements NamedValue { /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -306,8 +319,8 @@ export class NamedValueImpl implements NamedValue { parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueUpdateResponse > > { @@ -317,7 +330,7 @@ export class NamedValueImpl implements NamedValue { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -350,9 +363,9 @@ export class NamedValueImpl implements NamedValue { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, namedValueId, @@ -360,12 +373,15 @@ export class NamedValueImpl implements NamedValue { parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + NamedValueUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -373,7 +389,7 @@ export class NamedValueImpl implements NamedValue { /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -402,7 +418,7 @@ export class NamedValueImpl implements NamedValue { /** * Deletes specific named value from the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -424,7 +440,7 @@ export class NamedValueImpl implements NamedValue { /** * Gets the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -443,7 +459,7 @@ export class NamedValueImpl implements NamedValue { /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -454,8 +470,8 @@ export class NamedValueImpl implements NamedValue { namedValueId: string, options?: NamedValueRefreshSecretOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueRefreshSecretResponse > > { @@ -465,7 +481,7 @@ export class NamedValueImpl implements NamedValue { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -498,15 +514,18 @@ export class NamedValueImpl implements NamedValue { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, namedValueId, options }, - refreshSecretOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, namedValueId, options }, + spec: refreshSecretOperationSpec + }); + const poller = await createHttpPoller< + NamedValueRefreshSecretResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -514,7 +533,7 @@ export class NamedValueImpl implements NamedValue { /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -536,7 +555,7 @@ export class NamedValueImpl implements NamedValue { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -656,7 +675,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -698,7 +717,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts index 87db0abd308a..8f9ab94e7fee 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts @@ -33,7 +33,7 @@ export class NetworkStatusImpl implements NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -51,7 +51,7 @@ export class NetworkStatusImpl implements NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param locationName Location in which the API Management service is deployed. This is one of the * Azure Regions like West US, East US, South Central US. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts index 63b6e13b9603..330f9607e8cb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts @@ -41,7 +41,7 @@ export class NotificationImpl implements Notification { /** * Lists a collection of properties defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -125,7 +125,7 @@ export class NotificationImpl implements Notification { /** * Lists a collection of properties defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -142,7 +142,7 @@ export class NotificationImpl implements Notification { /** * Gets the details of the Notification specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -161,7 +161,7 @@ export class NotificationImpl implements Notification { /** * Create or Update API Management publisher notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -180,7 +180,7 @@ export class NotificationImpl implements Notification { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts index 946af96ea810..5532326268f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts @@ -37,7 +37,7 @@ export class NotificationRecipientEmailImpl /** * Gets the list of the Notification Recipient Emails subscribed to a notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -56,7 +56,7 @@ export class NotificationRecipientEmailImpl /** * Determine if Notification Recipient Email subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -77,7 +77,7 @@ export class NotificationRecipientEmailImpl /** * Adds the Email address to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -98,7 +98,7 @@ export class NotificationRecipientEmailImpl /** * Removes the email from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts index b7e6e10f2013..ff459bec71fd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts @@ -37,7 +37,7 @@ export class NotificationRecipientUserImpl /** * Gets the list of the Notification Recipient User subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -56,7 +56,7 @@ export class NotificationRecipientUserImpl /** * Determine if the Notification Recipient User is subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -77,7 +77,7 @@ export class NotificationRecipientUserImpl /** * Adds the API Management User to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -98,7 +98,7 @@ export class NotificationRecipientUserImpl /** * Removes the API Management user from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts index 9c5bd14f970a..6f214aac252c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -48,7 +48,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Lists of all the OpenId Connect Providers. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -132,7 +132,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Lists of all the OpenId Connect Providers. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -149,7 +149,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -168,7 +168,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Gets specific OpenID Connect Provider without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -187,7 +187,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Creates or updates the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param parameters Create parameters. @@ -208,7 +208,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Updates the specific OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -232,7 +232,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Deletes specific OpenID Connect Provider of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -254,7 +254,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Gets the client secret details of the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -273,7 +273,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -384,7 +384,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -414,7 +414,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts index 77c764bfea46..91d1fdf3b4ec 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts @@ -36,7 +36,7 @@ export class OperationOperationsImpl implements OperationOperations { /** * Lists a collection of operations associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -130,7 +130,7 @@ export class OperationOperationsImpl implements OperationOperations { /** * Lists a collection of operations associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -150,7 +150,7 @@ export class OperationOperationsImpl implements OperationOperations { /** * ListByTagsNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts index aa4b77527265..5ac8f335aa65 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts @@ -31,7 +31,7 @@ export class OutboundNetworkDependenciesEndpointsImpl /** * Gets the network endpoints of all outbound dependencies of a ApiManagement service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts index 80875f42f6d8..d278cdfc55fc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts @@ -39,7 +39,7 @@ export class PolicyImpl implements Policy { /** * Lists all the Global Policy definitions of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -56,7 +56,7 @@ export class PolicyImpl implements Policy { /** * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -75,7 +75,7 @@ export class PolicyImpl implements Policy { /** * Get the Global policy definition of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -94,7 +94,7 @@ export class PolicyImpl implements Policy { /** * Creates or updates the global policy configuration of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param parameters The policy contents to apply. @@ -115,7 +115,7 @@ export class PolicyImpl implements Policy { /** * Deletes the global policy configuration of the Api Management Service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts index 1becb987491d..2f563e88f50e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts @@ -30,7 +30,7 @@ export class PolicyDescriptionImpl implements PolicyDescription { /** * Lists all policy descriptions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts new file mode 100644 index 000000000000..b6d25f5fb6b7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts @@ -0,0 +1,408 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PolicyFragment } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PolicyFragmentListByServiceOptionalParams, + PolicyFragmentListByServiceResponse, + PolicyFragmentGetEntityTagOptionalParams, + PolicyFragmentGetEntityTagResponse, + PolicyFragmentGetOptionalParams, + PolicyFragmentGetResponse, + PolicyFragmentContract, + PolicyFragmentCreateOrUpdateOptionalParams, + PolicyFragmentCreateOrUpdateResponse, + PolicyFragmentDeleteOptionalParams, + PolicyFragmentListReferencesOptionalParams, + PolicyFragmentListReferencesResponse +} from "../models"; + +/** Class containing PolicyFragment operations. */ +export class PolicyFragmentImpl implements PolicyFragment { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PolicyFragment class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all policy fragments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, id, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, id, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + PolicyFragmentCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, id, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PolicyFragmentCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + id, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + id: string, + ifMatch: string, + options?: PolicyFragmentDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, id, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentListReferencesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, id, options }, + listReferencesOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion, + Parameters.orderby + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.PolicyFragmentGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format2], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listReferencesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}/listReferences", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts new file mode 100644 index 000000000000..4c13b4be9ea9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts @@ -0,0 +1,286 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PortalConfig } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PortalConfigListByServiceOptionalParams, + PortalConfigListByServiceResponse, + PortalConfigGetEntityTagOptionalParams, + PortalConfigGetEntityTagResponse, + PortalConfigGetOptionalParams, + PortalConfigGetResponse, + PortalConfigContract, + PortalConfigUpdateOptionalParams, + PortalConfigUpdateResponse, + PortalConfigCreateOrUpdateOptionalParams, + PortalConfigCreateOrUpdateResponse +} from "../models"; + +/** Class containing PortalConfig operations. */ +export class PortalConfigImpl implements PortalConfig { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PortalConfig class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists the developer portal configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, portalConfigId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Get the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, portalConfigId, options }, + getOperationSpec + ); + } + + /** + * Update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update the developer portal configuration. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Create or update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update the developer portal configuration. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.PortalConfigGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigContract, + headersMapper: Mappers.PortalConfigGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts index 2de464de5b18..06c82783efdc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PortalRevisionContract, PortalRevisionListByServiceNextOptionalParams, @@ -46,7 +50,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Lists developer portal's revisions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +134,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Lists developer portal's revisions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +151,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Gets the developer portal revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -167,7 +171,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Gets the developer portal's revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -188,7 +192,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -202,8 +206,8 @@ export class PortalRevisionImpl implements PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionCreateOrUpdateResponse > > { @@ -213,7 +217,7 @@ export class PortalRevisionImpl implements PortalRevision { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -246,15 +250,24 @@ export class PortalRevisionImpl implements PortalRevision { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, portalRevisionId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + portalRevisionId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PortalRevisionCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -263,7 +276,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -289,7 +302,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -306,8 +319,8 @@ export class PortalRevisionImpl implements PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionUpdateResponse > > { @@ -317,7 +330,7 @@ export class PortalRevisionImpl implements PortalRevision { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -350,9 +363,9 @@ export class PortalRevisionImpl implements PortalRevision { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, portalRevisionId, @@ -360,12 +373,15 @@ export class PortalRevisionImpl implements PortalRevision { parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + PortalRevisionUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -373,7 +389,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -403,7 +419,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -522,7 +538,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -560,7 +576,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts index 1024bf6cc0d9..da437e49d95b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts @@ -30,7 +30,7 @@ export class PortalSettingsImpl implements PortalSettings { /** * Lists a collection of portalsettings defined within a service instance.. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts index 3be4ff820dab..e8e90e2250a0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PrivateEndpointConnection, PrivateEndpointConnectionListByServiceOptionalParams, @@ -46,7 +50,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Lists all private endpoint connections of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -108,7 +112,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Lists all private endpoint connections of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -125,7 +129,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Gets the details of the Private Endpoint Connection specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -149,7 +153,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -162,8 +166,8 @@ export class PrivateEndpointConnectionOperationsImpl privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionCreateOrUpdateResponse > > { @@ -173,7 +177,7 @@ export class PrivateEndpointConnectionOperationsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -206,19 +210,22 @@ export class PrivateEndpointConnectionOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -227,7 +234,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -252,7 +259,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -262,14 +269,14 @@ export class PrivateEndpointConnectionOperationsImpl serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -302,18 +309,18 @@ export class PrivateEndpointConnectionOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, privateEndpointConnectionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -322,7 +329,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -344,7 +351,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -361,7 +368,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateLinkSubResourceName Name of the private link resource. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts index dc5997d9491f..cd7bdd87c103 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts @@ -51,7 +51,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -135,7 +135,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -215,7 +215,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -232,7 +232,7 @@ export class ProductImpl implements Product { /** * Gets the entity state (Etag) version of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -251,7 +251,7 @@ export class ProductImpl implements Product { /** * Gets the details of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -270,7 +270,7 @@ export class ProductImpl implements Product { /** * Creates or Updates a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -291,7 +291,7 @@ export class ProductImpl implements Product { /** * Update existing product details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -322,7 +322,7 @@ export class ProductImpl implements Product { /** * Delete product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -344,7 +344,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -361,7 +361,7 @@ export class ProductImpl implements Product { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -380,7 +380,7 @@ export class ProductImpl implements Product { /** * ListByTagsNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByTags method. * @param options The options parameters. @@ -493,7 +493,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -523,7 +523,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts index c10b5127698d..46a14b1d5042 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts @@ -41,7 +41,7 @@ export class ProductApiImpl implements ProductApi { /** * Lists a collection of the APIs associated with a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -134,7 +134,7 @@ export class ProductApiImpl implements ProductApi { /** * Lists a collection of the APIs associated with a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -153,7 +153,7 @@ export class ProductApiImpl implements ProductApi { /** * Checks that API entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -175,7 +175,7 @@ export class ProductApiImpl implements ProductApi { /** * Adds an API to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -197,7 +197,7 @@ export class ProductApiImpl implements ProductApi { /** * Deletes the specified API from the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -219,7 +219,7 @@ export class ProductApiImpl implements ProductApi { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByProduct method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts index 0d28c8eb3f47..5425cb6d2633 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts @@ -41,7 +41,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Lists the collection of developer groups associated with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -134,7 +134,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Lists the collection of developer groups associated with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -153,7 +153,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Checks that Group entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -174,7 +174,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Adds the association between the specified developer group with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -195,7 +195,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Deletes the association between the specified group and product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -216,7 +216,7 @@ export class ProductGroupImpl implements ProductGroup { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByProduct method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts index 021da2209b9d..265d5f5708b5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts @@ -39,7 +39,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -58,7 +58,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Get the ETag of the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -79,7 +79,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -100,7 +100,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Creates or updates policy configuration for the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -130,7 +130,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Deletes the policy configuration at the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts index c060e035234e..b602e9ea6996 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts @@ -36,7 +36,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { /** * Lists the collection of subscriptions to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { /** * Lists the collection of subscriptions to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts new file mode 100644 index 000000000000..48c1fc393861 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts @@ -0,0 +1,287 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { ProductWiki } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductWikiGetEntityTagOptionalParams, + ProductWikiGetEntityTagResponse, + ProductWikiGetOptionalParams, + ProductWikiGetResponse, + WikiContract, + ProductWikiCreateOrUpdateOptionalParams, + ProductWikiCreateOrUpdateResponse, + WikiUpdateContract, + ProductWikiUpdateOptionalParams, + ProductWikiUpdateResponse, + ProductWikiDeleteOptionalParams +} from "../models"; + +/** Class containing ProductWiki operations. */ +export class ProductWikiImpl implements ProductWiki { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductWiki class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + getOperationSpec + ); + } + + /** + * Creates a new Wiki for a Product or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + parameters: WikiContract, + options?: ProductWikiCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ProductWikiUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified Wiki from a Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + options?: ProductWikiDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, ifMatch, options }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.ProductWikiGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts new file mode 100644 index 000000000000..eb425ad22260 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts @@ -0,0 +1,224 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ProductWikis } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WikiContract, + ProductWikisListNextOptionalParams, + ProductWikisListOptionalParams, + ProductWikisListResponse, + ProductWikisListNextResponse +} from "../models"; + +/// +/** Class containing ProductWikis operations. */ +export class ProductWikisImpl implements ProductWikis { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductWikis class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + productId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ProductWikisListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + productId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + productId, + options + )) { + yield* page; + } + } + + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductWikisListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection, + headersMapper: Mappers.ProductWikisListHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection, + headersMapper: Mappers.ProductWikisListNextHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts index e5a890c5fb3c..136caaa802f2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts @@ -34,7 +34,7 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { /** * Lists a collection of current quota counter periods associated with the counter-key configured in * the policy on the specified service instance. The api does not support paging yet. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -57,7 +57,7 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { /** * Updates all the quota counter values specified with the existing quota counter key to a value in the * specified service instance. This should be used for reset of the quota counter values. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -117,7 +117,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts index ac89b9e1efc7..bd18bc65745b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts @@ -34,7 +34,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { /** * Gets the value of the quota counter associated with the counter-key in the policy for the specific * period in service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -64,7 +64,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { /** * Updates an existing quota counter value in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -134,7 +134,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts index c21e9d6a2cfd..b0ccf6b4bde2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts @@ -36,7 +36,7 @@ export class RegionImpl implements Region { /** * Lists all azure regions in which the service exists. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -120,7 +120,7 @@ export class RegionImpl implements Region { /** * Lists all azure regions in which the service exists. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -137,7 +137,7 @@ export class RegionImpl implements Region { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts index 157ba4ac13ff..34ec22b941f4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts @@ -63,7 +63,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter The filter to apply on the operation. * @param options The options parameters. @@ -155,7 +155,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -259,7 +259,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API Operations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -362,7 +362,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -465,7 +465,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by geography. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -568,7 +568,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -671,7 +671,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Time. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select @@ -784,7 +784,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Request. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -862,7 +862,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter The filter to apply on the operation. * @param options The options parameters. @@ -881,7 +881,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -912,7 +912,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API Operations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -942,7 +942,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -972,7 +972,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by geography. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -1002,7 +1002,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -1032,7 +1032,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Time. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select @@ -1066,7 +1066,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Request. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -1089,7 +1089,7 @@ export class ReportsImpl implements Reports { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByApi method. * @param options The options parameters. @@ -1108,7 +1108,7 @@ export class ReportsImpl implements Reports { /** * ListByUserNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByUser method. * @param options The options parameters. @@ -1127,7 +1127,7 @@ export class ReportsImpl implements Reports { /** * ListByOperationNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByOperation method. * @param options The options parameters. @@ -1146,7 +1146,7 @@ export class ReportsImpl implements Reports { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByProduct method. * @param options The options parameters. @@ -1165,7 +1165,7 @@ export class ReportsImpl implements Reports { /** * ListByGeoNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByGeo method. * @param options The options parameters. @@ -1184,7 +1184,7 @@ export class ReportsImpl implements Reports { /** * ListBySubscriptionNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. * @param options The options parameters. @@ -1203,7 +1203,7 @@ export class ReportsImpl implements Reports { /** * ListByTimeNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByTime method. * @param options The options parameters. @@ -1239,8 +1239,8 @@ const listByApiOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1267,8 +1267,8 @@ const listByUserOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1295,8 +1295,8 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1323,8 +1323,8 @@ const listByProductOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1378,8 +1378,8 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1406,8 +1406,8 @@ const listByTimeOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, Parameters.orderby, + Parameters.filter1, Parameters.interval ], urlParameters: [ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts index 2967027b2087..81c16f759dd7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts @@ -36,7 +36,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Gets the entity state (Etag) version of the SignInSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -53,7 +53,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Get Sign In Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -70,7 +70,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -92,7 +92,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Create or Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -167,7 +167,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts index e7e78a3a9cd3..fa8160735c81 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts @@ -36,7 +36,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Gets the entity state (Etag) version of the SignUpSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -53,7 +53,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Get Sign Up Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -70,7 +70,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -92,7 +92,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Create or Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -167,7 +167,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index 35671d914bac..040781d07df3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts @@ -51,7 +51,7 @@ export class SubscriptionImpl implements Subscription { /** * Lists all subscriptions of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -127,7 +127,7 @@ export class SubscriptionImpl implements Subscription { /** * Lists all subscriptions of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -144,7 +144,7 @@ export class SubscriptionImpl implements Subscription { /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -164,7 +164,7 @@ export class SubscriptionImpl implements Subscription { /** * Gets the specified Subscription entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -184,7 +184,7 @@ export class SubscriptionImpl implements Subscription { /** * Creates or updates the subscription of specified user to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -206,7 +206,7 @@ export class SubscriptionImpl implements Subscription { /** * Updates the details of a subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -231,7 +231,7 @@ export class SubscriptionImpl implements Subscription { /** * Deletes the specified subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -254,7 +254,7 @@ export class SubscriptionImpl implements Subscription { /** * Regenerates primary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -274,7 +274,7 @@ export class SubscriptionImpl implements Subscription { /** * Regenerates secondary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -294,7 +294,7 @@ export class SubscriptionImpl implements Subscription { /** * Gets the specified Subscription keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -314,7 +314,7 @@ export class SubscriptionImpl implements Subscription { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. @@ -425,7 +425,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters67, queryParameters: [ Parameters.apiVersion, Parameters.notify, @@ -459,7 +459,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters68, queryParameters: [ Parameters.apiVersion, Parameters.notify, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts index 074c6a371855..1cd000ec1f2f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts @@ -79,7 +79,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -183,7 +183,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -277,7 +277,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -370,7 +370,7 @@ export class TagImpl implements Tag { /** * Lists a collection of tags defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -454,7 +454,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -477,7 +477,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -502,7 +502,7 @@ export class TagImpl implements Tag { /** * Get tag associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -527,7 +527,7 @@ export class TagImpl implements Tag { /** * Assign tag to the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -552,7 +552,7 @@ export class TagImpl implements Tag { /** * Detach the tag from the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -577,7 +577,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -597,7 +597,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -619,7 +619,7 @@ export class TagImpl implements Tag { /** * Get tag associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -641,7 +641,7 @@ export class TagImpl implements Tag { /** * Assign tag to the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -663,7 +663,7 @@ export class TagImpl implements Tag { /** * Detach the tag from the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -685,7 +685,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -704,7 +704,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -725,7 +725,7 @@ export class TagImpl implements Tag { /** * Get tag associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -746,7 +746,7 @@ export class TagImpl implements Tag { /** * Assign tag to the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -767,7 +767,7 @@ export class TagImpl implements Tag { /** * Detach the tag from the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -788,7 +788,7 @@ export class TagImpl implements Tag { /** * Lists a collection of tags defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -805,7 +805,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -824,7 +824,7 @@ export class TagImpl implements Tag { /** * Gets the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -843,7 +843,7 @@ export class TagImpl implements Tag { /** * Creates a tag. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -864,7 +864,7 @@ export class TagImpl implements Tag { /** * Updates the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -888,7 +888,7 @@ export class TagImpl implements Tag { /** * Deletes specific tag of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -910,7 +910,7 @@ export class TagImpl implements Tag { /** * ListByOperationNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -935,7 +935,7 @@ export class TagImpl implements Tag { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -957,7 +957,7 @@ export class TagImpl implements Tag { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByProduct method. @@ -978,7 +978,7 @@ export class TagImpl implements Tag { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts index df4cf7d591aa..1a0a0f0a8cb1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts @@ -36,7 +36,7 @@ export class TagResourceImpl implements TagResource { /** * Lists a collection of resources associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -120,7 +120,7 @@ export class TagResourceImpl implements TagResource { /** * Lists a collection of resources associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -137,7 +137,7 @@ export class TagResourceImpl implements TagResource { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index 3ba9f54c8dfc..ab0c13bb24d9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts @@ -51,7 +51,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Returns list of access infos - for Git and Management endpoints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -135,7 +135,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Returns list of access infos - for Git and Management endpoints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -152,7 +152,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Tenant access metadata - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -171,7 +171,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Get tenant access information details without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -190,7 +190,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -221,7 +221,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -252,7 +252,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Regenerate primary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -271,7 +271,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Regenerate secondary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -290,7 +290,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Get tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -309,7 +309,7 @@ export class TenantAccessImpl implements TenantAccess { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -411,7 +411,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts index 9192c5d4ab14..9d7f1db29713 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts @@ -31,7 +31,7 @@ export class TenantAccessGitImpl implements TenantAccessGit { /** * Regenerate primary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -50,7 +50,7 @@ export class TenantAccessGitImpl implements TenantAccessGit { /** * Regenerate secondary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts index 83a9667cb1be..15867ab82145 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DeployConfigurationParameters, ConfigurationIdName, @@ -42,7 +46,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -55,8 +59,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationDeployResponse > > { @@ -66,7 +70,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -99,21 +103,24 @@ export class TenantConfigurationImpl implements TenantConfiguration { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, configurationName, parameters, options }, - deployOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deployOperationSpec + }); + const poller = await createHttpPoller< + TenantConfigurationDeployResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -122,7 +129,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -148,7 +155,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -161,8 +168,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationSaveResponse > > { @@ -172,7 +179,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -205,21 +212,24 @@ export class TenantConfigurationImpl implements TenantConfiguration { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, configurationName, parameters, options }, - saveOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: saveOperationSpec + }); + const poller = await createHttpPoller< + TenantConfigurationSaveResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -228,7 +238,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -254,7 +264,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -267,8 +277,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationValidateResponse > > { @@ -278,7 +288,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -311,21 +321,24 @@ export class TenantConfigurationImpl implements TenantConfiguration { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, configurationName, parameters, options }, - validateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: validateOperationSpec + }); + const poller = await createHttpPoller< + TenantConfigurationValidateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -334,7 +347,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -360,7 +373,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * Gets the status of the most recent synchronization between the configuration database and the Git * repository. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param options The options parameters. @@ -401,7 +414,7 @@ const deployOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -435,7 +448,7 @@ const saveOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -469,7 +482,7 @@ const validateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts index 95ffbb632fc5..b46350a3c9ab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts @@ -39,7 +39,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -123,7 +123,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -140,7 +140,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * Get tenant settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param settingsType The identifier of the settings. * @param options The options parameters. @@ -159,7 +159,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts index 1b49230eb16c..8aa6945fedab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts @@ -52,7 +52,7 @@ export class UserImpl implements User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -136,7 +136,7 @@ export class UserImpl implements User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -153,7 +153,7 @@ export class UserImpl implements User { /** * Gets the entity state (Etag) version of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -172,7 +172,7 @@ export class UserImpl implements User { /** * Gets the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -191,7 +191,7 @@ export class UserImpl implements User { /** * Creates or Updates a user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -212,7 +212,7 @@ export class UserImpl implements User { /** * Updates the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -236,7 +236,7 @@ export class UserImpl implements User { /** * Deletes specific user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -259,7 +259,7 @@ export class UserImpl implements User { /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -278,7 +278,7 @@ export class UserImpl implements User { /** * Gets the Shared Access Authorization Token for the User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create Authorization Token parameters. @@ -299,7 +299,7 @@ export class UserImpl implements User { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -411,7 +411,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion, Parameters.notify], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -520,7 +520,7 @@ const getSharedAccessTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts index 779715551c3a..0a9175427c03 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts @@ -27,7 +27,7 @@ export class UserConfirmationPasswordImpl implements UserConfirmationPassword { /** * Sends confirmation - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts index 9dc853240af8..1627954cbe7a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts @@ -36,7 +36,7 @@ export class UserGroupImpl implements UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class UserGroupImpl implements UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class UserGroupImpl implements UserGroup { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts index da05413071ae..4ff92b553f94 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts @@ -36,7 +36,7 @@ export class UserIdentitiesImpl implements UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class UserIdentitiesImpl implements UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class UserIdentitiesImpl implements UserIdentities { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts index 7e4945d84920..8e4838abc76a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts @@ -38,7 +38,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -131,7 +131,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -150,7 +150,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * Gets the specified Subscription entity associated with a particular user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param sid Subscription entity Identifier. The entity represents the association between a user and @@ -172,7 +172,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts index ce5051c792be..0ff932cdd76b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ApiContract, ApiListByServiceOptionalParams, @@ -31,7 +31,7 @@ import { export interface Api { /** * Lists all APIs of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -42,7 +42,7 @@ export interface Api { ): PagedAsyncIterableIterator; /** * Lists a collection of apis associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -53,7 +53,7 @@ export interface Api { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -67,7 +67,7 @@ export interface Api { ): Promise; /** * Gets the details of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -81,7 +81,7 @@ export interface Api { ): Promise; /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -95,14 +95,14 @@ export interface Api { parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiCreateOrUpdateResponse > >; /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -118,7 +118,7 @@ export interface Api { ): Promise; /** * Updates the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -137,7 +137,7 @@ export interface Api { ): Promise; /** * Deletes the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts index 7b3ccbde09c6..d369a59d6f66 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts @@ -26,7 +26,7 @@ import { export interface ApiDiagnostic { /** * Lists all diagnostics of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -39,7 +39,7 @@ export interface ApiDiagnostic { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -55,7 +55,7 @@ export interface ApiDiagnostic { ): Promise; /** * Gets the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -71,7 +71,7 @@ export interface ApiDiagnostic { ): Promise; /** * Creates a new Diagnostic for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -89,7 +89,7 @@ export interface ApiDiagnostic { ): Promise; /** * Updates the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -110,7 +110,7 @@ export interface ApiDiagnostic { ): Promise; /** * Deletes the specified Diagnostic from an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts index d78896d9eee2..1efcf25c77c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts @@ -18,7 +18,7 @@ export interface ApiExport { /** * Gets the details of the API specified by its identifier in the format specified to the Storage Blob * with SAS Key valid for 5 minutes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts index 8df799f7dcdf..ca2f0189336a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts @@ -27,7 +27,7 @@ import { export interface ApiIssue { /** * Lists all issues associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -40,7 +40,7 @@ export interface ApiIssue { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -55,7 +55,7 @@ export interface ApiIssue { ): Promise; /** * Gets the details of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -70,7 +70,7 @@ export interface ApiIssue { ): Promise; /** * Creates a new Issue for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -87,7 +87,7 @@ export interface ApiIssue { ): Promise; /** * Updates an existing issue for an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -107,7 +107,7 @@ export interface ApiIssue { ): Promise; /** * Deletes the specified Issue from an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts index 1624786031ef..b6e147b842e3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts @@ -24,7 +24,7 @@ import { export interface ApiIssueAttachment { /** * Lists all attachments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -39,7 +39,7 @@ export interface ApiIssueAttachment { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -56,7 +56,7 @@ export interface ApiIssueAttachment { ): Promise; /** * Gets the details of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -73,7 +73,7 @@ export interface ApiIssueAttachment { ): Promise; /** * Creates a new Attachment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -92,7 +92,7 @@ export interface ApiIssueAttachment { ): Promise; /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts index 91385b09dc5e..4d86b68407ce 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts @@ -24,7 +24,7 @@ import { export interface ApiIssueComment { /** * Lists all comments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -39,7 +39,7 @@ export interface ApiIssueComment { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -56,7 +56,7 @@ export interface ApiIssueComment { ): Promise; /** * Gets the details of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -73,7 +73,7 @@ export interface ApiIssueComment { ): Promise; /** * Creates a new Comment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -92,7 +92,7 @@ export interface ApiIssueComment { ): Promise; /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts index d33e3983eb75..947d8acdd1d3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ApiManagementServiceResource, ApiManagementServiceListByResourceGroupOptionalParams, @@ -25,6 +25,8 @@ import { ApiManagementServiceGetOptionalParams, ApiManagementServiceGetResponse, ApiManagementServiceDeleteOptionalParams, + ApiManagementServiceMigrateToStv2OptionalParams, + ApiManagementServiceMigrateToStv2Response, ApiManagementServiceGetSsoTokenOptionalParams, ApiManagementServiceGetSsoTokenResponse, ApiManagementServiceCheckNameAvailabilityParameters, @@ -41,7 +43,7 @@ import { export interface ApiManagementService { /** * List all API Management services within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( @@ -59,7 +61,7 @@ export interface ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -70,8 +72,8 @@ export interface ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceRestoreResponse > >; @@ -79,7 +81,7 @@ export interface ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -93,7 +95,7 @@ export interface ApiManagementService { /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -104,15 +106,15 @@ export interface ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceBackupResponse > >; /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -126,7 +128,7 @@ export interface ApiManagementService { /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -137,15 +139,15 @@ export interface ApiManagementService { parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceCreateOrUpdateResponse > >; /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -158,7 +160,7 @@ export interface ApiManagementService { ): Promise; /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -169,14 +171,14 @@ export interface ApiManagementService { parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceUpdateResponse > >; /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -189,7 +191,7 @@ export interface ApiManagementService { ): Promise; /** * Gets an API Management service resource description. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -200,7 +202,7 @@ export interface ApiManagementService { ): Promise; /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -208,10 +210,10 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -220,9 +222,40 @@ export interface ApiManagementService { serviceName: string, options?: ApiManagementServiceDeleteOptionalParams ): Promise; + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginMigrateToStv2( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementServiceMigrateToStv2Response + > + >; + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginMigrateToStv2AndWait( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise; /** * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -250,7 +283,7 @@ export interface ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -259,8 +292,8 @@ export interface ApiManagementService { serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams ): Promise< - PollerLike< - PollOperationState< + SimplePollerLike< + OperationState< ApiManagementServiceApplyNetworkConfigurationUpdatesResponse >, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse @@ -269,7 +302,7 @@ export interface ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts index 5fbc73b80d88..49efcda76ba3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts @@ -17,7 +17,7 @@ import { export interface ApiManagementServiceSkus { /** * Gets all available SKU for a given API Management service - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts index 9e971caef8f5..bfe69dd00983 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts @@ -27,7 +27,7 @@ import { export interface ApiOperation { /** * Lists a collection of the operations for the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -41,7 +41,7 @@ export interface ApiOperation { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -58,7 +58,7 @@ export interface ApiOperation { ): Promise; /** * Gets the details of the API Operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -75,7 +75,7 @@ export interface ApiOperation { ): Promise; /** * Creates a new operation in the API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -94,7 +94,7 @@ export interface ApiOperation { ): Promise; /** * Updates the details of the operation in the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -116,7 +116,7 @@ export interface ApiOperation { ): Promise; /** * Deletes the specified operation in the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts index 9660beb53789..224a85a7e194 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts @@ -24,7 +24,7 @@ import { export interface ApiOperationPolicy { /** * Get the list of policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -41,7 +41,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Gets the entity state (Etag) version of the API operation policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -60,7 +60,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Get the policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -79,7 +79,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Creates or updates policy configuration for the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -100,7 +100,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Deletes the policy configuration at the Api Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts index 62f7d6f45aa4..3d54b954c30e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts @@ -24,7 +24,7 @@ import { export interface ApiPolicy { /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -38,7 +38,7 @@ export interface ApiPolicy { ): Promise; /** * Gets the entity state (Etag) version of the API policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -54,7 +54,7 @@ export interface ApiPolicy { ): Promise; /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -70,7 +70,7 @@ export interface ApiPolicy { ): Promise; /** * Creates or updates policy configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -88,7 +88,7 @@ export interface ApiPolicy { ): Promise; /** * Deletes the policy configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts index 9ad6a6398327..d83bdb058e0a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts @@ -14,7 +14,7 @@ import { ProductContract, ApiProductListByApisOptionalParams } from "../models"; export interface ApiProduct { /** * Lists all Products, which the API is part of. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts index 878ee1e01a43..15d74409908a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts @@ -28,7 +28,7 @@ export interface ApiRelease { * Lists all releases of an API. An API release is created when making an API Revision current. * Releases are also used to rollback to previous revisions. Results will be paged and can be * constrained by the $top and $skip parameters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -41,7 +41,7 @@ export interface ApiRelease { ): PagedAsyncIterableIterator; /** * Returns the etag of an API release. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -57,7 +57,7 @@ export interface ApiRelease { ): Promise; /** * Returns the details of an API release. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -73,7 +73,7 @@ export interface ApiRelease { ): Promise; /** * Creates a new Release for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -91,7 +91,7 @@ export interface ApiRelease { ): Promise; /** * Updates the details of the release of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -112,7 +112,7 @@ export interface ApiRelease { ): Promise; /** * Deletes the specified release in the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts index 61d8d76687c4..8264f54d3f06 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts @@ -17,7 +17,7 @@ import { export interface ApiRevision { /** * Lists all revisions of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts index 35d79f66a387..2a2b5c2c807c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SchemaContract, ApiSchemaListByApiOptionalParams, @@ -25,7 +25,7 @@ import { export interface ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -39,7 +39,7 @@ export interface ApiSchema { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -55,7 +55,7 @@ export interface ApiSchema { ): Promise; /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -71,7 +71,7 @@ export interface ApiSchema { ): Promise; /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -87,14 +87,14 @@ export interface ApiSchema { parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiSchemaCreateOrUpdateResponse > >; /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -112,7 +112,7 @@ export interface ApiSchema { ): Promise; /** * Deletes the schema configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts index 9d1f7b47f63e..cd4303cd42c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts @@ -26,7 +26,7 @@ export interface ApiTagDescription { /** * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on * API level but tag may be assigned to the Operations - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -40,7 +40,7 @@ export interface ApiTagDescription { ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -57,7 +57,7 @@ export interface ApiTagDescription { ): Promise; /** * Get Tag description in scope of API - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -74,7 +74,7 @@ export interface ApiTagDescription { ): Promise; /** * Create/Update tag description in scope of the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -93,7 +93,7 @@ export interface ApiTagDescription { ): Promise; /** * Delete tag description for the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts index 552cec808f4e..4a5912de1735 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts @@ -27,7 +27,7 @@ import { export interface ApiVersionSet { /** * Lists a collection of API Version Sets in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -38,7 +38,7 @@ export interface ApiVersionSet { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -52,7 +52,7 @@ export interface ApiVersionSet { ): Promise; /** * Gets the details of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -66,7 +66,7 @@ export interface ApiVersionSet { ): Promise; /** * Creates or Updates a Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -82,7 +82,7 @@ export interface ApiVersionSet { ): Promise; /** * Updates the details of the Api VersionSet specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -101,7 +101,7 @@ export interface ApiVersionSet { ): Promise; /** * Deletes specific Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts new file mode 100644 index 000000000000..5d6bcdf9565c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ApiWikiGetEntityTagOptionalParams, + ApiWikiGetEntityTagResponse, + ApiWikiGetOptionalParams, + ApiWikiGetResponse, + WikiContract, + ApiWikiCreateOrUpdateOptionalParams, + ApiWikiCreateOrUpdateResponse, + WikiUpdateContract, + ApiWikiUpdateOptionalParams, + ApiWikiUpdateResponse, + ApiWikiDeleteOptionalParams +} from "../models"; + +/** Interface representing a ApiWiki. */ +export interface ApiWiki { + /** + * Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetOptionalParams + ): Promise; + /** + * Creates a new Wiki for an API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + parameters: WikiContract, + options?: ApiWikiCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ApiWikiUpdateOptionalParams + ): Promise; + /** + * Deletes the specified Wiki from an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiWikiDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts new file mode 100644 index 000000000000..b86f924bee02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WikiContract, ApiWikisListOptionalParams } from "../models"; + +/// +/** Interface representing a ApiWikis. */ +export interface ApiWikis { + /** + * Gets the wikis for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts new file mode 100644 index 000000000000..015f10f04d61 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AuthorizationContract, + AuthorizationListByAuthorizationProviderOptionalParams, + AuthorizationGetOptionalParams, + AuthorizationGetResponse, + AuthorizationCreateOrUpdateOptionalParams, + AuthorizationCreateOrUpdateResponse, + AuthorizationDeleteOptionalParams, + AuthorizationConfirmConsentCodeRequestContract, + AuthorizationConfirmConsentCodeOptionalParams, + AuthorizationConfirmConsentCodeResponse +} from "../models"; + +/// +/** Interface representing a Authorization. */ +export interface Authorization { + /** + * Lists a collection of authorization providers defined within a authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + listByAuthorizationProvider( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the authorization specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationGetOptionalParams + ): Promise; + /** + * Creates or updates authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationContract, + options?: AuthorizationCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific Authorization from the Authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + ifMatch: string, + options?: AuthorizationDeleteOptionalParams + ): Promise; + /** + * Confirm valid consent code to suppress Authorizations anti-phishing page. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + confirmConsentCode( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationConfirmConsentCodeRequestContract, + options?: AuthorizationConfirmConsentCodeOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts new file mode 100644 index 000000000000..9bbf78ae39d7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AuthorizationAccessPolicyContract, + AuthorizationAccessPolicyListByAuthorizationOptionalParams, + AuthorizationAccessPolicyGetOptionalParams, + AuthorizationAccessPolicyGetResponse, + AuthorizationAccessPolicyCreateOrUpdateOptionalParams, + AuthorizationAccessPolicyCreateOrUpdateResponse, + AuthorizationAccessPolicyDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a AuthorizationAccessPolicy. */ +export interface AuthorizationAccessPolicy { + /** + * Lists a collection of authorization access policy defined within a authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + listByAuthorization( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the authorization access policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + options?: AuthorizationAccessPolicyGetOptionalParams + ): Promise; + /** + * Creates or updates Authorization Access Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + parameters: AuthorizationAccessPolicyContract, + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific access policy from the Authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + ifMatch: string, + options?: AuthorizationAccessPolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts new file mode 100644 index 000000000000..bcfc0be03fe5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + AuthorizationLoginRequestContract, + AuthorizationLoginLinksPostOptionalParams, + AuthorizationLoginLinksPostResponse +} from "../models"; + +/** Interface representing a AuthorizationLoginLinks. */ +export interface AuthorizationLoginLinks { + /** + * Gets authorization login links. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + post( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationLoginRequestContract, + options?: AuthorizationLoginLinksPostOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts new file mode 100644 index 000000000000..1b2c64bf2296 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AuthorizationProviderContract, + AuthorizationProviderListByServiceOptionalParams, + AuthorizationProviderGetOptionalParams, + AuthorizationProviderGetResponse, + AuthorizationProviderCreateOrUpdateOptionalParams, + AuthorizationProviderCreateOrUpdateResponse, + AuthorizationProviderDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a AuthorizationProvider. */ +export interface AuthorizationProvider { + /** + * Lists a collection of authorization providers defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the authorization provider specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationProviderGetOptionalParams + ): Promise; + /** + * Creates or updates authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + parameters: AuthorizationProviderContract, + options?: AuthorizationProviderCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific authorization provider from the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + ifMatch: string, + options?: AuthorizationProviderDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts index b80767b9e50b..d70ac4bcaccc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts @@ -29,7 +29,7 @@ import { export interface AuthorizationServer { /** * Lists a collection of authorization servers defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -40,7 +40,7 @@ export interface AuthorizationServer { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -53,7 +53,7 @@ export interface AuthorizationServer { ): Promise; /** * Gets the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -66,7 +66,7 @@ export interface AuthorizationServer { ): Promise; /** * Creates new authorization server or updates an existing authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param parameters Create or update parameters. @@ -81,7 +81,7 @@ export interface AuthorizationServer { ): Promise; /** * Updates the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -99,7 +99,7 @@ export interface AuthorizationServer { ): Promise; /** * Deletes specific authorization server instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -115,7 +115,7 @@ export interface AuthorizationServer { ): Promise; /** * Gets the client secret details of the authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts index a4ba6c8f742f..40e8e927c666 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts @@ -28,7 +28,7 @@ import { export interface Backend { /** * Lists a collection of backends in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -39,7 +39,7 @@ export interface Backend { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -53,7 +53,7 @@ export interface Backend { ): Promise; /** * Gets the details of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -67,7 +67,7 @@ export interface Backend { ): Promise; /** * Creates or Updates a backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -83,7 +83,7 @@ export interface Backend { ): Promise; /** * Updates an existing backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -102,7 +102,7 @@ export interface Backend { ): Promise; /** * Deletes the specified backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -118,9 +118,9 @@ export interface Backend { options?: BackendDeleteOptionalParams ): Promise; /** - * Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no - * timeout was specified, timeout of 2 minutes is used. - * @param resourceGroupName The name of the resource group. + * Notifies the API Management gateway to create a new connection to the backend after the specified + * timeout. If no timeout was specified, timeout of 2 minutes is used. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts index 4c50346e693c..8572de9ad24a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts @@ -27,7 +27,7 @@ import { export interface Cache { /** * Lists a collection of all external Caches in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -38,7 +38,7 @@ export interface Cache { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -52,7 +52,7 @@ export interface Cache { ): Promise; /** * Gets the details of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -66,7 +66,7 @@ export interface Cache { ): Promise; /** * Creates or updates an External Cache to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -82,7 +82,7 @@ export interface Cache { ): Promise; /** * Updates the details of the cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -101,7 +101,7 @@ export interface Cache { ): Promise; /** * Deletes specific Cache. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts index 5ee50eb816d1..1cf2f8298d79 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts @@ -27,7 +27,7 @@ import { export interface Certificate { /** * Lists a collection of all certificates in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -38,7 +38,7 @@ export interface Certificate { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -52,7 +52,7 @@ export interface Certificate { ): Promise; /** * Gets the details of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -66,7 +66,7 @@ export interface Certificate { ): Promise; /** * Creates or updates the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -82,7 +82,7 @@ export interface Certificate { ): Promise; /** * Deletes specific certificate. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -99,7 +99,7 @@ export interface Certificate { ): Promise; /** * From KeyVault, Refresh the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts index 16558538d39f..d6db18227d54 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts @@ -24,7 +24,7 @@ import { export interface ContentItem { /** * Lists developer portal's content items specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -38,7 +38,7 @@ export interface ContentItem { /** * Returns the entity state (ETag) version of the developer portal's content item specified by its * identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -53,7 +53,7 @@ export interface ContentItem { ): Promise; /** * Returns the developer portal's content item specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -68,7 +68,7 @@ export interface ContentItem { ): Promise; /** * Creates a new developer portal's content item specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -85,7 +85,7 @@ export interface ContentItem { ): Promise; /** * Removes the specified developer portal's content item. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts index 1f84eaa59691..68c247315096 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts @@ -23,7 +23,7 @@ export interface ContentType { /** * Lists the developer portal's content types. Content types describe content items' properties, * validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -35,7 +35,7 @@ export interface ContentType { /** * Gets the details of the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -50,7 +50,7 @@ export interface ContentType { * Creates or updates the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Custom content types' identifiers need to start with * the `c-` prefix. Built-in content types can't be modified. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param parameters Create or update parameters. @@ -67,7 +67,7 @@ export interface ContentType { * Removes the specified developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Built-in content types (with identifiers starting * with the `c-` prefix) can't be removed. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts index 58e679b7f001..650d46f719ba 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts @@ -23,7 +23,7 @@ import { export interface DelegationSettings { /** * Gets the entity state (Etag) version of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -34,7 +34,7 @@ export interface DelegationSettings { ): Promise; /** * Get Delegation Settings for the Portal. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -45,7 +45,7 @@ export interface DelegationSettings { ): Promise; /** * Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -61,7 +61,7 @@ export interface DelegationSettings { ): Promise; /** * Create or Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -74,7 +74,7 @@ export interface DelegationSettings { ): Promise; /** * Gets the secret validation key of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts index ececcf7fb126..fda32ab5743c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DeletedServiceContract, DeletedServicesListBySubscriptionOptionalParams, @@ -47,7 +47,7 @@ export interface DeletedServices { serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Purges Api Management Service (deletes it with no option to undelete). * @param serviceName The name of the API Management service. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts index a0e209ed079a..a33338aa2633 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts @@ -26,7 +26,7 @@ import { export interface Diagnostic { /** * Lists all diagnostics of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -37,7 +37,7 @@ export interface Diagnostic { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -51,7 +51,7 @@ export interface Diagnostic { ): Promise; /** * Gets the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -65,7 +65,7 @@ export interface Diagnostic { ): Promise; /** * Creates a new Diagnostic or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -81,7 +81,7 @@ export interface Diagnostic { ): Promise; /** * Updates the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -100,7 +100,7 @@ export interface Diagnostic { ): Promise; /** * Deletes the specified Diagnostic. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts new file mode 100644 index 000000000000..6a9cc7551419 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts @@ -0,0 +1,119 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DocumentationContract, + DocumentationListByServiceOptionalParams, + DocumentationGetEntityTagOptionalParams, + DocumentationGetEntityTagResponse, + DocumentationGetOptionalParams, + DocumentationGetResponse, + DocumentationCreateOrUpdateOptionalParams, + DocumentationCreateOrUpdateResponse, + DocumentationUpdateContract, + DocumentationUpdateOptionalParams, + DocumentationUpdateResponse, + DocumentationDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a Documentation. */ +export interface Documentation { + /** + * Lists all Documentations of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Documentation by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Documentation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetOptionalParams + ): Promise; + /** + * Creates a new Documentation or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + documentationId: string, + parameters: DocumentationContract, + options?: DocumentationCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Documentation for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Documentation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + parameters: DocumentationUpdateContract, + options?: DocumentationUpdateOptionalParams + ): Promise; + /** + * Deletes the specified Documentation from an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + options?: DocumentationDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts index d65cdcb343ea..daa6c97bed59 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts @@ -28,7 +28,7 @@ import { export interface EmailTemplate { /** * Gets all email templates - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -39,7 +39,7 @@ export interface EmailTemplate { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface EmailTemplate { ): Promise; /** * Gets the details of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -65,7 +65,7 @@ export interface EmailTemplate { ): Promise; /** * Updates an Email Template. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param parameters Email Template update parameters. @@ -80,7 +80,7 @@ export interface EmailTemplate { ): Promise; /** * Updates API Management email template - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -98,7 +98,7 @@ export interface EmailTemplate { ): Promise; /** * Reset the Email Template to default template provided by the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts index 6e2b9f2954a7..00a5b5b809c8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts @@ -33,7 +33,7 @@ import { export interface Gateway { /** * Lists a collection of gateways registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -44,7 +44,7 @@ export interface Gateway { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -58,7 +58,7 @@ export interface Gateway { ): Promise; /** * Gets the details of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -72,7 +72,7 @@ export interface Gateway { ): Promise; /** * Creates or updates a Gateway to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -88,7 +88,7 @@ export interface Gateway { ): Promise; /** * Updates the details of the gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -107,7 +107,7 @@ export interface Gateway { ): Promise; /** * Deletes specific Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -124,7 +124,7 @@ export interface Gateway { ): Promise; /** * Retrieves gateway keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -138,7 +138,7 @@ export interface Gateway { ): Promise; /** * Regenerates specified gateway key invalidating any tokens created with it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -154,7 +154,7 @@ export interface Gateway { ): Promise; /** * Gets the Shared Access Authorization Token for the gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts index 43f847c08a83..40fbda7aec7f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts @@ -22,7 +22,7 @@ import { export interface GatewayApi { /** * Lists a collection of the APIs associated with a gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -36,7 +36,7 @@ export interface GatewayApi { ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -52,7 +52,7 @@ export interface GatewayApi { ): Promise; /** * Adds an API to the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -68,7 +68,7 @@ export interface GatewayApi { ): Promise; /** * Deletes the specified API from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts index 73a9c1c61e87..8295474134eb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts @@ -24,7 +24,7 @@ import { export interface GatewayCertificateAuthority { /** * Lists the collection of Certificate Authorities for the specified Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -38,7 +38,7 @@ export interface GatewayCertificateAuthority { ): PagedAsyncIterableIterator; /** * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -55,7 +55,7 @@ export interface GatewayCertificateAuthority { ): Promise; /** * Get assigned Gateway Certificate Authority details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -72,7 +72,7 @@ export interface GatewayCertificateAuthority { ): Promise; /** * Assign Certificate entity to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -91,7 +91,7 @@ export interface GatewayCertificateAuthority { ): Promise; /** * Remove relationship between Certificate Authority and Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts index d4bd2f9ac759..51859ce26a5e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts @@ -24,7 +24,7 @@ import { export interface GatewayHostnameConfiguration { /** * Lists the collection of hostname configurations for the specified gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -39,7 +39,7 @@ export interface GatewayHostnameConfiguration { /** * Checks that hostname configuration entity specified by identifier exists for specified Gateway * entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -56,7 +56,7 @@ export interface GatewayHostnameConfiguration { ): Promise; /** * Get details of a hostname configuration - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -73,7 +73,7 @@ export interface GatewayHostnameConfiguration { ): Promise; /** * Creates of updates hostname configuration for a Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -92,7 +92,7 @@ export interface GatewayHostnameConfiguration { ): Promise; /** * Deletes the specified hostname configuration from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts index 48f2f7894751..a41c3a8d9396 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { GlobalSchemaContract, GlobalSchemaListByServiceOptionalParams, @@ -25,7 +25,7 @@ import { export interface GlobalSchema { /** * Lists a collection of schemas registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -36,7 +36,7 @@ export interface GlobalSchema { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -49,7 +49,7 @@ export interface GlobalSchema { ): Promise; /** * Gets the details of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -62,7 +62,7 @@ export interface GlobalSchema { ): Promise; /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -75,14 +75,14 @@ export interface GlobalSchema { parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GlobalSchemaCreateOrUpdateResponse > >; /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -97,7 +97,7 @@ export interface GlobalSchema { ): Promise; /** * Deletes specific Schema. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts new file mode 100644 index 000000000000..a26be7a75349 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ResolverContract, + GraphQLApiResolverListByApiOptionalParams, + GraphQLApiResolverGetEntityTagOptionalParams, + GraphQLApiResolverGetEntityTagResponse, + GraphQLApiResolverGetOptionalParams, + GraphQLApiResolverGetResponse, + GraphQLApiResolverCreateOrUpdateOptionalParams, + GraphQLApiResolverCreateOrUpdateResponse, + ResolverUpdateContract, + GraphQLApiResolverUpdateOptionalParams, + GraphQLApiResolverUpdateResponse, + GraphQLApiResolverDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a GraphQLApiResolver. */ +export interface GraphQLApiResolver { + /** + * Lists a collection of the resolvers for the specified GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the GraphQL API Resolver specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetOptionalParams + ): Promise; + /** + * Creates a new resolver in the GraphQL API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + parameters: ResolverContract, + options?: GraphQLApiResolverCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the resolver in the GraphQL API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters GraphQL API Resolver Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + parameters: ResolverUpdateContract, + options?: GraphQLApiResolverUpdateOptionalParams + ): Promise; + /** + * Deletes the specified resolver in the GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + options?: GraphQLApiResolverDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts new file mode 100644 index 000000000000..d2bba1d665a9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts @@ -0,0 +1,124 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + GraphQLApiResolverPolicyListByResolverOptionalParams, + PolicyIdName, + GraphQLApiResolverPolicyGetEntityTagOptionalParams, + GraphQLApiResolverPolicyGetEntityTagResponse, + GraphQLApiResolverPolicyGetOptionalParams, + GraphQLApiResolverPolicyGetResponse, + GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, + GraphQLApiResolverPolicyCreateOrUpdateResponse, + GraphQLApiResolverPolicyDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a GraphQLApiResolverPolicy. */ +export interface GraphQLApiResolverPolicy { + /** + * Get the list of policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + listByResolver( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + ): Promise; + /** + * Get the policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetOptionalParams + ): Promise; + /** + * Creates or updates policy configuration for the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the policy configuration at the GraphQL Api Resolver. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: GraphQLApiResolverPolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts index b94d8b460d25..2be3ae28bb90 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts @@ -28,7 +28,7 @@ import { export interface Group { /** * Lists a collection of groups defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -39,7 +39,7 @@ export interface Group { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface Group { ): Promise; /** * Gets the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -65,7 +65,7 @@ export interface Group { ): Promise; /** * Creates or Updates a group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -80,7 +80,7 @@ export interface Group { ): Promise; /** * Updates the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -98,7 +98,7 @@ export interface Group { ): Promise; /** * Deletes specific group of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts index 342840405955..3eb645744d60 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts @@ -22,7 +22,7 @@ import { export interface GroupUser { /** * Lists a collection of user entities associated with the group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -35,7 +35,7 @@ export interface GroupUser { ): PagedAsyncIterableIterator; /** * Checks that user entity specified by identifier is associated with the group entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -50,7 +50,7 @@ export interface GroupUser { ): Promise; /** * Add existing user to existing group - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -65,7 +65,7 @@ export interface GroupUser { ): Promise; /** * Remove existing user from existing group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts index 709832cf4a8c..c5317c014fbb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts @@ -31,7 +31,7 @@ import { export interface IdentityProvider { /** * Lists a collection of Identity Provider configured in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -42,7 +42,7 @@ export interface IdentityProvider { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the identityProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -55,7 +55,7 @@ export interface IdentityProvider { ): Promise; /** * Gets the configuration details of the identity Provider configured in specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -68,7 +68,7 @@ export interface IdentityProvider { ): Promise; /** * Creates or Updates the IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param parameters Create parameters. @@ -83,7 +83,7 @@ export interface IdentityProvider { ): Promise; /** * Updates an existing IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -101,7 +101,7 @@ export interface IdentityProvider { ): Promise; /** * Deletes the specified identity provider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -117,7 +117,7 @@ export interface IdentityProvider { ): Promise; /** * Gets the client secret details of the Identity Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts index 24d2feb9be63..83434e88bcd2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts @@ -12,6 +12,8 @@ export * from "./apiRelease"; export * from "./apiOperation"; export * from "./apiOperationPolicy"; export * from "./tag"; +export * from "./graphQLApiResolver"; +export * from "./graphQLApiResolverPolicy"; export * from "./apiProduct"; export * from "./apiPolicy"; export * from "./apiSchema"; @@ -21,9 +23,15 @@ export * from "./apiIssueComment"; export * from "./apiIssueAttachment"; export * from "./apiTagDescription"; export * from "./operationOperations"; +export * from "./apiWiki"; +export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; export * from "./authorizationServer"; +export * from "./authorizationProvider"; +export * from "./authorization"; +export * from "./authorizationLoginLinks"; +export * from "./authorizationAccessPolicy"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -53,6 +61,8 @@ export * from "./openIdConnectProvider"; export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; +export * from "./policyFragment"; +export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; export * from "./signInSettings"; @@ -64,6 +74,8 @@ export * from "./productApi"; export * from "./productGroup"; export * from "./productSubscriptions"; export * from "./productPolicy"; +export * from "./productWiki"; +export * from "./productWikis"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -81,3 +93,4 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; +export * from "./documentation"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts index 91faf0f923b5..9b26a41c56f2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts @@ -19,7 +19,7 @@ import { export interface Issue { /** * Lists a collection of issues in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -30,7 +30,7 @@ export interface Issue { ): PagedAsyncIterableIterator; /** * Gets API Management issue details - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts index af2ca6fd832c..8ec31d0af0c0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts @@ -27,7 +27,7 @@ import { export interface Logger { /** * Lists a collection of loggers in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -38,7 +38,7 @@ export interface Logger { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -51,7 +51,7 @@ export interface Logger { ): Promise; /** * Gets the details of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -64,7 +64,7 @@ export interface Logger { ): Promise; /** * Creates or Updates a logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Create parameters. @@ -79,7 +79,7 @@ export interface Logger { ): Promise; /** * Updates an existing logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -97,7 +97,7 @@ export interface Logger { ): Promise; /** * Deletes the specified logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts index 86a6969ff0c9..d325fdb15112 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { NamedValueContract, NamedValueListByServiceOptionalParams, @@ -33,7 +33,7 @@ import { export interface NamedValue { /** * Lists a collection of named values defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -44,7 +44,7 @@ export interface NamedValue { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -57,7 +57,7 @@ export interface NamedValue { ): Promise; /** * Gets the details of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -70,7 +70,7 @@ export interface NamedValue { ): Promise; /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -83,14 +83,14 @@ export interface NamedValue { parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueCreateOrUpdateResponse > >; /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -105,7 +105,7 @@ export interface NamedValue { ): Promise; /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -121,14 +121,14 @@ export interface NamedValue { parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueUpdateResponse > >; /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -146,7 +146,7 @@ export interface NamedValue { ): Promise; /** * Deletes specific named value from the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -162,7 +162,7 @@ export interface NamedValue { ): Promise; /** * Gets the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -175,7 +175,7 @@ export interface NamedValue { ): Promise; /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -186,14 +186,14 @@ export interface NamedValue { namedValueId: string, options?: NamedValueRefreshSecretOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueRefreshSecretResponse > >; /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts index 6df394bd96f5..6bed7641b6b9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts @@ -18,7 +18,7 @@ export interface NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -30,7 +30,7 @@ export interface NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param locationName Location in which the API Management service is deployed. This is one of the * Azure Regions like West US, East US, South Central US. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts index a5719865ce1a..344725e96540 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts @@ -22,7 +22,7 @@ import { export interface Notification { /** * Lists a collection of properties defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -33,7 +33,7 @@ export interface Notification { ): PagedAsyncIterableIterator; /** * Gets the details of the Notification specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -46,7 +46,7 @@ export interface Notification { ): Promise; /** * Create or Update API Management publisher notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts index b720f0838181..0d0742d5c743 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts @@ -21,7 +21,7 @@ import { export interface NotificationRecipientEmail { /** * Gets the list of the Notification Recipient Emails subscribed to a notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -34,7 +34,7 @@ export interface NotificationRecipientEmail { ): Promise; /** * Determine if Notification Recipient Email subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -49,7 +49,7 @@ export interface NotificationRecipientEmail { ): Promise; /** * Adds the Email address to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -64,7 +64,7 @@ export interface NotificationRecipientEmail { ): Promise; /** * Removes the email from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts index 16feb4ea5822..1e31f45716ba 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts @@ -21,7 +21,7 @@ import { export interface NotificationRecipientUser { /** * Gets the list of the Notification Recipient User subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -34,7 +34,7 @@ export interface NotificationRecipientUser { ): Promise; /** * Determine if the Notification Recipient User is subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -49,7 +49,7 @@ export interface NotificationRecipientUser { ): Promise; /** * Adds the API Management User to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -64,7 +64,7 @@ export interface NotificationRecipientUser { ): Promise; /** * Removes the API Management user from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts index eb15628140c9..580369d0e3de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts @@ -29,7 +29,7 @@ import { export interface OpenIdConnectProvider { /** * Lists of all the OpenId Connect Providers. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -40,7 +40,7 @@ export interface OpenIdConnectProvider { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -53,7 +53,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Gets specific OpenID Connect Provider without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -66,7 +66,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Creates or updates the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param parameters Create parameters. @@ -81,7 +81,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Updates the specific OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -99,7 +99,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Deletes specific OpenID Connect Provider of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -115,7 +115,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Gets the client secret details of the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts index b287f56a4ad0..f5415a244e27 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts @@ -17,7 +17,7 @@ import { export interface OperationOperations { /** * Lists a collection of operations associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts index 44d441b19c73..dd3d17095902 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts @@ -15,7 +15,7 @@ import { export interface OutboundNetworkDependenciesEndpoints { /** * Gets the network endpoints of all outbound dependencies of a ApiManagement service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts index c69604e0a097..84d9f55f2198 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts @@ -24,7 +24,7 @@ import { export interface Policy { /** * Lists all the Global Policy definitions of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -35,7 +35,7 @@ export interface Policy { ): Promise; /** * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -48,7 +48,7 @@ export interface Policy { ): Promise; /** * Get the Global policy definition of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -61,7 +61,7 @@ export interface Policy { ): Promise; /** * Creates or updates the global policy configuration of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param parameters The policy contents to apply. @@ -76,7 +76,7 @@ export interface Policy { ): Promise; /** * Deletes the global policy configuration of the Api Management Service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts index 4602fdaf931e..452f51ef1fdd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts @@ -15,7 +15,7 @@ import { export interface PolicyDescription { /** * Lists all policy descriptions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts new file mode 100644 index 000000000000..171bfa2f20c0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts @@ -0,0 +1,128 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PolicyFragmentListByServiceOptionalParams, + PolicyFragmentListByServiceResponse, + PolicyFragmentGetEntityTagOptionalParams, + PolicyFragmentGetEntityTagResponse, + PolicyFragmentGetOptionalParams, + PolicyFragmentGetResponse, + PolicyFragmentContract, + PolicyFragmentCreateOrUpdateOptionalParams, + PolicyFragmentCreateOrUpdateResponse, + PolicyFragmentDeleteOptionalParams, + PolicyFragmentListReferencesOptionalParams, + PolicyFragmentListReferencesResponse +} from "../models"; + +/** Interface representing a PolicyFragment. */ +export interface PolicyFragment { + /** + * Gets all policy fragments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams + ): Promise; + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetEntityTagOptionalParams + ): Promise; + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetOptionalParams + ): Promise; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + PolicyFragmentCreateOrUpdateResponse + > + >; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + id: string, + ifMatch: string, + options?: PolicyFragmentDeleteOptionalParams + ): Promise; + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentListReferencesOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts new file mode 100644 index 000000000000..d32c7d0eb75b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + PortalConfigListByServiceOptionalParams, + PortalConfigListByServiceResponse, + PortalConfigGetEntityTagOptionalParams, + PortalConfigGetEntityTagResponse, + PortalConfigGetOptionalParams, + PortalConfigGetResponse, + PortalConfigContract, + PortalConfigUpdateOptionalParams, + PortalConfigUpdateResponse, + PortalConfigCreateOrUpdateOptionalParams, + PortalConfigCreateOrUpdateResponse +} from "../models"; + +/** Interface representing a PortalConfig. */ +export interface PortalConfig { + /** + * Lists the developer portal configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams + ): Promise; + /** + * Gets the entity state (Etag) version of the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetEntityTagOptionalParams + ): Promise; + /** + * Get the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetOptionalParams + ): Promise; + /** + * Update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update the developer portal configuration. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigUpdateOptionalParams + ): Promise; + /** + * Create or update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update the developer portal configuration. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts index 13f28be90928..e0f92866e5f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PortalRevisionContract, PortalRevisionListByServiceOptionalParams, @@ -26,7 +26,7 @@ import { export interface PortalRevision { /** * Lists developer portal's revisions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -37,7 +37,7 @@ export interface PortalRevision { ): PagedAsyncIterableIterator; /** * Gets the developer portal revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -51,7 +51,7 @@ export interface PortalRevision { ): Promise; /** * Gets the developer portal's revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -66,7 +66,7 @@ export interface PortalRevision { /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -80,15 +80,15 @@ export interface PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionCreateOrUpdateResponse > >; /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -104,7 +104,7 @@ export interface PortalRevision { ): Promise; /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -121,14 +121,14 @@ export interface PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionUpdateResponse > >; /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts index a7c5274a3d18..a7ce1b08a936 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts @@ -15,7 +15,7 @@ import { export interface PortalSettings { /** * Lists a collection of portalsettings defined within a service instance.. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts index 47769f028af9..b6f6c5b9b32b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PrivateEndpointConnection, PrivateEndpointConnectionListByServiceOptionalParams, @@ -28,7 +28,7 @@ import { export interface PrivateEndpointConnectionOperations { /** * Lists all private endpoint connections of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -39,7 +39,7 @@ export interface PrivateEndpointConnectionOperations { ): PagedAsyncIterableIterator; /** * Gets the details of the Private Endpoint Connection specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -65,14 +65,14 @@ export interface PrivateEndpointConnectionOperations { privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionCreateOrUpdateResponse > >; /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -87,7 +87,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -97,10 +97,10 @@ export interface PrivateEndpointConnectionOperations { serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -113,7 +113,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -124,7 +124,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateLinkSubResourceName Name of the private link resource. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts index 66b903667cd3..f6a72fe292f0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts @@ -29,7 +29,7 @@ import { export interface Product { /** * Lists a collection of products in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -40,7 +40,7 @@ export interface Product { ): PagedAsyncIterableIterator; /** * Lists a collection of products associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -51,7 +51,7 @@ export interface Product { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -64,7 +64,7 @@ export interface Product { ): Promise; /** * Gets the details of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -77,7 +77,7 @@ export interface Product { ): Promise; /** * Creates or Updates a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -92,7 +92,7 @@ export interface Product { ): Promise; /** * Update existing product details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -110,7 +110,7 @@ export interface Product { ): Promise; /** * Delete product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts index 4e19ecab6cd3..7051be981009 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts @@ -22,7 +22,7 @@ import { export interface ProductApi { /** * Lists a collection of the APIs associated with a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -35,7 +35,7 @@ export interface ProductApi { ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -51,7 +51,7 @@ export interface ProductApi { ): Promise; /** * Adds an API to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -67,7 +67,7 @@ export interface ProductApi { ): Promise; /** * Deletes the specified API from the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts index b6c66bd9df75..e44872094a3d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts @@ -22,7 +22,7 @@ import { export interface ProductGroup { /** * Lists the collection of developer groups associated with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -35,7 +35,7 @@ export interface ProductGroup { ): PagedAsyncIterableIterator; /** * Checks that Group entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -50,7 +50,7 @@ export interface ProductGroup { ): Promise; /** * Adds the association between the specified developer group with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -65,7 +65,7 @@ export interface ProductGroup { ): Promise; /** * Deletes the association between the specified group and product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts index 8db0d28d5500..9f08f040cfb3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts @@ -24,7 +24,7 @@ import { export interface ProductPolicy { /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -37,7 +37,7 @@ export interface ProductPolicy { ): Promise; /** * Get the ETag of the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -52,7 +52,7 @@ export interface ProductPolicy { ): Promise; /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -67,7 +67,7 @@ export interface ProductPolicy { ): Promise; /** * Creates or updates policy configuration for the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -84,7 +84,7 @@ export interface ProductPolicy { ): Promise; /** * Deletes the policy configuration at the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts index 871a22f687f3..804f5bf882b7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts @@ -17,7 +17,7 @@ import { export interface ProductSubscriptions { /** * Lists the collection of subscriptions to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts new file mode 100644 index 000000000000..540bdf5fa04a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ProductWikiGetEntityTagOptionalParams, + ProductWikiGetEntityTagResponse, + ProductWikiGetOptionalParams, + ProductWikiGetResponse, + WikiContract, + ProductWikiCreateOrUpdateOptionalParams, + ProductWikiCreateOrUpdateResponse, + WikiUpdateContract, + ProductWikiUpdateOptionalParams, + ProductWikiUpdateResponse, + ProductWikiDeleteOptionalParams +} from "../models"; + +/** Interface representing a ProductWiki. */ +export interface ProductWiki { + /** + * Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetOptionalParams + ): Promise; + /** + * Creates a new Wiki for a Product or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + parameters: WikiContract, + options?: ProductWikiCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ProductWikiUpdateOptionalParams + ): Promise; + /** + * Deletes the specified Wiki from a Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + options?: ProductWikiDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts new file mode 100644 index 000000000000..878251c2a6a7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WikiContract, ProductWikisListOptionalParams } from "../models"; + +/// +/** Interface representing a ProductWikis. */ +export interface ProductWikis { + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts index 6c6dffef8515..8b06db3207dd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts @@ -19,7 +19,7 @@ export interface QuotaByCounterKeys { /** * Lists a collection of current quota counter periods associated with the counter-key configured in * the policy on the specified service instance. The api does not support paging yet. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -36,7 +36,7 @@ export interface QuotaByCounterKeys { /** * Updates all the quota counter values specified with the existing quota counter key to a value in the * specified service instance. This should be used for reset of the quota counter values. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts index da9ef6b67f9b..49641b09add3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts @@ -19,7 +19,7 @@ export interface QuotaByPeriodKeys { /** * Gets the value of the quota counter associated with the counter-key in the policy for the specific * period in service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -37,7 +37,7 @@ export interface QuotaByPeriodKeys { ): Promise; /** * Updates an existing quota counter value in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts index 96384a2f7965..b65177a34f8c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts @@ -14,7 +14,7 @@ import { RegionContract, RegionListByServiceOptionalParams } from "../models"; export interface Region { /** * Lists all azure regions in which the service exists. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts index 3f7015b510e5..0069ea94bbfc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts @@ -25,7 +25,7 @@ import { export interface Reports { /** * Lists report records by API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter The filter to apply on the operation. * @param options The options parameters. @@ -38,7 +38,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -63,7 +63,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by API Operations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -87,7 +87,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -111,7 +111,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by geography. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -135,7 +135,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -159,7 +159,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by Time. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select @@ -187,7 +187,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by Request. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts index 0c6dd957763a..1c4b94321adb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts @@ -21,7 +21,7 @@ import { export interface SignInSettings { /** * Gets the entity state (Etag) version of the SignInSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -32,7 +32,7 @@ export interface SignInSettings { ): Promise; /** * Get Sign In Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -43,7 +43,7 @@ export interface SignInSettings { ): Promise; /** * Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -59,7 +59,7 @@ export interface SignInSettings { ): Promise; /** * Create or Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts index 56ee69ef6406..1dbcacd372e8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts @@ -21,7 +21,7 @@ import { export interface SignUpSettings { /** * Gets the entity state (Etag) version of the SignUpSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -32,7 +32,7 @@ export interface SignUpSettings { ): Promise; /** * Get Sign Up Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -43,7 +43,7 @@ export interface SignUpSettings { ): Promise; /** * Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -59,7 +59,7 @@ export interface SignUpSettings { ): Promise; /** * Create or Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts index 17b0413f92fa..74d50388f102 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts @@ -32,7 +32,7 @@ import { export interface Subscription { /** * Lists all subscriptions of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -43,7 +43,7 @@ export interface Subscription { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -57,7 +57,7 @@ export interface Subscription { ): Promise; /** * Gets the specified Subscription entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -71,7 +71,7 @@ export interface Subscription { ): Promise; /** * Creates or updates the subscription of specified user to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -87,7 +87,7 @@ export interface Subscription { ): Promise; /** * Updates the details of a subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -106,7 +106,7 @@ export interface Subscription { ): Promise; /** * Deletes the specified subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -123,7 +123,7 @@ export interface Subscription { ): Promise; /** * Regenerates primary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -137,7 +137,7 @@ export interface Subscription { ): Promise; /** * Regenerates secondary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -151,7 +151,7 @@ export interface Subscription { ): Promise; /** * Gets the specified Subscription keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts index b1340408f80e..dca054554a45 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts @@ -51,7 +51,7 @@ import { export interface Tag { /** * Lists all Tags associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -68,7 +68,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -82,7 +82,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -95,7 +95,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Lists a collection of tags defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -106,7 +106,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -125,7 +125,7 @@ export interface Tag { ): Promise; /** * Get tag associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -144,7 +144,7 @@ export interface Tag { ): Promise; /** * Assign tag to the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -163,7 +163,7 @@ export interface Tag { ): Promise; /** * Detach the tag from the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -182,7 +182,7 @@ export interface Tag { ): Promise; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -198,7 +198,7 @@ export interface Tag { ): Promise; /** * Get tag associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -214,7 +214,7 @@ export interface Tag { ): Promise; /** * Assign tag to the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -230,7 +230,7 @@ export interface Tag { ): Promise; /** * Detach the tag from the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -246,7 +246,7 @@ export interface Tag { ): Promise; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -261,7 +261,7 @@ export interface Tag { ): Promise; /** * Get tag associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -276,7 +276,7 @@ export interface Tag { ): Promise; /** * Assign tag to the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -291,7 +291,7 @@ export interface Tag { ): Promise; /** * Detach the tag from the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -306,7 +306,7 @@ export interface Tag { ): Promise; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -319,7 +319,7 @@ export interface Tag { ): Promise; /** * Gets the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -332,7 +332,7 @@ export interface Tag { ): Promise; /** * Creates a tag. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -347,7 +347,7 @@ export interface Tag { ): Promise; /** * Updates the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -365,7 +365,7 @@ export interface Tag { ): Promise; /** * Deletes specific tag of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts index ed9c78851f25..9290bd0da6f0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts @@ -17,7 +17,7 @@ import { export interface TagResource { /** * Lists a collection of resources associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts index 9e9bb9288bd5..21cdd2908a90 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts @@ -32,7 +32,7 @@ import { export interface TenantAccess { /** * Returns list of access infos - for Git and Management endpoints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -43,7 +43,7 @@ export interface TenantAccess { ): PagedAsyncIterableIterator; /** * Tenant access metadata - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -56,7 +56,7 @@ export interface TenantAccess { ): Promise; /** * Get tenant access information details without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -69,7 +69,7 @@ export interface TenantAccess { ): Promise; /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -87,7 +87,7 @@ export interface TenantAccess { ): Promise; /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -105,7 +105,7 @@ export interface TenantAccess { ): Promise; /** * Regenerate primary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -118,7 +118,7 @@ export interface TenantAccess { ): Promise; /** * Regenerate secondary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -131,7 +131,7 @@ export interface TenantAccess { ): Promise; /** * Get tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts index b025d713a3d4..12b13c1b73e1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts @@ -16,7 +16,7 @@ import { export interface TenantAccessGit { /** * Regenerate primary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -29,7 +29,7 @@ export interface TenantAccessGit { ): Promise; /** * Regenerate secondary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts index 7ddc553fbb14..81a7460fa896 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DeployConfigurationParameters, ConfigurationIdName, @@ -26,7 +26,7 @@ export interface TenantConfiguration { /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -39,15 +39,15 @@ export interface TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationDeployResponse > >; /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -63,7 +63,7 @@ export interface TenantConfiguration { /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -76,15 +76,15 @@ export interface TenantConfiguration { parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationSaveResponse > >; /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -100,7 +100,7 @@ export interface TenantConfiguration { /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -113,15 +113,15 @@ export interface TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationValidateResponse > >; /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -137,7 +137,7 @@ export interface TenantConfiguration { /** * Gets the status of the most recent synchronization between the configuration database and the Git * repository. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts index a9435f3e6012..4f8c4c6faa9f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts @@ -20,7 +20,7 @@ import { export interface TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -31,7 +31,7 @@ export interface TenantSettings { ): PagedAsyncIterableIterator; /** * Get tenant settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param settingsType The identifier of the settings. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts index f62b70593d15..0b6102704805 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts @@ -33,7 +33,7 @@ import { export interface User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -44,7 +44,7 @@ export interface User { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -57,7 +57,7 @@ export interface User { ): Promise; /** * Gets the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -70,7 +70,7 @@ export interface User { ): Promise; /** * Creates or Updates a user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -85,7 +85,7 @@ export interface User { ): Promise; /** * Updates the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -103,7 +103,7 @@ export interface User { ): Promise; /** * Deletes specific user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -120,7 +120,7 @@ export interface User { /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -133,7 +133,7 @@ export interface User { ): Promise; /** * Gets the Shared Access Authorization Token for the User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create Authorization Token parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts index 5044849cb033..0479110f882e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts @@ -12,7 +12,7 @@ import { UserConfirmationPasswordSendOptionalParams } from "../models"; export interface UserConfirmationPassword { /** * Sends confirmation - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts index 1dc89d586dce..a2fbd8f792de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts @@ -14,7 +14,7 @@ import { GroupContract, UserGroupListOptionalParams } from "../models"; export interface UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts index 1c9fb3765d37..1a242a6c686d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts @@ -17,7 +17,7 @@ import { export interface UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts index 8ed8472b2794..548a266d86dd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts @@ -19,7 +19,7 @@ import { export interface UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -32,7 +32,7 @@ export interface UserSubscription { ): PagedAsyncIterableIterator; /** * Gets the specified Subscription entity associated with a particular user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param sid Subscription entity Identifier. The entity represents the association between a user and