Skip to content

Commit 0ad00f7

Browse files
authored
redis-release (Azure#20683)
* redis-release * update
1 parent a38203f commit 0ad00f7

File tree

189 files changed

+9051
-1964
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+9051
-1964
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 2136 additions & 1849 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/redis/arm-rediscache/CHANGELOG.md

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
# Release History
2-
3-
## 6.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
2+
3+
## 6.1.0 (2022-03-07)
4+
5+
**Features**
6+
7+
- Added operation group AsyncOperationStatus
8+
- Added Interface AsyncOperationStatusGetOptionalParams
9+
- Added Interface ErrorDetailAutoGenerated
10+
- Added Interface ManagedServiceIdentity
11+
- Added Interface OperationStatusResult
12+
- Added Interface UserAssignedIdentity
13+
- Added Type Alias AsyncOperationStatusGetResponse
14+
- Added Type Alias ManagedServiceIdentityType
15+
- Added Type Alias OperationStatus
16+
- Interface RedisCommonPropertiesRedisConfiguration has a new optional parameter preferredDataArchiveAuthMethod
17+
- Interface RedisCommonPropertiesRedisConfiguration has a new optional parameter preferredDataPersistenceAuthMethod
18+
- Interface RedisCommonPropertiesRedisConfiguration has a new optional parameter zonalConfiguration
19+
- Interface RedisCreateParameters has a new optional parameter identity
20+
- Interface RedisUpdateParameters has a new optional parameter identity
21+
- Class RedisManagementClient has a new parameter asyncOperationStatus
22+
- Type Alias RedisPatchSchedule has a new parameter location
23+
- Type Alias RedisResource has a new parameter identity
24+
- Added Enum KnownManagedServiceIdentityType
25+
26+
1327
## 6.0.0 (2021-12-10)
1428

1529
The package of @azure/arm-rediscache is using our next generation design principles since version 6.0.0, which contains breaking changes.

sdk/redis/arm-rediscache/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Microsoft
3+
Copyright (c) 2022 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/redis/arm-rediscache/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ REST API for Azure Redis Cache Service.
1616
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
1717
- Latest versions of Safari, Chrome, Edge and Firefox.
1818

19+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20+
1921
### Prerequisites
2022

2123
- An [Azure subscription][azure_sub].
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
4951
```javascript
5052
const { RedisManagementClient } = require("@azure/arm-rediscache");
5153
const { DefaultAzureCredential } = require("@azure/identity");
54+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55+
5256
const subscriptionId = "00000000-0000-0000-0000-000000000000";
5357
const client = new RedisManagementClient(new DefaultAzureCredential(), subscriptionId);
58+
59+
// For client-side applications running in the browser, use this code instead:
60+
// const credential = new InteractiveBrowserCredential({
61+
// tenantId: "<YOUR_TENANT_ID>",
62+
// clientId: "<YOUR_CLIENT_ID>"
63+
// });
64+
// const client = new RedisManagementClient(credential, subscriptionId);
5465
```
5566

5667

sdk/redis/arm-rediscache/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "76f8e0c50629ef12aa338d55782278ceca46212a",
2+
"commit": "20d333fa60a4a81acfd01a7bd56dd9c552301afe",
33
"readme": "specification/redis/resource-manager/readme.md",
4-
"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/redis/resource-manager/readme.md --use=@autorest/[email protected]alpha.16.20211130.1",
4+
"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\\redis\\resource-manager\\readme.md --use=@autorest/[email protected]beta.16 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected]alpha.16.20211130.1"
6+
"use": "@autorest/[email protected]beta.16"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-rediscache.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/redis/arm-rediscache/package.json

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for RedisManagementClient.",
6-
"version": "6.0.1",
6+
"version": "6.1.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -30,12 +30,12 @@
3030
"devDependencies": {
3131
"@microsoft/api-extractor": "^7.18.11",
3232
"@rollup/plugin-commonjs": "^21.0.1",
33-
"@rollup/plugin-json": "^4.0.0",
34-
"@rollup/plugin-multi-entry": "^3.0.0",
35-
"@rollup/plugin-node-resolve": "^8.0.0",
33+
"@rollup/plugin-json": "^4.1.0",
34+
"@rollup/plugin-multi-entry": "^4.1.0",
35+
"@rollup/plugin-node-resolve": "^13.1.3",
3636
"mkdirp": "^1.0.4",
37-
"rollup": "^2.0.0",
38-
"rollup-plugin-sourcemaps": "^0.4.2",
37+
"rollup": "^2.66.1",
38+
"rollup-plugin-sourcemaps": "^0.6.3",
3939
"typescript": "~4.2.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
@@ -99,5 +99,21 @@
9999
"docs": "echo skipped"
100100
},
101101
"sideEffects": false,
102-
"autoPublish": true
102+
"//metadata": {
103+
"constantPaths": [
104+
{
105+
"path": "src/redisManagementClient.ts",
106+
"prefix": "packageDetails"
107+
}
108+
]
109+
},
110+
"autoPublish": true,
111+
"//sampleConfiguration": {
112+
"productName": "",
113+
"productSlugs": [
114+
"azure"
115+
],
116+
"disableDocsMs": true,
117+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-rediscache?view=azure-node-preview"
118+
}
103119
}

sdk/redis/arm-rediscache/review/arm-rediscache.api.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
1010
import { PollerLike } from '@azure/core-lro';
1111
import { PollOperationState } from '@azure/core-lro';
1212

13+
// @public
14+
export interface AsyncOperationStatus {
15+
get(location: string, operationId: string, options?: AsyncOperationStatusGetOptionalParams): Promise<AsyncOperationStatusGetResponse>;
16+
}
17+
18+
// @public
19+
export interface AsyncOperationStatusGetOptionalParams extends coreClient.OperationOptions {
20+
}
21+
22+
// @public
23+
export type AsyncOperationStatusGetResponse = OperationStatus;
24+
1325
// @public
1426
export interface CheckNameAvailabilityParameters {
1527
name: string;
@@ -37,6 +49,15 @@ export interface ErrorDetail {
3749
readonly target?: string;
3850
}
3951

52+
// @public
53+
export interface ErrorDetailAutoGenerated {
54+
readonly additionalInfo?: ErrorAdditionalInfo[];
55+
readonly code?: string;
56+
readonly details?: ErrorDetailAutoGenerated[];
57+
readonly message?: string;
58+
readonly target?: string;
59+
}
60+
4061
// @public
4162
export interface ErrorResponse {
4263
error?: ErrorDetail;
@@ -101,6 +122,18 @@ export enum KnownDefaultName {
101122
Default = "default"
102123
}
103124

125+
// @public
126+
export enum KnownManagedServiceIdentityType {
127+
// (undocumented)
128+
None = "None",
129+
// (undocumented)
130+
SystemAssigned = "SystemAssigned",
131+
// (undocumented)
132+
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
133+
// (undocumented)
134+
UserAssigned = "UserAssigned"
135+
}
136+
104137
// @public
105138
export enum KnownPrivateEndpointConnectionProvisioningState {
106139
// (undocumented)
@@ -240,6 +273,19 @@ export interface LinkedServerListOptionalParams extends coreClient.OperationOpti
240273
// @public
241274
export type LinkedServerListResponse = RedisLinkedServerWithPropertiesList;
242275

276+
// @public
277+
export interface ManagedServiceIdentity {
278+
readonly principalId?: string;
279+
readonly tenantId?: string;
280+
type: ManagedServiceIdentityType;
281+
userAssignedIdentities?: {
282+
[propertyName: string]: UserAssignedIdentity;
283+
};
284+
}
285+
286+
// @public
287+
export type ManagedServiceIdentityType = string;
288+
243289
// @public
244290
export interface NotificationListResponse {
245291
readonly nextLink?: string;
@@ -285,6 +331,25 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption
285331
// @public
286332
export type OperationsListResponse = OperationListResult;
287333

334+
// @public
335+
export type OperationStatus = OperationStatusResult & {
336+
properties?: {
337+
[propertyName: string]: any;
338+
};
339+
};
340+
341+
// @public
342+
export interface OperationStatusResult {
343+
endTime?: Date;
344+
error?: ErrorDetailAutoGenerated;
345+
id?: string;
346+
name?: string;
347+
operations?: OperationStatusResult[];
348+
percentComplete?: number;
349+
startTime?: Date;
350+
status: string;
351+
}
352+
288353
// @public
289354
export interface PatchSchedules {
290355
createOrUpdate(resourceGroupName: string, name: string, parameters: RedisPatchSchedule, defaultParam: DefaultName, options?: PatchSchedulesCreateOrUpdateOptionalParams): Promise<PatchSchedulesCreateOrUpdateResponse>;
@@ -483,10 +548,13 @@ export interface RedisCommonPropertiesRedisConfiguration {
483548
maxmemoryDelta?: string;
484549
maxmemoryPolicy?: string;
485550
maxmemoryReserved?: string;
551+
readonly preferredDataArchiveAuthMethod?: string;
552+
readonly preferredDataPersistenceAuthMethod?: string;
486553
rdbBackupEnabled?: string;
487554
rdbBackupFrequency?: string;
488555
rdbBackupMaxSnapshotCount?: string;
489556
rdbStorageConnectionString?: string;
557+
readonly zonalConfiguration?: string;
490558
}
491559

492560
// @public
@@ -498,6 +566,7 @@ export interface RedisCreateOptionalParams extends coreClient.OperationOptions {
498566
// @public
499567
export interface RedisCreateParameters {
500568
enableNonSslPort?: boolean;
569+
identity?: ManagedServiceIdentity;
501570
location: string;
502571
minimumTlsVersion?: TlsVersion;
503572
publicNetworkAccess?: PublicNetworkAccess;
@@ -694,6 +763,8 @@ export class RedisManagementClient extends coreClient.ServiceClient {
694763
// (undocumented)
695764
apiVersion: string;
696765
// (undocumented)
766+
asyncOperationStatus: AsyncOperationStatus;
767+
// (undocumented)
697768
firewallRules: FirewallRules;
698769
// (undocumented)
699770
linkedServer: LinkedServer;
@@ -720,6 +791,7 @@ export interface RedisManagementClientOptionalParams extends coreClient.ServiceC
720791

721792
// @public
722793
export type RedisPatchSchedule = ProxyResource & {
794+
readonly location?: string;
723795
scheduleEntries: ScheduleEntry[];
724796
};
725797

@@ -763,6 +835,7 @@ export type RedisRegenerateKeyResponse = RedisAccessKeys;
763835
// @public
764836
export type RedisResource = TrackedResource & {
765837
zones?: string[];
838+
identity?: ManagedServiceIdentity;
766839
redisConfiguration?: RedisCommonPropertiesRedisConfiguration;
767840
redisVersion?: string;
768841
enableNonSslPort?: boolean;
@@ -794,6 +867,7 @@ export interface RedisUpdateOptionalParams extends coreClient.OperationOptions {
794867
// @public
795868
export interface RedisUpdateParameters {
796869
enableNonSslPort?: boolean;
870+
identity?: ManagedServiceIdentity;
797871
minimumTlsVersion?: TlsVersion;
798872
publicNetworkAccess?: PublicNetworkAccess;
799873
redisConfiguration?: RedisCommonPropertiesRedisConfiguration;
@@ -868,6 +942,12 @@ export interface UpgradeNotification {
868942
};
869943
}
870944

945+
// @public
946+
export interface UserAssignedIdentity {
947+
readonly clientId?: string;
948+
readonly principalId?: string;
949+
}
950+
871951
// (No @packageDocumentation comment for this package)
872952

873953
```

0 commit comments

Comments
 (0)