diff --git a/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md index 0de4cb014ea2..6e0d2b8c1bd4 100644 --- a/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History + +## 4.0.0 (2022-12-20) + +**Breaking Changes** -## 3.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Interface ConfigurationStoresListByResourceGroupNextOptionalParams no longer has parameter skipToken + - Interface ConfigurationStoresListKeysNextOptionalParams no longer has parameter skipToken + - Interface ConfigurationStoresListNextOptionalParams no longer has parameter skipToken + - Interface KeyValuesListByConfigurationStoreNextOptionalParams no longer has parameter skipToken + - Interface OperationsListNextOptionalParams no longer has parameter skipToken + + ## 3.1.0 (2022-11-15) **Features** diff --git a/sdk/appconfiguration/arm-appconfiguration/_meta.json b/sdk/appconfiguration/arm-appconfiguration/_meta.json index fca82aa25689..1c715616205e 100644 --- a/sdk/appconfiguration/arm-appconfiguration/_meta.json +++ b/sdk/appconfiguration/arm-appconfiguration/_meta.json @@ -1,8 +1,8 @@ { - "commit": "60cd4dbca5214118b763d1edc835a44c8386283a", - "readme": "specification\\appconfiguration\\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\\appconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "e88daedf669a9eb939b3477e6f6bc465ac61d9b5", + "readme": "specification/appconfiguration/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/appconfiguration/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/appconfiguration/arm-appconfiguration/package.json b/sdk/appconfiguration/arm-appconfiguration/package.json index a7129e9d0fef..1661c9aa0f1a 100644 --- a/sdk/appconfiguration/arm-appconfiguration/package.json +++ b/sdk/appconfiguration/arm-appconfiguration/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AppConfigurationManagementClient.", - "version": "3.1.1", + "version": "4.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-appconfiguration?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md b/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md index e7be1b2a2a08..0dce9e71b879 100644 --- a/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md +++ b/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md @@ -139,7 +139,6 @@ export type ConfigurationStoresGetResponse = ConfigurationStore; // @public export interface ConfigurationStoresListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; } // @public @@ -169,7 +168,6 @@ export type ConfigurationStoresListDeletedResponse = DeletedConfigurationStoreLi // @public export interface ConfigurationStoresListKeysNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; } // @public @@ -185,7 +183,6 @@ export type ConfigurationStoresListKeysResponse = ApiKeyListResult; // @public export interface ConfigurationStoresListNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; } // @public @@ -348,7 +345,6 @@ export type KeyValuesGetResponse = KeyValue; // @public export interface KeyValuesListByConfigurationStoreNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; } // @public @@ -496,7 +492,6 @@ export type OperationsCheckNameAvailabilityResponse = NameAvailabilityStatus; // @public export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; } // @public diff --git a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts index 3ef74f98861e..70725486510c 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts @@ -62,7 +62,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-appconfiguration/3.1.1`; + const packageDetails = `azsdk-js-arm-appconfiguration/4.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts index bb6327b71e1f..2393a1499db1 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts @@ -882,30 +882,21 @@ export interface ConfigurationStoresPurgeDeletedOptionalParams /** Optional parameters. */ export interface ConfigurationStoresListNextOptionalParams - extends coreClient.OperationOptions { - /** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ - skipToken?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ConfigurationStoresListNextResponse = ConfigurationStoreListResult; /** Optional parameters. */ export interface ConfigurationStoresListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ - skipToken?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type ConfigurationStoresListByResourceGroupNextResponse = ConfigurationStoreListResult; /** Optional parameters. */ export interface ConfigurationStoresListKeysNextOptionalParams - extends coreClient.OperationOptions { - /** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ - skipToken?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listKeysNext operation. */ export type ConfigurationStoresListKeysNextResponse = ApiKeyListResult; @@ -943,10 +934,7 @@ export type OperationsRegionalCheckNameAvailabilityResponse = NameAvailabilitySt /** Optional parameters. */ export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions { - /** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ - skipToken?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type OperationsListNextResponse = OperationDefinitionListResult; @@ -1052,10 +1040,7 @@ export interface KeyValuesDeleteOptionalParams /** Optional parameters. */ export interface KeyValuesListByConfigurationStoreNextOptionalParams - extends coreClient.OperationOptions { - /** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ - skipToken?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByConfigurationStoreNext operation. */ export type KeyValuesListByConfigurationStoreNextResponse = KeyValueListResult; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts index f78605b5df4e..05fe0743297a 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts @@ -1128,7 +1128,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1148,7 +1147,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1169,7 +1167,6 @@ const listKeysNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1191,7 +1188,6 @@ const listDeletedNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts index 9e8faabac8d6..b624bf712d40 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts @@ -399,7 +399,6 @@ const listByConfigurationStoreNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts index a37295be9f9a..69f93998b5f8 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts @@ -224,7 +224,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts index 504cc232b2a5..1d581a0053b0 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts @@ -501,7 +501,6 @@ const listByConfigurationStoreNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts index 43d816aadc6b..d7df4f117d8f 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts @@ -235,7 +235,6 @@ const listByConfigurationStoreNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/appconfiguration/arm-appconfiguration/src/pagingHelper.ts b/sdk/appconfiguration/arm-appconfiguration/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/pagingHelper.ts +++ b/sdk/appconfiguration/arm-appconfiguration/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/appconfiguration/arm-appconfiguration/tsconfig.json b/sdk/appconfiguration/arm-appconfiguration/tsconfig.json index 5acec8550cbe..3e6ae96443f3 100644 --- a/sdk/appconfiguration/arm-appconfiguration/tsconfig.json +++ b/sdk/appconfiguration/arm-appconfiguration/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-appconfiguration": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"