@azure/arm-redisenterprisecache 2.1.1-alpha.20221128.1 → 2.2.0-alpha.20221214.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -10
- package/dist/index.js +245 -49
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +73 -11
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +61 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +6 -0
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +19 -8
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/operationsStatus.d.ts +2 -2
- package/dist-esm/src/operations/operationsStatus.js +2 -2
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +8 -4
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.js +37 -16
- package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/operationsStatus.d.ts +2 -2
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts +2 -0
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
- package/dist-esm/src/redisEnterpriseManagementClient.js +54 -6
- package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +13 -9
- package/review/arm-redisenterprisecache.api.md +26 -83
- package/src/index.ts +1 -0
- package/src/models/index.ts +72 -11
- package/src/models/parameters.ts +6 -0
- package/src/operations/databases.ts +26 -13
- package/src/operations/operations.ts +21 -9
- package/src/operations/operationsStatus.ts +2 -2
- package/src/operations/privateEndpointConnections.ts +15 -5
- package/src/operations/privateLinkResources.ts +11 -9
- package/src/operations/redisEnterprise.ts +46 -19
- package/src/operationsInterfaces/operationsStatus.ts +2 -2
- package/src/pagingHelper.ts +39 -0
- package/src/redisEnterpriseManagementClient.ts +69 -5
- package/types/arm-redisenterprisecache.d.ts +86 -13
package/src/models/index.ts
CHANGED
|
@@ -363,7 +363,7 @@ export interface ForceUnlinkParameters {
|
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
/** The Private Endpoint Connection resource. */
|
|
366
|
-
export
|
|
366
|
+
export interface PrivateEndpointConnection extends Resource {
|
|
367
367
|
/** The resource of private end point. */
|
|
368
368
|
privateEndpoint?: PrivateEndpoint;
|
|
369
369
|
/** A collection of information about the state of the connection between service consumer and provider. */
|
|
@@ -373,21 +373,21 @@ export type PrivateEndpointConnection = Resource & {
|
|
|
373
373
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
374
374
|
*/
|
|
375
375
|
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
|
376
|
-
}
|
|
376
|
+
}
|
|
377
377
|
|
|
378
378
|
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
|
379
|
-
export
|
|
379
|
+
export interface TrackedResource extends Resource {
|
|
380
380
|
/** Resource tags. */
|
|
381
381
|
tags?: { [propertyName: string]: string };
|
|
382
382
|
/** The geo-location where the resource lives */
|
|
383
383
|
location: string;
|
|
384
|
-
}
|
|
384
|
+
}
|
|
385
385
|
|
|
386
386
|
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
387
|
-
export
|
|
387
|
+
export interface ProxyResource extends Resource {}
|
|
388
388
|
|
|
389
389
|
/** A private link resource */
|
|
390
|
-
export
|
|
390
|
+
export interface PrivateLinkResource extends Resource {
|
|
391
391
|
/**
|
|
392
392
|
* The private link resource group id.
|
|
393
393
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -400,10 +400,10 @@ export type PrivateLinkResource = Resource & {
|
|
|
400
400
|
readonly requiredMembers?: string[];
|
|
401
401
|
/** The private link resource Private link DNS zone name. */
|
|
402
402
|
requiredZoneNames?: string[];
|
|
403
|
-
}
|
|
403
|
+
}
|
|
404
404
|
|
|
405
405
|
/** Describes the RedisEnterprise cluster */
|
|
406
|
-
export
|
|
406
|
+
export interface Cluster extends TrackedResource {
|
|
407
407
|
/** The SKU to create, which affects price, performance, and features. */
|
|
408
408
|
sku: Sku;
|
|
409
409
|
/** The Availability Zones where this cluster will be deployed. */
|
|
@@ -435,10 +435,10 @@ export type Cluster = TrackedResource & {
|
|
|
435
435
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
436
436
|
*/
|
|
437
437
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
438
|
-
}
|
|
438
|
+
}
|
|
439
439
|
|
|
440
440
|
/** Describes a database on the RedisEnterprise cluster */
|
|
441
|
-
export
|
|
441
|
+
export interface Database extends ProxyResource {
|
|
442
442
|
/** Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. */
|
|
443
443
|
clientProtocol?: Protocol;
|
|
444
444
|
/** TCP port of the database endpoint. Specified at create time. Defaults to an available port. */
|
|
@@ -463,12 +463,15 @@ export type Database = ProxyResource & {
|
|
|
463
463
|
modules?: Module[];
|
|
464
464
|
/** Optional set of properties to configure geo replication for this database. */
|
|
465
465
|
geoReplication?: DatabasePropertiesGeoReplication;
|
|
466
|
-
}
|
|
466
|
+
}
|
|
467
467
|
|
|
468
468
|
/** Known values of {@link Origin} that the service accepts. */
|
|
469
469
|
export enum KnownOrigin {
|
|
470
|
+
/** User */
|
|
470
471
|
User = "user",
|
|
472
|
+
/** System */
|
|
471
473
|
System = "system",
|
|
474
|
+
/** UserSystem */
|
|
472
475
|
UserSystem = "user,system"
|
|
473
476
|
}
|
|
474
477
|
|
|
@@ -485,6 +488,7 @@ export type Origin = string;
|
|
|
485
488
|
|
|
486
489
|
/** Known values of {@link ActionType} that the service accepts. */
|
|
487
490
|
export enum KnownActionType {
|
|
491
|
+
/** Internal */
|
|
488
492
|
Internal = "Internal"
|
|
489
493
|
}
|
|
490
494
|
|
|
@@ -499,12 +503,19 @@ export type ActionType = string;
|
|
|
499
503
|
|
|
500
504
|
/** Known values of {@link SkuName} that the service accepts. */
|
|
501
505
|
export enum KnownSkuName {
|
|
506
|
+
/** EnterpriseE10 */
|
|
502
507
|
EnterpriseE10 = "Enterprise_E10",
|
|
508
|
+
/** EnterpriseE20 */
|
|
503
509
|
EnterpriseE20 = "Enterprise_E20",
|
|
510
|
+
/** EnterpriseE50 */
|
|
504
511
|
EnterpriseE50 = "Enterprise_E50",
|
|
512
|
+
/** EnterpriseE100 */
|
|
505
513
|
EnterpriseE100 = "Enterprise_E100",
|
|
514
|
+
/** EnterpriseFlashF300 */
|
|
506
515
|
EnterpriseFlashF300 = "EnterpriseFlash_F300",
|
|
516
|
+
/** EnterpriseFlashF700 */
|
|
507
517
|
EnterpriseFlashF700 = "EnterpriseFlash_F700",
|
|
518
|
+
/** EnterpriseFlashF1500 */
|
|
508
519
|
EnterpriseFlashF1500 = "EnterpriseFlash_F1500"
|
|
509
520
|
}
|
|
510
521
|
|
|
@@ -525,8 +536,11 @@ export type SkuName = string;
|
|
|
525
536
|
|
|
526
537
|
/** Known values of {@link TlsVersion} that the service accepts. */
|
|
527
538
|
export enum KnownTlsVersion {
|
|
539
|
+
/** One0 */
|
|
528
540
|
One0 = "1.0",
|
|
541
|
+
/** One1 */
|
|
529
542
|
One1 = "1.1",
|
|
543
|
+
/** One2 */
|
|
530
544
|
One2 = "1.2"
|
|
531
545
|
}
|
|
532
546
|
|
|
@@ -543,11 +557,17 @@ export type TlsVersion = string;
|
|
|
543
557
|
|
|
544
558
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
545
559
|
export enum KnownProvisioningState {
|
|
560
|
+
/** Succeeded */
|
|
546
561
|
Succeeded = "Succeeded",
|
|
562
|
+
/** Failed */
|
|
547
563
|
Failed = "Failed",
|
|
564
|
+
/** Canceled */
|
|
548
565
|
Canceled = "Canceled",
|
|
566
|
+
/** Creating */
|
|
549
567
|
Creating = "Creating",
|
|
568
|
+
/** Updating */
|
|
550
569
|
Updating = "Updating",
|
|
570
|
+
/** Deleting */
|
|
551
571
|
Deleting = "Deleting"
|
|
552
572
|
}
|
|
553
573
|
|
|
@@ -567,17 +587,29 @@ export type ProvisioningState = string;
|
|
|
567
587
|
|
|
568
588
|
/** Known values of {@link ResourceState} that the service accepts. */
|
|
569
589
|
export enum KnownResourceState {
|
|
590
|
+
/** Running */
|
|
570
591
|
Running = "Running",
|
|
592
|
+
/** Creating */
|
|
571
593
|
Creating = "Creating",
|
|
594
|
+
/** CreateFailed */
|
|
572
595
|
CreateFailed = "CreateFailed",
|
|
596
|
+
/** Updating */
|
|
573
597
|
Updating = "Updating",
|
|
598
|
+
/** UpdateFailed */
|
|
574
599
|
UpdateFailed = "UpdateFailed",
|
|
600
|
+
/** Deleting */
|
|
575
601
|
Deleting = "Deleting",
|
|
602
|
+
/** DeleteFailed */
|
|
576
603
|
DeleteFailed = "DeleteFailed",
|
|
604
|
+
/** Enabling */
|
|
577
605
|
Enabling = "Enabling",
|
|
606
|
+
/** EnableFailed */
|
|
578
607
|
EnableFailed = "EnableFailed",
|
|
608
|
+
/** Disabling */
|
|
579
609
|
Disabling = "Disabling",
|
|
610
|
+
/** DisableFailed */
|
|
580
611
|
DisableFailed = "DisableFailed",
|
|
612
|
+
/** Disabled */
|
|
581
613
|
Disabled = "Disabled"
|
|
582
614
|
}
|
|
583
615
|
|
|
@@ -603,8 +635,11 @@ export type ResourceState = string;
|
|
|
603
635
|
|
|
604
636
|
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
605
637
|
export enum KnownPrivateEndpointServiceConnectionStatus {
|
|
638
|
+
/** Pending */
|
|
606
639
|
Pending = "Pending",
|
|
640
|
+
/** Approved */
|
|
607
641
|
Approved = "Approved",
|
|
642
|
+
/** Rejected */
|
|
608
643
|
Rejected = "Rejected"
|
|
609
644
|
}
|
|
610
645
|
|
|
@@ -621,9 +656,13 @@ export type PrivateEndpointServiceConnectionStatus = string;
|
|
|
621
656
|
|
|
622
657
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
623
658
|
export enum KnownPrivateEndpointConnectionProvisioningState {
|
|
659
|
+
/** Succeeded */
|
|
624
660
|
Succeeded = "Succeeded",
|
|
661
|
+
/** Creating */
|
|
625
662
|
Creating = "Creating",
|
|
663
|
+
/** Deleting */
|
|
626
664
|
Deleting = "Deleting",
|
|
665
|
+
/** Failed */
|
|
627
666
|
Failed = "Failed"
|
|
628
667
|
}
|
|
629
668
|
|
|
@@ -641,7 +680,9 @@ export type PrivateEndpointConnectionProvisioningState = string;
|
|
|
641
680
|
|
|
642
681
|
/** Known values of {@link Protocol} that the service accepts. */
|
|
643
682
|
export enum KnownProtocol {
|
|
683
|
+
/** Encrypted */
|
|
644
684
|
Encrypted = "Encrypted",
|
|
685
|
+
/** Plaintext */
|
|
645
686
|
Plaintext = "Plaintext"
|
|
646
687
|
}
|
|
647
688
|
|
|
@@ -657,7 +698,9 @@ export type Protocol = string;
|
|
|
657
698
|
|
|
658
699
|
/** Known values of {@link ClusteringPolicy} that the service accepts. */
|
|
659
700
|
export enum KnownClusteringPolicy {
|
|
701
|
+
/** EnterpriseCluster */
|
|
660
702
|
EnterpriseCluster = "EnterpriseCluster",
|
|
703
|
+
/** OSSCluster */
|
|
661
704
|
OSSCluster = "OSSCluster"
|
|
662
705
|
}
|
|
663
706
|
|
|
@@ -673,13 +716,21 @@ export type ClusteringPolicy = string;
|
|
|
673
716
|
|
|
674
717
|
/** Known values of {@link EvictionPolicy} that the service accepts. */
|
|
675
718
|
export enum KnownEvictionPolicy {
|
|
719
|
+
/** AllKeysLFU */
|
|
676
720
|
AllKeysLFU = "AllKeysLFU",
|
|
721
|
+
/** AllKeysLRU */
|
|
677
722
|
AllKeysLRU = "AllKeysLRU",
|
|
723
|
+
/** AllKeysRandom */
|
|
678
724
|
AllKeysRandom = "AllKeysRandom",
|
|
725
|
+
/** VolatileLRU */
|
|
679
726
|
VolatileLRU = "VolatileLRU",
|
|
727
|
+
/** VolatileLFU */
|
|
680
728
|
VolatileLFU = "VolatileLFU",
|
|
729
|
+
/** VolatileTTL */
|
|
681
730
|
VolatileTTL = "VolatileTTL",
|
|
731
|
+
/** VolatileRandom */
|
|
682
732
|
VolatileRandom = "VolatileRandom",
|
|
733
|
+
/** NoEviction */
|
|
683
734
|
NoEviction = "NoEviction"
|
|
684
735
|
}
|
|
685
736
|
|
|
@@ -701,7 +752,9 @@ export type EvictionPolicy = string;
|
|
|
701
752
|
|
|
702
753
|
/** Known values of {@link AofFrequency} that the service accepts. */
|
|
703
754
|
export enum KnownAofFrequency {
|
|
755
|
+
/** OneS */
|
|
704
756
|
OneS = "1s",
|
|
757
|
+
/** Always */
|
|
705
758
|
Always = "always"
|
|
706
759
|
}
|
|
707
760
|
|
|
@@ -717,8 +770,11 @@ export type AofFrequency = string;
|
|
|
717
770
|
|
|
718
771
|
/** Known values of {@link RdbFrequency} that the service accepts. */
|
|
719
772
|
export enum KnownRdbFrequency {
|
|
773
|
+
/** OneH */
|
|
720
774
|
OneH = "1h",
|
|
775
|
+
/** SixH */
|
|
721
776
|
SixH = "6h",
|
|
777
|
+
/** TwelveH */
|
|
722
778
|
TwelveH = "12h"
|
|
723
779
|
}
|
|
724
780
|
|
|
@@ -735,10 +791,15 @@ export type RdbFrequency = string;
|
|
|
735
791
|
|
|
736
792
|
/** Known values of {@link LinkState} that the service accepts. */
|
|
737
793
|
export enum KnownLinkState {
|
|
794
|
+
/** Linked */
|
|
738
795
|
Linked = "Linked",
|
|
796
|
+
/** Linking */
|
|
739
797
|
Linking = "Linking",
|
|
798
|
+
/** Unlinking */
|
|
740
799
|
Unlinking = "Unlinking",
|
|
800
|
+
/** LinkFailed */
|
|
741
801
|
LinkFailed = "LinkFailed",
|
|
802
|
+
/** UnlinkFailed */
|
|
742
803
|
UnlinkFailed = "UnlinkFailed"
|
|
743
804
|
}
|
|
744
805
|
|
package/src/models/parameters.ts
CHANGED
|
@@ -74,6 +74,9 @@ export const nextLink: OperationURLParameter = {
|
|
|
74
74
|
export const location: OperationURLParameter = {
|
|
75
75
|
parameterPath: "location",
|
|
76
76
|
mapper: {
|
|
77
|
+
constraints: {
|
|
78
|
+
MinLength: 1
|
|
79
|
+
},
|
|
77
80
|
serializedName: "location",
|
|
78
81
|
required: true,
|
|
79
82
|
type: {
|
|
@@ -85,6 +88,9 @@ export const location: OperationURLParameter = {
|
|
|
85
88
|
export const operationId: OperationURLParameter = {
|
|
86
89
|
parameterPath: "operationId",
|
|
87
90
|
mapper: {
|
|
91
|
+
constraints: {
|
|
92
|
+
MinLength: 1
|
|
93
|
+
},
|
|
88
94
|
serializedName: "operationId",
|
|
89
95
|
required: true,
|
|
90
96
|
type: {
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Databases } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -77,11 +78,15 @@ export class DatabasesImpl implements Databases {
|
|
|
77
78
|
[Symbol.asyncIterator]() {
|
|
78
79
|
return this;
|
|
79
80
|
},
|
|
80
|
-
byPage: () => {
|
|
81
|
+
byPage: (settings?: PageSettings) => {
|
|
82
|
+
if (settings?.maxPageSize) {
|
|
83
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
84
|
+
}
|
|
81
85
|
return this.listByClusterPagingPage(
|
|
82
86
|
resourceGroupName,
|
|
83
87
|
clusterName,
|
|
84
|
-
options
|
|
88
|
+
options,
|
|
89
|
+
settings
|
|
85
90
|
);
|
|
86
91
|
}
|
|
87
92
|
};
|
|
@@ -90,15 +95,22 @@ export class DatabasesImpl implements Databases {
|
|
|
90
95
|
private async *listByClusterPagingPage(
|
|
91
96
|
resourceGroupName: string,
|
|
92
97
|
clusterName: string,
|
|
93
|
-
options?: DatabasesListByClusterOptionalParams
|
|
98
|
+
options?: DatabasesListByClusterOptionalParams,
|
|
99
|
+
settings?: PageSettings
|
|
94
100
|
): AsyncIterableIterator<Database[]> {
|
|
95
|
-
let result
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
let result: DatabasesListByClusterResponse;
|
|
102
|
+
let continuationToken = settings?.continuationToken;
|
|
103
|
+
if (!continuationToken) {
|
|
104
|
+
result = await this._listByCluster(
|
|
105
|
+
resourceGroupName,
|
|
106
|
+
clusterName,
|
|
107
|
+
options
|
|
108
|
+
);
|
|
109
|
+
let page = result.value || [];
|
|
110
|
+
continuationToken = result.nextLink;
|
|
111
|
+
setContinuationToken(page, continuationToken);
|
|
112
|
+
yield page;
|
|
113
|
+
}
|
|
102
114
|
while (continuationToken) {
|
|
103
115
|
result = await this._listByClusterNext(
|
|
104
116
|
resourceGroupName,
|
|
@@ -107,7 +119,9 @@ export class DatabasesImpl implements Databases {
|
|
|
107
119
|
options
|
|
108
120
|
);
|
|
109
121
|
continuationToken = result.nextLink;
|
|
110
|
-
|
|
122
|
+
let page = result.value || [];
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield page;
|
|
111
125
|
}
|
|
112
126
|
}
|
|
113
127
|
|
|
@@ -1146,7 +1160,6 @@ const listByClusterNextOperationSpec: coreClient.OperationSpec = {
|
|
|
1146
1160
|
bodyMapper: Mappers.ErrorResponse
|
|
1147
1161
|
}
|
|
1148
1162
|
},
|
|
1149
|
-
queryParameters: [Parameters.apiVersion],
|
|
1150
1163
|
urlParameters: [
|
|
1151
1164
|
Parameters.$host,
|
|
1152
1165
|
Parameters.nextLink,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Operations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
|
|
|
48
49
|
[Symbol.asyncIterator]() {
|
|
49
50
|
return this;
|
|
50
51
|
},
|
|
51
|
-
byPage: () => {
|
|
52
|
-
|
|
52
|
+
byPage: (settings?: PageSettings) => {
|
|
53
|
+
if (settings?.maxPageSize) {
|
|
54
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
+
}
|
|
56
|
+
return this.listPagingPage(options, settings);
|
|
53
57
|
}
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
private async *listPagingPage(
|
|
58
|
-
options?: OperationsListOptionalParams
|
|
62
|
+
options?: OperationsListOptionalParams,
|
|
63
|
+
settings?: PageSettings
|
|
59
64
|
): AsyncIterableIterator<Operation[]> {
|
|
60
|
-
let result
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
let result: OperationsListResponse;
|
|
66
|
+
let continuationToken = settings?.continuationToken;
|
|
67
|
+
if (!continuationToken) {
|
|
68
|
+
result = await this._list(options);
|
|
69
|
+
let page = result.value || [];
|
|
70
|
+
continuationToken = result.nextLink;
|
|
71
|
+
setContinuationToken(page, continuationToken);
|
|
72
|
+
yield page;
|
|
73
|
+
}
|
|
63
74
|
while (continuationToken) {
|
|
64
75
|
result = await this._listNext(continuationToken, options);
|
|
65
76
|
continuationToken = result.nextLink;
|
|
66
|
-
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
setContinuationToken(page, continuationToken);
|
|
79
|
+
yield page;
|
|
67
80
|
}
|
|
68
81
|
}
|
|
69
82
|
|
|
@@ -130,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
130
143
|
bodyMapper: Mappers.ErrorResponse
|
|
131
144
|
}
|
|
132
145
|
},
|
|
133
|
-
queryParameters: [Parameters.apiVersion],
|
|
134
146
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
147
|
headerParameters: [Parameters.accept],
|
|
136
148
|
serializer
|
|
@@ -30,8 +30,8 @@ export class OperationsStatusImpl implements OperationsStatus {
|
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Gets the status of operation.
|
|
33
|
-
* @param location The
|
|
34
|
-
* @param operationId The
|
|
33
|
+
* @param location The name of Azure region.
|
|
34
|
+
* @param operationId The ID of an ongoing async operation.
|
|
35
35
|
* @param options The options parameters.
|
|
36
36
|
*/
|
|
37
37
|
get(
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -58,8 +58,16 @@ export class PrivateEndpointConnectionsImpl
|
|
|
58
58
|
[Symbol.asyncIterator]() {
|
|
59
59
|
return this;
|
|
60
60
|
},
|
|
61
|
-
byPage: () => {
|
|
62
|
-
|
|
61
|
+
byPage: (settings?: PageSettings) => {
|
|
62
|
+
if (settings?.maxPageSize) {
|
|
63
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
64
|
+
}
|
|
65
|
+
return this.listPagingPage(
|
|
66
|
+
resourceGroupName,
|
|
67
|
+
clusterName,
|
|
68
|
+
options,
|
|
69
|
+
settings
|
|
70
|
+
);
|
|
63
71
|
}
|
|
64
72
|
};
|
|
65
73
|
}
|
|
@@ -67,9 +75,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
67
75
|
private async *listPagingPage(
|
|
68
76
|
resourceGroupName: string,
|
|
69
77
|
clusterName: string,
|
|
70
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
78
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
79
|
+
_settings?: PageSettings
|
|
71
80
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
72
|
-
let result
|
|
81
|
+
let result: PrivateEndpointConnectionsListResponse;
|
|
82
|
+
result = await this._list(resourceGroupName, clusterName, options);
|
|
73
83
|
yield result.value || [];
|
|
74
84
|
}
|
|
75
85
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -54,11 +54,15 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
54
54
|
[Symbol.asyncIterator]() {
|
|
55
55
|
return this;
|
|
56
56
|
},
|
|
57
|
-
byPage: () => {
|
|
57
|
+
byPage: (settings?: PageSettings) => {
|
|
58
|
+
if (settings?.maxPageSize) {
|
|
59
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
60
|
+
}
|
|
58
61
|
return this.listByClusterPagingPage(
|
|
59
62
|
resourceGroupName,
|
|
60
63
|
clusterName,
|
|
61
|
-
options
|
|
64
|
+
options,
|
|
65
|
+
settings
|
|
62
66
|
);
|
|
63
67
|
}
|
|
64
68
|
};
|
|
@@ -67,13 +71,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
67
71
|
private async *listByClusterPagingPage(
|
|
68
72
|
resourceGroupName: string,
|
|
69
73
|
clusterName: string,
|
|
70
|
-
options?: PrivateLinkResourcesListByClusterOptionalParams
|
|
74
|
+
options?: PrivateLinkResourcesListByClusterOptionalParams,
|
|
75
|
+
_settings?: PageSettings
|
|
71
76
|
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
72
|
-
let result
|
|
73
|
-
|
|
74
|
-
clusterName,
|
|
75
|
-
options
|
|
76
|
-
);
|
|
77
|
+
let result: PrivateLinkResourcesListByClusterResponse;
|
|
78
|
+
result = await this._listByCluster(resourceGroupName, clusterName, options);
|
|
77
79
|
yield result.value || [];
|
|
78
80
|
}
|
|
79
81
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { RedisEnterprise } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,8 +19,10 @@ import {
|
|
|
18
19
|
Cluster,
|
|
19
20
|
RedisEnterpriseListByResourceGroupNextOptionalParams,
|
|
20
21
|
RedisEnterpriseListByResourceGroupOptionalParams,
|
|
22
|
+
RedisEnterpriseListByResourceGroupResponse,
|
|
21
23
|
RedisEnterpriseListNextOptionalParams,
|
|
22
24
|
RedisEnterpriseListOptionalParams,
|
|
25
|
+
RedisEnterpriseListResponse,
|
|
23
26
|
RedisEnterpriseCreateOptionalParams,
|
|
24
27
|
RedisEnterpriseCreateResponse,
|
|
25
28
|
ClusterUpdate,
|
|
@@ -28,8 +31,6 @@ import {
|
|
|
28
31
|
RedisEnterpriseDeleteOptionalParams,
|
|
29
32
|
RedisEnterpriseGetOptionalParams,
|
|
30
33
|
RedisEnterpriseGetResponse,
|
|
31
|
-
RedisEnterpriseListByResourceGroupResponse,
|
|
32
|
-
RedisEnterpriseListResponse,
|
|
33
34
|
RedisEnterpriseListByResourceGroupNextResponse,
|
|
34
35
|
RedisEnterpriseListNextResponse
|
|
35
36
|
} from "../models";
|
|
@@ -64,19 +65,33 @@ export class RedisEnterpriseImpl implements RedisEnterprise {
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
-
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
72
|
+
return this.listByResourceGroupPagingPage(
|
|
73
|
+
resourceGroupName,
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
76
|
+
);
|
|
69
77
|
}
|
|
70
78
|
};
|
|
71
79
|
}
|
|
72
80
|
|
|
73
81
|
private async *listByResourceGroupPagingPage(
|
|
74
82
|
resourceGroupName: string,
|
|
75
|
-
options?: RedisEnterpriseListByResourceGroupOptionalParams
|
|
83
|
+
options?: RedisEnterpriseListByResourceGroupOptionalParams,
|
|
84
|
+
settings?: PageSettings
|
|
76
85
|
): AsyncIterableIterator<Cluster[]> {
|
|
77
|
-
let result
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
let result: RedisEnterpriseListByResourceGroupResponse;
|
|
87
|
+
let continuationToken = settings?.continuationToken;
|
|
88
|
+
if (!continuationToken) {
|
|
89
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
90
|
+
let page = result.value || [];
|
|
91
|
+
continuationToken = result.nextLink;
|
|
92
|
+
setContinuationToken(page, continuationToken);
|
|
93
|
+
yield page;
|
|
94
|
+
}
|
|
80
95
|
while (continuationToken) {
|
|
81
96
|
result = await this._listByResourceGroupNext(
|
|
82
97
|
resourceGroupName,
|
|
@@ -84,7 +99,9 @@ export class RedisEnterpriseImpl implements RedisEnterprise {
|
|
|
84
99
|
options
|
|
85
100
|
);
|
|
86
101
|
continuationToken = result.nextLink;
|
|
87
|
-
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
88
105
|
}
|
|
89
106
|
}
|
|
90
107
|
|
|
@@ -115,22 +132,34 @@ export class RedisEnterpriseImpl implements RedisEnterprise {
|
|
|
115
132
|
[Symbol.asyncIterator]() {
|
|
116
133
|
return this;
|
|
117
134
|
},
|
|
118
|
-
byPage: () => {
|
|
119
|
-
|
|
135
|
+
byPage: (settings?: PageSettings) => {
|
|
136
|
+
if (settings?.maxPageSize) {
|
|
137
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
138
|
+
}
|
|
139
|
+
return this.listPagingPage(options, settings);
|
|
120
140
|
}
|
|
121
141
|
};
|
|
122
142
|
}
|
|
123
143
|
|
|
124
144
|
private async *listPagingPage(
|
|
125
|
-
options?: RedisEnterpriseListOptionalParams
|
|
145
|
+
options?: RedisEnterpriseListOptionalParams,
|
|
146
|
+
settings?: PageSettings
|
|
126
147
|
): AsyncIterableIterator<Cluster[]> {
|
|
127
|
-
let result
|
|
128
|
-
|
|
129
|
-
|
|
148
|
+
let result: RedisEnterpriseListResponse;
|
|
149
|
+
let continuationToken = settings?.continuationToken;
|
|
150
|
+
if (!continuationToken) {
|
|
151
|
+
result = await this._list(options);
|
|
152
|
+
let page = result.value || [];
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
setContinuationToken(page, continuationToken);
|
|
155
|
+
yield page;
|
|
156
|
+
}
|
|
130
157
|
while (continuationToken) {
|
|
131
158
|
result = await this._listNext(continuationToken, options);
|
|
132
159
|
continuationToken = result.nextLink;
|
|
133
|
-
|
|
160
|
+
let page = result.value || [];
|
|
161
|
+
setContinuationToken(page, continuationToken);
|
|
162
|
+
yield page;
|
|
134
163
|
}
|
|
135
164
|
}
|
|
136
165
|
|
|
@@ -648,7 +677,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
648
677
|
bodyMapper: Mappers.ErrorResponse
|
|
649
678
|
}
|
|
650
679
|
},
|
|
651
|
-
queryParameters: [Parameters.apiVersion],
|
|
652
680
|
urlParameters: [
|
|
653
681
|
Parameters.$host,
|
|
654
682
|
Parameters.nextLink,
|
|
@@ -669,7 +697,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
669
697
|
bodyMapper: Mappers.ErrorResponse
|
|
670
698
|
}
|
|
671
699
|
},
|
|
672
|
-
queryParameters: [Parameters.apiVersion],
|
|
673
700
|
urlParameters: [
|
|
674
701
|
Parameters.$host,
|
|
675
702
|
Parameters.nextLink,
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
export interface OperationsStatus {
|
|
16
16
|
/**
|
|
17
17
|
* Gets the status of operation.
|
|
18
|
-
* @param location The
|
|
19
|
-
* @param operationId The
|
|
18
|
+
* @param location The name of Azure region.
|
|
19
|
+
* @param operationId The ID of an ongoing async operation.
|
|
20
20
|
* @param options The options parameters.
|
|
21
21
|
*/
|
|
22
22
|
get(
|