diff --git a/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md index 21be22ad5004..dc34069ab221 100644 --- a/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md @@ -1,15 +1,13 @@ # Release History - -## 3.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 3.1.0 (2022-09-07) + +**Features** + + - Added Interface ConfigurationStore + - Added Interface TrackedResource + + ## 3.0.0 (2022-06-10) The package of @azure/arm-appconfiguration is using our next generation design principles since version 3.0.0, which contains breaking changes. diff --git a/sdk/appconfiguration/arm-appconfiguration/_meta.json b/sdk/appconfiguration/arm-appconfiguration/_meta.json index d4c372af65ec..a8f3a5608c64 100644 --- a/sdk/appconfiguration/arm-appconfiguration/_meta.json +++ b/sdk/appconfiguration/arm-appconfiguration/_meta.json @@ -1,8 +1,8 @@ { - "commit": "60cd4dbca5214118b763d1edc835a44c8386283a", + "commit": "80545c8e32120a863b0eb76f2406ad9675a17cc3", "readme": "specification/appconfiguration/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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-beta.20 --generate-sample=true", + "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=/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.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", - "use": "@autorest/typescript@6.0.0-beta.20" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", + "use": "@autorest/typescript@6.0.0-rc.1" } \ No newline at end of file diff --git a/sdk/appconfiguration/arm-appconfiguration/package.json b/sdk/appconfiguration/arm-appconfiguration/package.json index a2314fbbc6fd..64a827929f7f 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.0.1", + "version": "3.1.0", "engines": { "node": ">=12.0.0" }, @@ -98,8 +98,7 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -110,13 +109,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 6f74b8126b59..186bc3f4b057 100644 --- a/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md +++ b/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md @@ -67,21 +67,21 @@ export interface CheckNameAvailabilityParameters { export type ConfigurationResourceType = string; // @public -export type ConfigurationStore = TrackedResource & { - identity?: ResourceIdentity; - sku: Sku; - readonly systemData?: SystemData; - readonly provisioningState?: ProvisioningState; +export interface ConfigurationStore extends TrackedResource { + createMode?: CreateMode; readonly creationDate?: Date; - readonly endpoint?: string; + disableLocalAuth?: boolean; + enablePurgeProtection?: boolean; encryption?: EncryptionProperties; + readonly endpoint?: string; + identity?: ResourceIdentity; readonly privateEndpointConnections?: PrivateEndpointConnectionReference[]; + readonly provisioningState?: ProvisioningState; publicNetworkAccess?: PublicNetworkAccess; - disableLocalAuth?: boolean; + sku: Sku; softDeleteRetentionInDays?: number; - enablePurgeProtection?: boolean; - createMode?: CreateMode; -}; + readonly systemData?: SystemData; +} // @public export interface ConfigurationStoreListResult { @@ -367,75 +367,52 @@ export interface KeyVaultProperties { // @public export enum KnownActionsRequired { - // (undocumented) None = "None", - // (undocumented) Recreate = "Recreate" } // @public export enum KnownConfigurationResourceType { - // (undocumented) MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores" } // @public export enum KnownConnectionStatus { - // (undocumented) Approved = "Approved", - // (undocumented) Disconnected = "Disconnected", - // (undocumented) Pending = "Pending", - // (undocumented) Rejected = "Rejected" } // @public export enum KnownCreatedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } // @public export enum KnownIdentityType { - // (undocumented) None = "None", - // (undocumented) SystemAssigned = "SystemAssigned", - // (undocumented) SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", - // (undocumented) UserAssigned = "UserAssigned" } // @public export enum KnownProvisioningState { - // (undocumented) Canceled = "Canceled", - // (undocumented) Creating = "Creating", - // (undocumented) Deleting = "Deleting", - // (undocumented) Failed = "Failed", - // (undocumented) Succeeded = "Succeeded", - // (undocumented) Updating = "Updating" } // @public export enum KnownPublicNetworkAccess { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } @@ -714,12 +691,12 @@ export interface SystemData { } // @public -export type TrackedResource = Resource & { +export interface TrackedResource extends Resource { + location: string; tags?: { [propertyName: string]: string; }; - location: string; -}; +} // @public export interface UserIdentity { diff --git a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts index 833252b6aca3..5f3fb63d1f4f 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.0.1`; + const packageDetails = `azsdk-js-arm-appconfiguration/3.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -133,7 +133,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { if (param.length > 1) { const newParams = param[1].split("&").map((item) => { if (item.indexOf("api-version") > -1) { - return item.replace(/(?<==).*$/, apiVersion); + return "api-version=" + apiVersion; } else { return item; } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts index 7239a342e6ef..bb6327b71e1f 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts @@ -573,15 +573,15 @@ export interface DeletedConfigurationStore { } /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export type TrackedResource = Resource & { +export interface TrackedResource extends Resource { /** Resource tags. */ tags?: { [propertyName: string]: string }; /** The geo-location where the resource lives */ location: string; -}; +} /** The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it. */ -export type ConfigurationStore = TrackedResource & { +export interface ConfigurationStore extends TrackedResource { /** The managed identity information, if configured. */ identity?: ResourceIdentity; /** The sku of the configuration store. */ @@ -623,13 +623,17 @@ export type ConfigurationStore = TrackedResource & { enablePurgeProtection?: boolean; /** Indicates whether the configuration store need to be recovered. */ createMode?: CreateMode; -}; +} /** Known values of {@link IdentityType} that the service accepts. */ export enum KnownIdentityType { + /** None */ None = "None", + /** SystemAssigned */ SystemAssigned = "SystemAssigned", + /** UserAssigned */ UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned" } @@ -647,11 +651,17 @@ export type IdentityType = string; /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { + /** Creating */ Creating = "Creating", + /** Updating */ Updating = "Updating", + /** Deleting */ Deleting = "Deleting", + /** Succeeded */ Succeeded = "Succeeded", + /** Failed */ Failed = "Failed", + /** Canceled */ Canceled = "Canceled" } @@ -671,9 +681,13 @@ export type ProvisioningState = string; /** Known values of {@link ConnectionStatus} that the service accepts. */ export enum KnownConnectionStatus { + /** Pending */ Pending = "Pending", + /** Approved */ Approved = "Approved", + /** Rejected */ Rejected = "Rejected", + /** Disconnected */ Disconnected = "Disconnected" } @@ -691,7 +705,9 @@ export type ConnectionStatus = string; /** Known values of {@link ActionsRequired} that the service accepts. */ export enum KnownActionsRequired { + /** None */ None = "None", + /** Recreate */ Recreate = "Recreate" } @@ -707,7 +723,9 @@ export type ActionsRequired = string; /** Known values of {@link PublicNetworkAccess} that the service accepts. */ export enum KnownPublicNetworkAccess { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -723,9 +741,13 @@ export type PublicNetworkAccess = string; /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { + /** User */ User = "User", + /** Application */ Application = "Application", + /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", + /** Key */ Key = "Key" } @@ -743,6 +765,7 @@ export type CreatedByType = string; /** Known values of {@link ConfigurationResourceType} that the service accepts. */ export enum KnownConfigurationResourceType { + /** MicrosoftAppConfigurationConfigurationStores */ MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores" } 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"