Skip to content

Commit

Permalink
CodeGen from PR 17444 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Azure App Configuration] Add 2021-10-01-preview version (Azure#17444)

* Add 2021-10-01 folder

* Update readme

* Remove wrong folder

* Add 2021-10-01-preview folder

* Update enum value
  • Loading branch information
SDKAuto committed Jan 24, 2022
1 parent 8b0a9ef commit ae3947e
Show file tree
Hide file tree
Showing 14 changed files with 704 additions and 33 deletions.
16 changes: 3 additions & 13 deletions sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# Release History

## 3.0.0-beta.2 (2022-01-24)

## 3.0.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 3.0.0-beta.1 (2022-01-11)

The package of @azure/arm-appconfiguration is using our next generation design principles since version 3.0.0-beta.1, which contains breaking changes.
The package of @azure/arm-appconfiguration is using our next generation design principles since version 3.0.0-beta.2, which contains breaking changes.

To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).

Expand Down
6 changes: 3 additions & 3 deletions sdk/appconfiguration/arm-appconfiguration/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "e6a2296d02ec6c4b2c32479198bfbcb9b16ea247",
"commit": "07a5e295f24eb5ee641cb6bec6bbbfa49d1c7b40",
"readme": "specification/appconfiguration/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md --use=@autorest/[email protected].20211217.1",
"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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].20211217.1"
"use": "@autorest/[email protected].20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/appconfiguration/arm-appconfiguration/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-appconfiguration.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
2 changes: 1 addition & 1 deletion sdk/appconfiguration/arm-appconfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export type ConfigurationStore = TrackedResource & {
readonly privateEndpointConnections?: PrivateEndpointConnectionReference[];
publicNetworkAccess?: PublicNetworkAccess;
disableLocalAuth?: boolean;
softDeleteRetentionInDays?: number;
enablePurgeProtection?: boolean;
createMode?: CreateMode;
};

// @public
Expand All @@ -92,11 +95,15 @@ export interface ConfigurationStores {
beginCreateAndWait(resourceGroupName: string, configStoreName: string, configStoreCreationParameters: ConfigurationStore, options?: ConfigurationStoresCreateOptionalParams): Promise<ConfigurationStoresCreateResponse>;
beginDelete(resourceGroupName: string, configStoreName: string, options?: ConfigurationStoresDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, configStoreName: string, options?: ConfigurationStoresDeleteOptionalParams): Promise<void>;
beginPurgeDeleted(location: string, configStoreName: string, options?: ConfigurationStoresPurgeDeletedOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginPurgeDeletedAndWait(location: string, configStoreName: string, options?: ConfigurationStoresPurgeDeletedOptionalParams): Promise<void>;
beginUpdate(resourceGroupName: string, configStoreName: string, configStoreUpdateParameters: ConfigurationStoreUpdateParameters, options?: ConfigurationStoresUpdateOptionalParams): Promise<PollerLike<PollOperationState<ConfigurationStoresUpdateResponse>, ConfigurationStoresUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, configStoreName: string, configStoreUpdateParameters: ConfigurationStoreUpdateParameters, options?: ConfigurationStoresUpdateOptionalParams): Promise<ConfigurationStoresUpdateResponse>;
get(resourceGroupName: string, configStoreName: string, options?: ConfigurationStoresGetOptionalParams): Promise<ConfigurationStoresGetResponse>;
getDeleted(location: string, configStoreName: string, options?: ConfigurationStoresGetDeletedOptionalParams): Promise<ConfigurationStoresGetDeletedResponse>;
list(options?: ConfigurationStoresListOptionalParams): PagedAsyncIterableIterator<ConfigurationStore>;
listByResourceGroup(resourceGroupName: string, options?: ConfigurationStoresListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ConfigurationStore>;
listDeleted(options?: ConfigurationStoresListDeletedOptionalParams): PagedAsyncIterableIterator<DeletedConfigurationStore>;
listKeys(resourceGroupName: string, configStoreName: string, options?: ConfigurationStoresListKeysOptionalParams): PagedAsyncIterableIterator<ApiKey>;
regenerateKey(resourceGroupName: string, configStoreName: string, regenerateKeyParameters: RegenerateKeyParameters, options?: ConfigurationStoresRegenerateKeyOptionalParams): Promise<ConfigurationStoresRegenerateKeyResponse>;
}
Expand All @@ -116,6 +123,13 @@ export interface ConfigurationStoresDeleteOptionalParams extends coreClient.Oper
updateIntervalInMs?: number;
}

// @public
export interface ConfigurationStoresGetDeletedOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ConfigurationStoresGetDeletedResponse = DeletedConfigurationStore;

// @public
export interface ConfigurationStoresGetOptionalParams extends coreClient.OperationOptions {
}
Expand All @@ -139,6 +153,20 @@ export interface ConfigurationStoresListByResourceGroupOptionalParams extends co
// @public
export type ConfigurationStoresListByResourceGroupResponse = ConfigurationStoreListResult;

// @public
export interface ConfigurationStoresListDeletedNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ConfigurationStoresListDeletedNextResponse = DeletedConfigurationStoreListResult;

// @public
export interface ConfigurationStoresListDeletedOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ConfigurationStoresListDeletedResponse = DeletedConfigurationStoreListResult;

// @public
export interface ConfigurationStoresListKeysNextOptionalParams extends coreClient.OperationOptions {
skipToken?: string;
Expand Down Expand Up @@ -171,6 +199,12 @@ export interface ConfigurationStoresListOptionalParams extends coreClient.Operat
// @public
export type ConfigurationStoresListResponse = ConfigurationStoreListResult;

// @public
export interface ConfigurationStoresPurgeDeletedOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export interface ConfigurationStoresRegenerateKeyOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -205,6 +239,30 @@ export type ConnectionStatus = string;
// @public
export type CreatedByType = string;

// @public
export type CreateMode = "Recover" | "Default";

// @public
export interface DeletedConfigurationStore {
readonly configurationStoreId?: string;
readonly deletionDate?: Date;
readonly id?: string;
readonly location?: string;
readonly name?: string;
readonly purgeProtectionEnabled?: boolean;
readonly scheduledPurgeDate?: Date;
readonly tags?: {
[propertyName: string]: string;
};
readonly type?: string;
}

// @public
export interface DeletedConfigurationStoreListResult {
nextLink?: string;
value?: DeletedConfigurationStore[];
}

// @public
export interface EncryptionProperties {
keyVaultProperties?: KeyVaultProperties;
Expand Down Expand Up @@ -445,6 +503,7 @@ export interface OperationProperties {
export interface Operations {
checkNameAvailability(checkNameAvailabilityParameters: CheckNameAvailabilityParameters, options?: OperationsCheckNameAvailabilityOptionalParams): Promise<OperationsCheckNameAvailabilityResponse>;
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationDefinition>;
regionalCheckNameAvailability(location: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, options?: OperationsRegionalCheckNameAvailabilityOptionalParams): Promise<OperationsRegionalCheckNameAvailabilityResponse>;
}

// @public
Expand All @@ -470,6 +529,13 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption
// @public
export type OperationsListResponse = OperationDefinitionListResult;

// @public
export interface OperationsRegionalCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {
}

// @public
export type OperationsRegionalCheckNameAvailabilityResponse = NameAvailabilityStatus;

// @public
export interface PrivateEndpoint {
id?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-appconfiguration/3.0.0-beta.1`;
const packageDetails = `azsdk-js-arm-appconfiguration/3.0.0-beta.2`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -79,7 +79,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-03-01-preview";
this.apiVersion = options.apiVersion || "2021-10-01-preview";
this.configurationStores = new ConfigurationStoresImpl(this);
this.operations = new OperationsImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
Expand Down
102 changes: 102 additions & 0 deletions sdk/appconfiguration/arm-appconfiguration/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,63 @@ export interface KeyValue {
tags?: { [propertyName: string]: string };
}

/** List of deleted configuration stores */
export interface DeletedConfigurationStoreListResult {
/** The list of deleted configuration store. */
value?: DeletedConfigurationStore[];
/** The URL to get the next set of deleted configuration stores. */
nextLink?: string;
}

/** Deleted configuration store information with extended details. */
export interface DeletedConfigurationStore {
/**
* The resource ID for the deleted configuration store.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* The name of the configuration store.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* The resource type of the configuration store.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/**
* The resource id of the original configuration store.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly configurationStoreId?: string;
/**
* The location of the original configuration store.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly location?: string;
/**
* The deleted date.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly deletionDate?: Date;
/**
* The scheduled purged date.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly scheduledPurgeDate?: Date;
/**
* Tags of the original configuration store.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tags?: { [propertyName: string]: string };
/**
* Purge protection status of the original configuration store.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly purgeProtectionEnabled?: boolean;
}

/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
export type TrackedResource = Resource & {
/** Resource tags. */
Expand Down Expand Up @@ -558,6 +615,12 @@ export type ConfigurationStore = TrackedResource & {
publicNetworkAccess?: PublicNetworkAccess;
/** Disables all authentication methods other than AAD authentication. */
disableLocalAuth?: boolean;
/** The amount of time in days that the configuration store will be retained when it is soft deleted. */
softDeleteRetentionInDays?: number;
/** Property specifying whether protection against purge is enabled for this configuration store. */
enablePurgeProtection?: boolean;
/** Indicates whether the configuration store need to be recovered. */
createMode?: CreateMode;
};

/** Known values of {@link IdentityType} that the service accepts. */
Expand Down Expand Up @@ -689,6 +752,8 @@ export enum KnownConfigurationResourceType {
* **Microsoft.AppConfiguration\/configurationStores**
*/
export type ConfigurationResourceType = string;
/** Defines values for CreateMode. */
export type CreateMode = "Recover" | "Default";

/** Optional parameters. */
export interface ConfigurationStoresListOptionalParams
Expand Down Expand Up @@ -767,6 +832,29 @@ export interface ConfigurationStoresRegenerateKeyOptionalParams
/** Contains response data for the regenerateKey operation. */
export type ConfigurationStoresRegenerateKeyResponse = ApiKey;

/** Optional parameters. */
export interface ConfigurationStoresListDeletedOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listDeleted operation. */
export type ConfigurationStoresListDeletedResponse = DeletedConfigurationStoreListResult;

/** Optional parameters. */
export interface ConfigurationStoresGetDeletedOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the getDeleted operation. */
export type ConfigurationStoresGetDeletedResponse = DeletedConfigurationStore;

/** Optional parameters. */
export interface ConfigurationStoresPurgeDeletedOptionalParams
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;
}

/** Optional parameters. */
export interface ConfigurationStoresListNextOptionalParams
extends coreClient.OperationOptions {
Expand Down Expand Up @@ -797,6 +885,13 @@ export interface ConfigurationStoresListKeysNextOptionalParams
/** Contains response data for the listKeysNext operation. */
export type ConfigurationStoresListKeysNextResponse = ApiKeyListResult;

/** Optional parameters. */
export interface ConfigurationStoresListDeletedNextOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listDeletedNext operation. */
export type ConfigurationStoresListDeletedNextResponse = DeletedConfigurationStoreListResult;

/** Optional parameters. */
export interface OperationsCheckNameAvailabilityOptionalParams
extends coreClient.OperationOptions {}
Expand All @@ -814,6 +909,13 @@ export interface OperationsListOptionalParams
/** Contains response data for the list operation. */
export type OperationsListResponse = OperationDefinitionListResult;

/** Optional parameters. */
export interface OperationsRegionalCheckNameAvailabilityOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the regionalCheckNameAvailability operation. */
export type OperationsRegionalCheckNameAvailabilityResponse = NameAvailabilityStatus;

/** Optional parameters. */
export interface OperationsListNextOptionalParams
extends coreClient.OperationOptions {
Expand Down
Loading

0 comments on commit ae3947e

Please sign in to comment.