Skip to content

Commit

Permalink
CodeGen from PR 18193 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 65898c1c672899037eff6da141b5a18b5180853a into 9aff6fbac1975af94f6a3bc415be84f67d3311ee
  • Loading branch information
SDKAuto committed Mar 15, 2022
1 parent a38203f commit ec13acf
Show file tree
Hide file tree
Showing 13 changed files with 422 additions and 43 deletions.
16 changes: 16 additions & 0 deletions sdk/redisenterprise/arm-redisenterprisecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Release History

## 2.1.0 (2022-03-15)

**Features**

- Added operation Databases.beginForceUnlink
- Added operation Databases.beginForceUnlinkAndWait
- Added Interface DatabasePropertiesGeoReplication
- Added Interface DatabasesForceUnlinkOptionalParams
- Added Interface ForceUnlinkParameters
- Added Interface LinkedDatabase
- Added Type Alias LinkState
- Interface DatabaseUpdate has a new optional parameter geoReplication
- Type Alias Database has a new parameter geoReplication
- Added Enum KnownLinkState


## 2.0.0 (2022-01-20)

The package of @azure/arm-redisenterprisecache is using our next generation design principles since version 2.0.0, which contains breaking changes.
Expand Down
7 changes: 4 additions & 3 deletions sdk/redisenterprise/arm-redisenterprisecache/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
"commit": "e7da1b7cefd3d42a4d97145ffe9e0336da08cea0",
"readme": "specification/redisenterprise/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:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true",
"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/redisenterprise/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.1.1",
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/redisenterprise/arm-redisenterprisecache/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-redisenterprisecache.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"
}
}
}
}
}
36 changes: 16 additions & 20 deletions sdk/redisenterprise/arm-redisenterprisecache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for RedisEnterpriseManagementClient.",
"version": "2.0.0",
"engines": { "node": ">=12.0.0" },
"version": "2.1.0",
"engines": {
"node": ">=12.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
Expand All @@ -14,7 +16,13 @@
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -41,7 +49,9 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand Down Expand Up @@ -88,19 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/RedisEnterpriseManagementClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": ["azure"],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-redisenterprisecache?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export type Database = ProxyResource & {
evictionPolicy?: EvictionPolicy;
persistence?: Persistence;
modules?: Module[];
geoReplication?: DatabasePropertiesGeoReplication;
};

// @public
Expand All @@ -78,6 +79,12 @@ export interface DatabaseList {
value?: Database[];
}

// @public
export interface DatabasePropertiesGeoReplication {
groupNickname?: string;
linkedDatabases?: LinkedDatabase[];
}

// @public
export interface Databases {
beginCreate(resourceGroupName: string, clusterName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOptionalParams): Promise<PollerLike<PollOperationState<DatabasesCreateResponse>, DatabasesCreateResponse>>;
Expand All @@ -86,6 +93,8 @@ export interface Databases {
beginDeleteAndWait(resourceGroupName: string, clusterName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<void>;
beginExport(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ExportClusterParameters, options?: DatabasesExportOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginExportAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ExportClusterParameters, options?: DatabasesExportOptionalParams): Promise<void>;
beginForceUnlink(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ForceUnlinkParameters, options?: DatabasesForceUnlinkOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginForceUnlinkAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ForceUnlinkParameters, options?: DatabasesForceUnlinkOptionalParams): Promise<void>;
beginImport(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ImportClusterParameters, options?: DatabasesImportOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginImportAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ImportClusterParameters, options?: DatabasesImportOptionalParams): Promise<void>;
beginRegenerateKey(resourceGroupName: string, clusterName: string, databaseName: string, parameters: RegenerateKeyParameters, options?: DatabasesRegenerateKeyOptionalParams): Promise<PollerLike<PollOperationState<DatabasesRegenerateKeyResponse>, DatabasesRegenerateKeyResponse>>;
Expand Down Expand Up @@ -118,6 +127,12 @@ export interface DatabasesExportOptionalParams extends coreClient.OperationOptio
updateIntervalInMs?: number;
}

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

// @public
export interface DatabasesGetOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -175,6 +190,7 @@ export interface DatabaseUpdate {
clientProtocol?: Protocol;
clusteringPolicy?: ClusteringPolicy;
evictionPolicy?: EvictionPolicy;
geoReplication?: DatabasePropertiesGeoReplication;
modules?: Module[];
persistence?: Persistence;
port?: number;
Expand Down Expand Up @@ -210,6 +226,11 @@ export interface ExportClusterParameters {
sasUri: string;
}

// @public
export interface ForceUnlinkParameters {
ids: string[];
}

// @public
export interface ImportClusterParameters {
sasUris: string[];
Expand Down Expand Up @@ -257,6 +278,20 @@ export enum KnownEvictionPolicy {
VolatileTTL = "VolatileTTL"
}

// @public
export enum KnownLinkState {
// (undocumented)
Linked = "Linked",
// (undocumented)
LinkFailed = "LinkFailed",
// (undocumented)
Linking = "Linking",
// (undocumented)
UnlinkFailed = "UnlinkFailed",
// (undocumented)
Unlinking = "Unlinking"
}

// @public
export enum KnownOrigin {
// (undocumented)
Expand Down Expand Up @@ -379,6 +414,15 @@ export enum KnownTlsVersion {
One2 = "1.2"
}

// @public
export interface LinkedDatabase {
id?: string;
readonly state?: LinkState;
}

// @public
export type LinkState = string;

// @public
export interface Module {
args?: string;
Expand Down
62 changes: 61 additions & 1 deletion sdk/redisenterprise/arm-redisenterprisecache/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export interface Persistence {
export interface Module {
/** The name of the module, e.g. 'RedisBloom', 'RediSearch', 'RedisTimeSeries' */
name: string;
/** Configuration options for the module, e.g. 'ERROR_RATE 0.00 INITIAL_SIZE 400'. */
/** Configuration options for the module, e.g. 'ERROR_RATE 0.01 INITIAL_SIZE 400'. */
args?: string;
/**
* The version of the module, e.g. '1.0'.
Expand All @@ -265,6 +265,25 @@ export interface Module {
readonly version?: string;
}

/** Optional set of properties to configure geo replication for this database. */
export interface DatabasePropertiesGeoReplication {
/** Name for the group of linked database resources */
groupNickname?: string;
/** List of database resources to link with this database */
linkedDatabases?: LinkedDatabase[];
}

/** Specifies details of a linked database resource. */
export interface LinkedDatabase {
/** Resource ID of a database resource to link with this database. */
id?: string;
/**
* State of the link between the database resources.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly state?: LinkState;
}

/** A partial update to the RedisEnterprise database */
export interface DatabaseUpdate {
/** Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. */
Expand All @@ -289,6 +308,8 @@ export interface DatabaseUpdate {
persistence?: Persistence;
/** Optional set of redis modules to enable in this database - modules can only be added at creation time. */
modules?: Module[];
/** Optional set of properties to configure geo replication for this database. */
geoReplication?: DatabasePropertiesGeoReplication;
}

/** The secret access keys used for authenticating connections to redis */
Expand Down Expand Up @@ -335,6 +356,12 @@ export interface PrivateLinkResourceListResult {
value?: PrivateLinkResource[];
}

/** Parameters for a Redis Enterprise Active Geo Replication Force Unlink operation. */
export interface ForceUnlinkParameters {
/** The resource IDs of the database resources to be unlinked. */
ids: string[];
}

/** The Private Endpoint Connection resource. */
export type PrivateEndpointConnection = Resource & {
/** The resource of private end point. */
Expand Down Expand Up @@ -434,6 +461,8 @@ export type Database = ProxyResource & {
persistence?: Persistence;
/** Optional set of redis modules to enable in this database - modules can only be added at creation time. */
modules?: Module[];
/** Optional set of properties to configure geo replication for this database. */
geoReplication?: DatabasePropertiesGeoReplication;
};

/** Known values of {@link Origin} that the service accepts. */
Expand Down Expand Up @@ -703,6 +732,28 @@ export enum KnownRdbFrequency {
* **12h**
*/
export type RdbFrequency = string;

/** Known values of {@link LinkState} that the service accepts. */
export enum KnownLinkState {
Linked = "Linked",
Linking = "Linking",
Unlinking = "Unlinking",
LinkFailed = "LinkFailed",
UnlinkFailed = "UnlinkFailed"
}

/**
* Defines values for LinkState. \
* {@link KnownLinkState} can be used interchangeably with LinkState,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Linked** \
* **Linking** \
* **Unlinking** \
* **LinkFailed** \
* **UnlinkFailed**
*/
export type LinkState = string;
/** Defines values for AccessKeyType. */
export type AccessKeyType = "Primary" | "Secondary";

Expand Down Expand Up @@ -879,6 +930,15 @@ export interface DatabasesExportOptionalParams
resumeFrom?: string;
}

/** Optional parameters. */
export interface DatabasesForceUnlinkOptionalParams
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 DatabasesListByClusterNextOptionalParams
extends coreClient.OperationOptions {}
Expand Down
Loading

0 comments on commit ec13acf

Please sign in to comment.