diff --git a/sdk/appplatform/arm-appplatform/CHANGELOG.md b/sdk/appplatform/arm-appplatform/CHANGELOG.md index 9dd57727a974..9973edf9aba4 100644 --- a/sdk/appplatform/arm-appplatform/CHANGELOG.md +++ b/sdk/appplatform/arm-appplatform/CHANGELOG.md @@ -1,32 +1,6 @@ # Release History - -## 2.1.0-beta.5 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 2.1.0-beta.4 (2022-11-16) - - - Bugs Fixed - -## 2.1.0-beta.3 (2022-10-08) - -**Bugs Fixed** - - - revert credential scopes - -## 2.1.0-beta.2 (2022-09-30) - -**Bugs Fixed** - - - fix better user experience of credential scopes in government cloud - -## 2.1.0-beta.1 (2022-09-09) + +## 3.0.0 (2022-12-05) **Features** @@ -134,7 +108,6 @@ - Added Interface IngressSettingsClientAuth - Added Interface JarUploadedUserSourceInfo - Added Interface KeyVaultCertificateProperties - - Added Interface MarketplaceResource - Added Interface MonitoringSettingResource - Added Interface NetCoreZipUploadedUserSourceInfo - Added Interface Probe @@ -214,7 +187,6 @@ - Interface AppResourceProperties has a new optional parameter vnetAddons - Interface BuildProperties has a new optional parameter resourceRequests - Interface CertificateProperties has a new optional parameter provisioningState - - Interface ClusterResourceProperties has a new optional parameter marketplaceResource - Interface ClusterResourceProperties has a new optional parameter powerState - Interface ClusterResourceProperties has a new optional parameter vnetAddons - Interface CustomDomainProperties has a new optional parameter provisioningState @@ -244,6 +216,11 @@ - Added Enum KnownSessionAffinity - Added Enum KnownStorageType - Added Enum KnownType + +**Breaking Changes** + + - Interface DeploymentsListForClusterNextOptionalParams no longer has parameter version + - Interface DeploymentsListNextOptionalParams no longer has parameter version ## 2.0.0 (2022-05-19) diff --git a/sdk/appplatform/arm-appplatform/README.md b/sdk/appplatform/arm-appplatform/README.md index 22becae73dbd..edfddbbcc142 100644 --- a/sdk/appplatform/arm-appplatform/README.md +++ b/sdk/appplatform/arm-appplatform/README.md @@ -6,7 +6,7 @@ REST API for Azure Spring Apps [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-appplatform) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-appplatform) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/appplatform/arm-appplatform/_meta.json b/sdk/appplatform/arm-appplatform/_meta.json index a20200e8ace3..16ad4b8fe1d1 100644 --- a/sdk/appplatform/arm-appplatform/_meta.json +++ b/sdk/appplatform/arm-appplatform/_meta.json @@ -1,8 +1,8 @@ { - "commit": "dbc70fac5e8915c4e80bc1937bc11e6fbb037c91", - "readme": "specification\\appplatform\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appplatform\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "957dc1f5fdb64e8d032d8782bd38659fa400b608", + "readme": "specification/appplatform/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/appplatform/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.5.2", + "use": "@autorest/typescript@6.0.0-rc.4" } \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index c09e3329b838..c3660b6f979e 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AppPlatformManagementClient.", - "version": "2.1.0-beta.5", + "version": "3.0.0", "engines": { "node": ">=14.0.0" }, @@ -110,13 +110,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md index 26b0efd2ff44..cd139efcbfcc 100644 --- a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md +++ b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md @@ -1021,7 +1021,6 @@ export interface CloudErrorBody { // @public export interface ClusterResourceProperties { readonly fqdn?: string; - marketplaceResource?: MarketplaceResource; networkProfile?: NetworkProfile; readonly powerState?: PowerState; readonly provisioningState?: ProvisioningState; @@ -1550,7 +1549,6 @@ export type DeploymentsGetResponse = DeploymentResource; // @public export interface DeploymentsListForClusterNextOptionalParams extends coreClient.OperationOptions { - version?: string[]; } // @public @@ -1566,7 +1564,6 @@ export type DeploymentsListForClusterResponse = DeploymentResourceCollection; // @public export interface DeploymentsListNextOptionalParams extends coreClient.OperationOptions { - version?: string[]; } // @public @@ -2308,13 +2305,6 @@ export interface ManagedIdentityProperties { // @public export type ManagedIdentityType = string; -// @public -export interface MarketplaceResource { - plan?: string; - product?: string; - publisher?: string; -} - // @public export interface MetricDimension { displayName?: string; diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts index 41382e836ab5..664b1f7b92d2 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -99,7 +99,7 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-appplatform/2.1.0-beta.5`; + const packageDetails = `azsdk-js-arm-appplatform/3.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -152,7 +152,7 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-09-01-preview"; + this.apiVersion = options.apiVersion || "2022-12-01"; this.services = new ServicesImpl(this); this.configServers = new ConfigServersImpl(this); this.configurationServices = new ConfigurationServicesImpl(this); diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts index 152cb7187750..de33e016bffc 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -64,8 +64,6 @@ export interface ClusterResourceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fqdn?: string; - /** Purchasing 3rd party product of the Service resource. */ - marketplaceResource?: MarketplaceResource; } /** Service network profile payload */ @@ -146,16 +144,6 @@ export interface ServiceVNetAddons { logStreamPublicEndpoint?: boolean; } -/** Purchasing 3rd Party product for one Azure Spring Apps instance */ -export interface MarketplaceResource { - /** The plan id of the 3rd Party Artifact that is being procured. */ - plan?: string; - /** The publisher id of the 3rd Party Artifact that is being bought. */ - publisher?: string; - /** The 3rd Party artifact that is being procured. */ - product?: string; -} - /** Sku of Azure Spring Apps */ export interface Sku { /** Name of the Sku */ @@ -4062,20 +4050,14 @@ export interface DeploymentsStartJFROptionalParams /** Optional parameters. */ export interface DeploymentsListNextOptionalParams - extends coreClient.OperationOptions { - /** Version of the deployments to be listed */ - version?: string[]; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DeploymentsListNextResponse = DeploymentResourceCollection; /** Optional parameters. */ export interface DeploymentsListForClusterNextOptionalParams - extends coreClient.OperationOptions { - /** Version of the deployments to be listed */ - version?: string[]; -} + extends coreClient.OperationOptions {} /** Contains response data for the listForClusterNext operation. */ export type DeploymentsListForClusterNextResponse = DeploymentResourceCollection; diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts index 34db47f5e716..f5666e919318 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -68,13 +68,6 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { type: { name: "String" } - }, - marketplaceResource: { - serializedName: "marketplaceResource", - type: { - name: "Composite", - className: "MarketplaceResource" - } } } } @@ -258,33 +251,6 @@ export const ServiceVNetAddons: coreClient.CompositeMapper = { } }; -export const MarketplaceResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MarketplaceResource", - modelProperties: { - plan: { - serializedName: "plan", - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - product: { - serializedName: "product", - type: { - name: "String" - } - } - } - } -}; - export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/appplatform/arm-appplatform/src/models/parameters.ts b/sdk/appplatform/arm-appplatform/src/models/parameters.ts index 3dee45f96d67..0f7d4ee7bd85 100644 --- a/sdk/appplatform/arm-appplatform/src/models/parameters.ts +++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts @@ -68,7 +68,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-09-01-preview", + defaultValue: "2022-12-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts index 18d3bb9ce4f3..970f3306476a 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts @@ -525,7 +525,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts index 84405d640311..fb23dd3543e0 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts @@ -543,7 +543,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/apps.ts b/sdk/appplatform/arm-appplatform/src/operations/apps.ts index 358b8cbdc55c..dd4a6c42719d 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apps.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apps.ts @@ -850,7 +850,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts index 9a2639dd651a..6a6dea663463 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts @@ -673,7 +673,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts index 018120526ddb..20a83c8364e5 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts @@ -411,7 +411,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts index d81743ba98ac..f66d1cc2b8c7 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts @@ -591,7 +591,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts index fc4897c6a9a6..090d9a8d1dbd 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts @@ -1050,7 +1050,6 @@ const listBuildServicesNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1072,7 +1071,6 @@ const listBuildsNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1095,7 +1093,6 @@ const listBuildResultsNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts index e4a189d57f78..4f125de999e3 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts @@ -582,7 +582,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts index 22cbfe59eb44..f56a0f557801 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts @@ -487,7 +487,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts index 7cedd0c20230..34fc13bfc10d 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts @@ -632,7 +632,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts index 0fcc22ed2db1..df785d7cdabb 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts @@ -673,7 +673,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts index 6effd1a972d4..4fdeb5d53b00 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts @@ -1952,7 +1952,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.version], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1975,7 +1974,6 @@ const listForClusterNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.version], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts index 6de415ff4e14..b47a25e328a4 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts @@ -527,7 +527,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts index 3b04e7662149..1ee5dac339f0 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts @@ -529,7 +529,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts index f24352b73e0a..74e2aad3fb4c 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts @@ -531,7 +531,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/operations.ts b/sdk/appplatform/arm-appplatform/src/operations/operations.ts index e5dec219773e..844ad5e54bed 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/operations.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/operations.ts @@ -143,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts index cfb8a253e7ba..1b3bade11cec 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts @@ -474,7 +474,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/services.ts b/sdk/appplatform/arm-appplatform/src/operations/services.ts index 9a7b7572a7eb..efd3581e914f 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/services.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/services.ts @@ -1120,7 +1120,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1140,7 +1139,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/skus.ts b/sdk/appplatform/arm-appplatform/src/operations/skus.ts index 7eff2e917946..c49a190801bf 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/skus.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/skus.ts @@ -141,7 +141,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/operations/storages.ts b/sdk/appplatform/arm-appplatform/src/operations/storages.ts index d1da3c1aea38..80033effcf5d 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/storages.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/storages.ts @@ -481,7 +481,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appplatform/arm-appplatform/src/pagingHelper.ts b/sdk/appplatform/arm-appplatform/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/appplatform/arm-appplatform/src/pagingHelper.ts +++ b/sdk/appplatform/arm-appplatform/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { diff --git a/sdk/appplatform/arm-appplatform/test/sampleTest.ts b/sdk/appplatform/arm-appplatform/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/appplatform/arm-appplatform/tsconfig.json b/sdk/appplatform/arm-appplatform/tsconfig.json index 04fa881dd845..3e6ae96443f3 100644 --- a/sdk/appplatform/arm-appplatform/tsconfig.json +++ b/sdk/appplatform/arm-appplatform/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-appplatform": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"