@azure/arm-redisenterprisecache 2.2.1-alpha.20230418.1 → 2.3.0-beta.1
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 +36 -10
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +777 -121
- 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/samples-dev/databasesCreateSample.js +15 -8
- package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesExportSample.js +11 -4
- package/dist-esm/samples-dev/databasesExportSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesFlushSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesFlushSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesFlushSample.js +44 -0
- package/dist-esm/samples-dev/databasesFlushSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js +11 -4
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +11 -4
- package/dist-esm/samples-dev/databasesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesImportSample.js +11 -4
- package/dist-esm/samples-dev/databasesImportSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListByClusterSample.js +11 -4
- package/dist-esm/samples-dev/databasesListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListKeysSample.js +11 -4
- package/dist-esm/samples-dev/databasesListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js +11 -4
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/databasesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsStatusGetSample.js +10 -3
- package/dist-esm/samples-dev/operationsStatusGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +26 -4
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListSample.js +10 -3
- package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
- package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/skusListSample.js +58 -0
- package/dist-esm/samples-dev/skusListSample.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +196 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +32 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +13 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +340 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +6 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts +27 -9
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +192 -37
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +16 -12
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.d.ts +4 -4
- package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.js +29 -17
- package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
- package/dist-esm/src/operations/skus.d.ts +28 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +107 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts +27 -9
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/skus.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts +2 -1
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
- package/dist-esm/src/redisEnterpriseManagementClient.js +4 -3
- package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
- package/package.json +8 -7
- package/review/arm-redisenterprisecache.api.md +154 -13
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +216 -0
- package/src/models/mappers.ts +357 -0
- package/src/models/parameters.ts +7 -1
- package/src/operations/databases.ts +251 -75
- package/src/operations/index.ts +1 -0
- package/src/operations/privateEndpointConnections.ts +19 -12
- package/src/operations/redisEnterprise.ts +44 -34
- package/src/operations/skus.ts +117 -0
- package/src/operationsInterfaces/databases.ts +44 -12
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +3 -3
- package/src/operationsInterfaces/redisEnterprise.ts +6 -6
- package/src/operationsInterfaces/skus.ts +24 -0
- package/src/redisEnterpriseManagementClient.ts +8 -4
- package/types/arm-redisenterprisecache.d.ts +260 -13
package/dist/index.js
CHANGED
|
@@ -101,6 +101,18 @@ exports.KnownSkuName = void 0;
|
|
|
101
101
|
/** EnterpriseFlashF1500 */
|
|
102
102
|
KnownSkuName["EnterpriseFlashF1500"] = "EnterpriseFlash_F1500";
|
|
103
103
|
})(exports.KnownSkuName || (exports.KnownSkuName = {}));
|
|
104
|
+
/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
|
|
105
|
+
exports.KnownManagedServiceIdentityType = void 0;
|
|
106
|
+
(function (KnownManagedServiceIdentityType) {
|
|
107
|
+
/** None */
|
|
108
|
+
KnownManagedServiceIdentityType["None"] = "None";
|
|
109
|
+
/** SystemAssigned */
|
|
110
|
+
KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
111
|
+
/** UserAssigned */
|
|
112
|
+
KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
|
|
113
|
+
/** SystemAssignedUserAssigned */
|
|
114
|
+
KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned";
|
|
115
|
+
})(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
|
|
104
116
|
/** Known values of {@link TlsVersion} that the service accepts. */
|
|
105
117
|
exports.KnownTlsVersion = void 0;
|
|
106
118
|
(function (KnownTlsVersion) {
|
|
@@ -111,6 +123,14 @@ exports.KnownTlsVersion = void 0;
|
|
|
111
123
|
/** One2 */
|
|
112
124
|
KnownTlsVersion["One2"] = "1.2";
|
|
113
125
|
})(exports.KnownTlsVersion || (exports.KnownTlsVersion = {}));
|
|
126
|
+
/** Known values of {@link CmkIdentityType} that the service accepts. */
|
|
127
|
+
exports.KnownCmkIdentityType = void 0;
|
|
128
|
+
(function (KnownCmkIdentityType) {
|
|
129
|
+
/** SystemAssignedIdentity */
|
|
130
|
+
KnownCmkIdentityType["SystemAssignedIdentity"] = "systemAssignedIdentity";
|
|
131
|
+
/** UserAssignedIdentity */
|
|
132
|
+
KnownCmkIdentityType["UserAssignedIdentity"] = "userAssignedIdentity";
|
|
133
|
+
})(exports.KnownCmkIdentityType || (exports.KnownCmkIdentityType = {}));
|
|
114
134
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
115
135
|
exports.KnownProvisioningState = void 0;
|
|
116
136
|
(function (KnownProvisioningState) {
|
|
@@ -177,6 +197,18 @@ exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
|
177
197
|
/** Failed */
|
|
178
198
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
179
199
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
200
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
201
|
+
exports.KnownCreatedByType = void 0;
|
|
202
|
+
(function (KnownCreatedByType) {
|
|
203
|
+
/** User */
|
|
204
|
+
KnownCreatedByType["User"] = "User";
|
|
205
|
+
/** Application */
|
|
206
|
+
KnownCreatedByType["Application"] = "Application";
|
|
207
|
+
/** ManagedIdentity */
|
|
208
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
209
|
+
/** Key */
|
|
210
|
+
KnownCreatedByType["Key"] = "Key";
|
|
211
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
180
212
|
/** Known values of {@link Protocol} that the service accepts. */
|
|
181
213
|
exports.KnownProtocol = void 0;
|
|
182
214
|
(function (KnownProtocol) {
|
|
@@ -519,6 +551,122 @@ const Sku = {
|
|
|
519
551
|
}
|
|
520
552
|
}
|
|
521
553
|
};
|
|
554
|
+
const ManagedServiceIdentity = {
|
|
555
|
+
type: {
|
|
556
|
+
name: "Composite",
|
|
557
|
+
className: "ManagedServiceIdentity",
|
|
558
|
+
modelProperties: {
|
|
559
|
+
principalId: {
|
|
560
|
+
serializedName: "principalId",
|
|
561
|
+
readOnly: true,
|
|
562
|
+
type: {
|
|
563
|
+
name: "Uuid"
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
tenantId: {
|
|
567
|
+
serializedName: "tenantId",
|
|
568
|
+
readOnly: true,
|
|
569
|
+
type: {
|
|
570
|
+
name: "Uuid"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
type: {
|
|
574
|
+
serializedName: "type",
|
|
575
|
+
required: true,
|
|
576
|
+
type: {
|
|
577
|
+
name: "String"
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
userAssignedIdentities: {
|
|
581
|
+
serializedName: "userAssignedIdentities",
|
|
582
|
+
type: {
|
|
583
|
+
name: "Dictionary",
|
|
584
|
+
value: {
|
|
585
|
+
type: { name: "Composite", className: "UserAssignedIdentity" }
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
const UserAssignedIdentity = {
|
|
593
|
+
type: {
|
|
594
|
+
name: "Composite",
|
|
595
|
+
className: "UserAssignedIdentity",
|
|
596
|
+
modelProperties: {
|
|
597
|
+
principalId: {
|
|
598
|
+
serializedName: "principalId",
|
|
599
|
+
readOnly: true,
|
|
600
|
+
type: {
|
|
601
|
+
name: "Uuid"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
clientId: {
|
|
605
|
+
serializedName: "clientId",
|
|
606
|
+
readOnly: true,
|
|
607
|
+
type: {
|
|
608
|
+
name: "Uuid"
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
const ClusterPropertiesEncryption = {
|
|
615
|
+
type: {
|
|
616
|
+
name: "Composite",
|
|
617
|
+
className: "ClusterPropertiesEncryption",
|
|
618
|
+
modelProperties: {
|
|
619
|
+
customerManagedKeyEncryption: {
|
|
620
|
+
serializedName: "customerManagedKeyEncryption",
|
|
621
|
+
type: {
|
|
622
|
+
name: "Composite",
|
|
623
|
+
className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryption"
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
const ClusterPropertiesEncryptionCustomerManagedKeyEncryption = {
|
|
630
|
+
type: {
|
|
631
|
+
name: "Composite",
|
|
632
|
+
className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryption",
|
|
633
|
+
modelProperties: {
|
|
634
|
+
keyEncryptionKeyIdentity: {
|
|
635
|
+
serializedName: "keyEncryptionKeyIdentity",
|
|
636
|
+
type: {
|
|
637
|
+
name: "Composite",
|
|
638
|
+
className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity"
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
keyEncryptionKeyUrl: {
|
|
642
|
+
serializedName: "keyEncryptionKeyUrl",
|
|
643
|
+
type: {
|
|
644
|
+
name: "String"
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
const ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity = {
|
|
651
|
+
type: {
|
|
652
|
+
name: "Composite",
|
|
653
|
+
className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity",
|
|
654
|
+
modelProperties: {
|
|
655
|
+
userAssignedIdentityResourceId: {
|
|
656
|
+
serializedName: "userAssignedIdentityResourceId",
|
|
657
|
+
type: {
|
|
658
|
+
name: "String"
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
identityType: {
|
|
662
|
+
serializedName: "identityType",
|
|
663
|
+
type: {
|
|
664
|
+
name: "String"
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
};
|
|
522
670
|
const PrivateEndpoint = {
|
|
523
671
|
type: {
|
|
524
672
|
name: "Composite",
|
|
@@ -585,6 +733,57 @@ const Resource = {
|
|
|
585
733
|
type: {
|
|
586
734
|
name: "String"
|
|
587
735
|
}
|
|
736
|
+
},
|
|
737
|
+
systemData: {
|
|
738
|
+
serializedName: "systemData",
|
|
739
|
+
type: {
|
|
740
|
+
name: "Composite",
|
|
741
|
+
className: "SystemData"
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
};
|
|
747
|
+
const SystemData = {
|
|
748
|
+
type: {
|
|
749
|
+
name: "Composite",
|
|
750
|
+
className: "SystemData",
|
|
751
|
+
modelProperties: {
|
|
752
|
+
createdBy: {
|
|
753
|
+
serializedName: "createdBy",
|
|
754
|
+
type: {
|
|
755
|
+
name: "String"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
createdByType: {
|
|
759
|
+
serializedName: "createdByType",
|
|
760
|
+
type: {
|
|
761
|
+
name: "String"
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
createdAt: {
|
|
765
|
+
serializedName: "createdAt",
|
|
766
|
+
type: {
|
|
767
|
+
name: "DateTime"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
lastModifiedBy: {
|
|
771
|
+
serializedName: "lastModifiedBy",
|
|
772
|
+
type: {
|
|
773
|
+
name: "String"
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
lastModifiedByType: {
|
|
777
|
+
serializedName: "lastModifiedByType",
|
|
778
|
+
type: {
|
|
779
|
+
name: "String"
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
lastModifiedAt: {
|
|
783
|
+
serializedName: "lastModifiedAt",
|
|
784
|
+
type: {
|
|
785
|
+
name: "DateTime"
|
|
786
|
+
}
|
|
588
787
|
}
|
|
589
788
|
}
|
|
590
789
|
}
|
|
@@ -601,6 +800,13 @@ const ClusterUpdate = {
|
|
|
601
800
|
className: "Sku"
|
|
602
801
|
}
|
|
603
802
|
},
|
|
803
|
+
identity: {
|
|
804
|
+
serializedName: "identity",
|
|
805
|
+
type: {
|
|
806
|
+
name: "Composite",
|
|
807
|
+
className: "ManagedServiceIdentity"
|
|
808
|
+
}
|
|
809
|
+
},
|
|
604
810
|
tags: {
|
|
605
811
|
serializedName: "tags",
|
|
606
812
|
type: {
|
|
@@ -614,6 +820,13 @@ const ClusterUpdate = {
|
|
|
614
820
|
name: "String"
|
|
615
821
|
}
|
|
616
822
|
},
|
|
823
|
+
encryption: {
|
|
824
|
+
serializedName: "properties.encryption",
|
|
825
|
+
type: {
|
|
826
|
+
name: "Composite",
|
|
827
|
+
className: "ClusterPropertiesEncryption"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
617
830
|
hostName: {
|
|
618
831
|
serializedName: "properties.hostName",
|
|
619
832
|
readOnly: true,
|
|
@@ -1024,6 +1237,133 @@ const ForceUnlinkParameters = {
|
|
|
1024
1237
|
}
|
|
1025
1238
|
}
|
|
1026
1239
|
};
|
|
1240
|
+
const FlushParameters = {
|
|
1241
|
+
type: {
|
|
1242
|
+
name: "Composite",
|
|
1243
|
+
className: "FlushParameters",
|
|
1244
|
+
modelProperties: {
|
|
1245
|
+
ids: {
|
|
1246
|
+
serializedName: "ids",
|
|
1247
|
+
type: {
|
|
1248
|
+
name: "Sequence",
|
|
1249
|
+
element: {
|
|
1250
|
+
type: {
|
|
1251
|
+
name: "String"
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
const RegionSkuDetails = {
|
|
1260
|
+
type: {
|
|
1261
|
+
name: "Composite",
|
|
1262
|
+
className: "RegionSkuDetails",
|
|
1263
|
+
modelProperties: {
|
|
1264
|
+
value: {
|
|
1265
|
+
serializedName: "value",
|
|
1266
|
+
type: {
|
|
1267
|
+
name: "Sequence",
|
|
1268
|
+
element: {
|
|
1269
|
+
type: {
|
|
1270
|
+
name: "Composite",
|
|
1271
|
+
className: "RegionSkuDetail"
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
const RegionSkuDetail = {
|
|
1280
|
+
type: {
|
|
1281
|
+
name: "Composite",
|
|
1282
|
+
className: "RegionSkuDetail",
|
|
1283
|
+
modelProperties: {
|
|
1284
|
+
resourceType: {
|
|
1285
|
+
serializedName: "resourceType",
|
|
1286
|
+
type: {
|
|
1287
|
+
name: "String"
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
locationInfo: {
|
|
1291
|
+
serializedName: "locationInfo",
|
|
1292
|
+
type: {
|
|
1293
|
+
name: "Composite",
|
|
1294
|
+
className: "LocationInfo"
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
skuDetails: {
|
|
1298
|
+
serializedName: "skuDetails",
|
|
1299
|
+
type: {
|
|
1300
|
+
name: "Composite",
|
|
1301
|
+
className: "SkuDetail"
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
};
|
|
1307
|
+
const LocationInfo = {
|
|
1308
|
+
type: {
|
|
1309
|
+
name: "Composite",
|
|
1310
|
+
className: "LocationInfo",
|
|
1311
|
+
modelProperties: {
|
|
1312
|
+
location: {
|
|
1313
|
+
serializedName: "location",
|
|
1314
|
+
type: {
|
|
1315
|
+
name: "String"
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
capabilities: {
|
|
1319
|
+
serializedName: "capabilities",
|
|
1320
|
+
type: {
|
|
1321
|
+
name: "Sequence",
|
|
1322
|
+
element: {
|
|
1323
|
+
type: {
|
|
1324
|
+
name: "Composite",
|
|
1325
|
+
className: "Capability"
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
const Capability = {
|
|
1334
|
+
type: {
|
|
1335
|
+
name: "Composite",
|
|
1336
|
+
className: "Capability",
|
|
1337
|
+
modelProperties: {
|
|
1338
|
+
name: {
|
|
1339
|
+
serializedName: "name",
|
|
1340
|
+
type: {
|
|
1341
|
+
name: "String"
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
value: {
|
|
1345
|
+
serializedName: "value",
|
|
1346
|
+
type: {
|
|
1347
|
+
name: "Boolean"
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
};
|
|
1353
|
+
const SkuDetail = {
|
|
1354
|
+
type: {
|
|
1355
|
+
name: "Composite",
|
|
1356
|
+
className: "SkuDetail",
|
|
1357
|
+
modelProperties: {
|
|
1358
|
+
name: {
|
|
1359
|
+
serializedName: "name",
|
|
1360
|
+
type: {
|
|
1361
|
+
name: "String"
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
};
|
|
1027
1367
|
const PrivateEndpointConnection = {
|
|
1028
1368
|
type: {
|
|
1029
1369
|
name: "Composite",
|
|
@@ -1129,11 +1469,23 @@ const Cluster = {
|
|
|
1129
1469
|
}
|
|
1130
1470
|
}
|
|
1131
1471
|
}
|
|
1472
|
+
}, identity: {
|
|
1473
|
+
serializedName: "identity",
|
|
1474
|
+
type: {
|
|
1475
|
+
name: "Composite",
|
|
1476
|
+
className: "ManagedServiceIdentity"
|
|
1477
|
+
}
|
|
1132
1478
|
}, minimumTlsVersion: {
|
|
1133
1479
|
serializedName: "properties.minimumTlsVersion",
|
|
1134
1480
|
type: {
|
|
1135
1481
|
name: "String"
|
|
1136
1482
|
}
|
|
1483
|
+
}, encryption: {
|
|
1484
|
+
serializedName: "properties.encryption",
|
|
1485
|
+
type: {
|
|
1486
|
+
name: "Composite",
|
|
1487
|
+
className: "ClusterPropertiesEncryption"
|
|
1488
|
+
}
|
|
1137
1489
|
}, hostName: {
|
|
1138
1490
|
serializedName: "properties.hostName",
|
|
1139
1491
|
readOnly: true,
|
|
@@ -1235,6 +1587,26 @@ const Database = {
|
|
|
1235
1587
|
} })
|
|
1236
1588
|
}
|
|
1237
1589
|
};
|
|
1590
|
+
const DatabasesFlushHeaders = {
|
|
1591
|
+
type: {
|
|
1592
|
+
name: "Composite",
|
|
1593
|
+
className: "DatabasesFlushHeaders",
|
|
1594
|
+
modelProperties: {
|
|
1595
|
+
location: {
|
|
1596
|
+
serializedName: "location",
|
|
1597
|
+
type: {
|
|
1598
|
+
name: "String"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
azureAsyncOperation: {
|
|
1602
|
+
serializedName: "azure-asyncoperation",
|
|
1603
|
+
type: {
|
|
1604
|
+
name: "String"
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
};
|
|
1238
1610
|
|
|
1239
1611
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1240
1612
|
__proto__: null,
|
|
@@ -1246,9 +1618,15 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1246
1618
|
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1247
1619
|
OperationStatus: OperationStatus,
|
|
1248
1620
|
Sku: Sku,
|
|
1621
|
+
ManagedServiceIdentity: ManagedServiceIdentity,
|
|
1622
|
+
UserAssignedIdentity: UserAssignedIdentity,
|
|
1623
|
+
ClusterPropertiesEncryption: ClusterPropertiesEncryption,
|
|
1624
|
+
ClusterPropertiesEncryptionCustomerManagedKeyEncryption: ClusterPropertiesEncryptionCustomerManagedKeyEncryption,
|
|
1625
|
+
ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity: ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity,
|
|
1249
1626
|
PrivateEndpoint: PrivateEndpoint,
|
|
1250
1627
|
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1251
1628
|
Resource: Resource,
|
|
1629
|
+
SystemData: SystemData,
|
|
1252
1630
|
ClusterUpdate: ClusterUpdate,
|
|
1253
1631
|
ClusterList: ClusterList,
|
|
1254
1632
|
DatabaseList: DatabaseList,
|
|
@@ -1264,12 +1642,19 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1264
1642
|
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
1265
1643
|
PrivateLinkResourceListResult: PrivateLinkResourceListResult,
|
|
1266
1644
|
ForceUnlinkParameters: ForceUnlinkParameters,
|
|
1645
|
+
FlushParameters: FlushParameters,
|
|
1646
|
+
RegionSkuDetails: RegionSkuDetails,
|
|
1647
|
+
RegionSkuDetail: RegionSkuDetail,
|
|
1648
|
+
LocationInfo: LocationInfo,
|
|
1649
|
+
Capability: Capability,
|
|
1650
|
+
SkuDetail: SkuDetail,
|
|
1267
1651
|
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1268
1652
|
TrackedResource: TrackedResource,
|
|
1269
1653
|
ProxyResource: ProxyResource,
|
|
1270
1654
|
PrivateLinkResource: PrivateLinkResource,
|
|
1271
1655
|
Cluster: Cluster,
|
|
1272
|
-
Database: Database
|
|
1656
|
+
Database: Database,
|
|
1657
|
+
DatabasesFlushHeaders: DatabasesFlushHeaders
|
|
1273
1658
|
});
|
|
1274
1659
|
|
|
1275
1660
|
/*
|
|
@@ -1304,7 +1689,7 @@ const $host = {
|
|
|
1304
1689
|
const apiVersion = {
|
|
1305
1690
|
parameterPath: "apiVersion",
|
|
1306
1691
|
mapper: {
|
|
1307
|
-
defaultValue: "
|
|
1692
|
+
defaultValue: "2023-03-01-preview",
|
|
1308
1693
|
isConstant: true,
|
|
1309
1694
|
serializedName: "api-version",
|
|
1310
1695
|
type: {
|
|
@@ -1439,6 +1824,10 @@ const parameters7 = {
|
|
|
1439
1824
|
parameterPath: "parameters",
|
|
1440
1825
|
mapper: ForceUnlinkParameters
|
|
1441
1826
|
};
|
|
1827
|
+
const parameters8 = {
|
|
1828
|
+
parameterPath: "parameters",
|
|
1829
|
+
mapper: FlushParameters
|
|
1830
|
+
};
|
|
1442
1831
|
const privateEndpointConnectionName = {
|
|
1443
1832
|
parameterPath: "privateEndpointConnectionName",
|
|
1444
1833
|
mapper: {
|
|
@@ -1542,7 +1931,7 @@ class OperationsImpl {
|
|
|
1542
1931
|
* @param options The options parameters.
|
|
1543
1932
|
*/
|
|
1544
1933
|
_list(options) {
|
|
1545
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
1934
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
1546
1935
|
}
|
|
1547
1936
|
/**
|
|
1548
1937
|
* ListNext
|
|
@@ -1554,8 +1943,8 @@ class OperationsImpl {
|
|
|
1554
1943
|
}
|
|
1555
1944
|
}
|
|
1556
1945
|
// Operation Specifications
|
|
1557
|
-
const serializer$
|
|
1558
|
-
const listOperationSpec$
|
|
1946
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1947
|
+
const listOperationSpec$3 = {
|
|
1559
1948
|
path: "/providers/Microsoft.Cache/operations",
|
|
1560
1949
|
httpMethod: "GET",
|
|
1561
1950
|
responses: {
|
|
@@ -1569,7 +1958,7 @@ const listOperationSpec$2 = {
|
|
|
1569
1958
|
queryParameters: [apiVersion],
|
|
1570
1959
|
urlParameters: [$host],
|
|
1571
1960
|
headerParameters: [accept],
|
|
1572
|
-
serializer: serializer$
|
|
1961
|
+
serializer: serializer$6
|
|
1573
1962
|
};
|
|
1574
1963
|
const listNextOperationSpec$1 = {
|
|
1575
1964
|
path: "{nextLink}",
|
|
@@ -1584,7 +1973,7 @@ const listNextOperationSpec$1 = {
|
|
|
1584
1973
|
},
|
|
1585
1974
|
urlParameters: [$host, nextLink],
|
|
1586
1975
|
headerParameters: [accept],
|
|
1587
|
-
serializer: serializer$
|
|
1976
|
+
serializer: serializer$6
|
|
1588
1977
|
};
|
|
1589
1978
|
|
|
1590
1979
|
/*
|
|
@@ -1614,7 +2003,7 @@ class OperationsStatusImpl {
|
|
|
1614
2003
|
}
|
|
1615
2004
|
}
|
|
1616
2005
|
// Operation Specifications
|
|
1617
|
-
const serializer$
|
|
2006
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1618
2007
|
const getOperationSpec$3 = {
|
|
1619
2008
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}",
|
|
1620
2009
|
httpMethod: "GET",
|
|
@@ -1634,7 +2023,7 @@ const getOperationSpec$3 = {
|
|
|
1634
2023
|
subscriptionId
|
|
1635
2024
|
],
|
|
1636
2025
|
headerParameters: [accept],
|
|
1637
|
-
serializer: serializer$
|
|
2026
|
+
serializer: serializer$5
|
|
1638
2027
|
};
|
|
1639
2028
|
|
|
1640
2029
|
/*
|
|
@@ -1644,25 +2033,17 @@ const getOperationSpec$3 = {
|
|
|
1644
2033
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1645
2034
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1646
2035
|
*/
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
});
|
|
1659
|
-
}
|
|
1660
|
-
sendPollRequest(path) {
|
|
1661
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1662
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1663
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1664
|
-
});
|
|
1665
|
-
}
|
|
2036
|
+
function createLroSpec(inputs) {
|
|
2037
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
2038
|
+
return {
|
|
2039
|
+
requestMethod: spec.httpMethod,
|
|
2040
|
+
requestPath: spec.path,
|
|
2041
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2042
|
+
sendPollRequest: (path, options) => {
|
|
2043
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2044
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2045
|
+
}
|
|
2046
|
+
};
|
|
1666
2047
|
}
|
|
1667
2048
|
|
|
1668
2049
|
/*
|
|
@@ -1827,7 +2208,7 @@ class RedisEnterpriseImpl {
|
|
|
1827
2208
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1828
2209
|
return this.client.sendOperationRequest(args, spec);
|
|
1829
2210
|
});
|
|
1830
|
-
const
|
|
2211
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1831
2212
|
var _a;
|
|
1832
2213
|
let currentRawResponse = undefined;
|
|
1833
2214
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1846,11 +2227,15 @@ class RedisEnterpriseImpl {
|
|
|
1846
2227
|
}
|
|
1847
2228
|
};
|
|
1848
2229
|
});
|
|
1849
|
-
const lro =
|
|
1850
|
-
|
|
1851
|
-
|
|
2230
|
+
const lro = createLroSpec({
|
|
2231
|
+
sendOperationFn,
|
|
2232
|
+
args: { resourceGroupName, clusterName, parameters, options },
|
|
2233
|
+
spec: createOperationSpec$1
|
|
2234
|
+
});
|
|
2235
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2236
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1852
2237
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1853
|
-
|
|
2238
|
+
resourceLocationConfig: "original-uri"
|
|
1854
2239
|
});
|
|
1855
2240
|
yield poller.poll();
|
|
1856
2241
|
return poller;
|
|
@@ -1881,7 +2266,7 @@ class RedisEnterpriseImpl {
|
|
|
1881
2266
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1882
2267
|
return this.client.sendOperationRequest(args, spec);
|
|
1883
2268
|
});
|
|
1884
|
-
const
|
|
2269
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1885
2270
|
var _a;
|
|
1886
2271
|
let currentRawResponse = undefined;
|
|
1887
2272
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1900,11 +2285,15 @@ class RedisEnterpriseImpl {
|
|
|
1900
2285
|
}
|
|
1901
2286
|
};
|
|
1902
2287
|
});
|
|
1903
|
-
const lro =
|
|
1904
|
-
|
|
1905
|
-
|
|
2288
|
+
const lro = createLroSpec({
|
|
2289
|
+
sendOperationFn,
|
|
2290
|
+
args: { resourceGroupName, clusterName, parameters, options },
|
|
2291
|
+
spec: updateOperationSpec$1
|
|
2292
|
+
});
|
|
2293
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2294
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1906
2295
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1907
|
-
|
|
2296
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1908
2297
|
});
|
|
1909
2298
|
yield poller.poll();
|
|
1910
2299
|
return poller;
|
|
@@ -1934,7 +2323,7 @@ class RedisEnterpriseImpl {
|
|
|
1934
2323
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1935
2324
|
return this.client.sendOperationRequest(args, spec);
|
|
1936
2325
|
});
|
|
1937
|
-
const
|
|
2326
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1938
2327
|
var _a;
|
|
1939
2328
|
let currentRawResponse = undefined;
|
|
1940
2329
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1953,11 +2342,15 @@ class RedisEnterpriseImpl {
|
|
|
1953
2342
|
}
|
|
1954
2343
|
};
|
|
1955
2344
|
});
|
|
1956
|
-
const lro =
|
|
1957
|
-
|
|
1958
|
-
|
|
2345
|
+
const lro = createLroSpec({
|
|
2346
|
+
sendOperationFn,
|
|
2347
|
+
args: { resourceGroupName, clusterName, options },
|
|
2348
|
+
spec: deleteOperationSpec$2
|
|
2349
|
+
});
|
|
2350
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2351
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1959
2352
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1960
|
-
|
|
2353
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1961
2354
|
});
|
|
1962
2355
|
yield poller.poll();
|
|
1963
2356
|
return poller;
|
|
@@ -1997,7 +2390,7 @@ class RedisEnterpriseImpl {
|
|
|
1997
2390
|
* @param options The options parameters.
|
|
1998
2391
|
*/
|
|
1999
2392
|
_list(options) {
|
|
2000
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
2393
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
2001
2394
|
}
|
|
2002
2395
|
/**
|
|
2003
2396
|
* ListByResourceGroupNext
|
|
@@ -2018,7 +2411,7 @@ class RedisEnterpriseImpl {
|
|
|
2018
2411
|
}
|
|
2019
2412
|
}
|
|
2020
2413
|
// Operation Specifications
|
|
2021
|
-
const serializer$
|
|
2414
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2022
2415
|
const createOperationSpec$1 = {
|
|
2023
2416
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
2024
2417
|
httpMethod: "PUT",
|
|
@@ -2049,7 +2442,7 @@ const createOperationSpec$1 = {
|
|
|
2049
2442
|
],
|
|
2050
2443
|
headerParameters: [accept, contentType],
|
|
2051
2444
|
mediaType: "json",
|
|
2052
|
-
serializer: serializer$
|
|
2445
|
+
serializer: serializer$4
|
|
2053
2446
|
};
|
|
2054
2447
|
const updateOperationSpec$1 = {
|
|
2055
2448
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
@@ -2081,7 +2474,7 @@ const updateOperationSpec$1 = {
|
|
|
2081
2474
|
],
|
|
2082
2475
|
headerParameters: [accept, contentType],
|
|
2083
2476
|
mediaType: "json",
|
|
2084
|
-
serializer: serializer$
|
|
2477
|
+
serializer: serializer$4
|
|
2085
2478
|
};
|
|
2086
2479
|
const deleteOperationSpec$2 = {
|
|
2087
2480
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
@@ -2103,7 +2496,7 @@ const deleteOperationSpec$2 = {
|
|
|
2103
2496
|
clusterName
|
|
2104
2497
|
],
|
|
2105
2498
|
headerParameters: [accept],
|
|
2106
|
-
serializer: serializer$
|
|
2499
|
+
serializer: serializer$4
|
|
2107
2500
|
};
|
|
2108
2501
|
const getOperationSpec$2 = {
|
|
2109
2502
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
@@ -2124,7 +2517,7 @@ const getOperationSpec$2 = {
|
|
|
2124
2517
|
clusterName
|
|
2125
2518
|
],
|
|
2126
2519
|
headerParameters: [accept],
|
|
2127
|
-
serializer: serializer$
|
|
2520
|
+
serializer: serializer$4
|
|
2128
2521
|
};
|
|
2129
2522
|
const listByResourceGroupOperationSpec = {
|
|
2130
2523
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise",
|
|
@@ -2144,9 +2537,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
2144
2537
|
resourceGroupName
|
|
2145
2538
|
],
|
|
2146
2539
|
headerParameters: [accept],
|
|
2147
|
-
serializer: serializer$
|
|
2540
|
+
serializer: serializer$4
|
|
2148
2541
|
};
|
|
2149
|
-
const listOperationSpec$
|
|
2542
|
+
const listOperationSpec$2 = {
|
|
2150
2543
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise",
|
|
2151
2544
|
httpMethod: "GET",
|
|
2152
2545
|
responses: {
|
|
@@ -2160,7 +2553,7 @@ const listOperationSpec$1 = {
|
|
|
2160
2553
|
queryParameters: [apiVersion],
|
|
2161
2554
|
urlParameters: [$host, subscriptionId],
|
|
2162
2555
|
headerParameters: [accept],
|
|
2163
|
-
serializer: serializer$
|
|
2556
|
+
serializer: serializer$4
|
|
2164
2557
|
};
|
|
2165
2558
|
const listByResourceGroupNextOperationSpec = {
|
|
2166
2559
|
path: "{nextLink}",
|
|
@@ -2180,7 +2573,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2180
2573
|
resourceGroupName
|
|
2181
2574
|
],
|
|
2182
2575
|
headerParameters: [accept],
|
|
2183
|
-
serializer: serializer$
|
|
2576
|
+
serializer: serializer$4
|
|
2184
2577
|
};
|
|
2185
2578
|
const listNextOperationSpec = {
|
|
2186
2579
|
path: "{nextLink}",
|
|
@@ -2199,7 +2592,7 @@ const listNextOperationSpec = {
|
|
|
2199
2592
|
subscriptionId
|
|
2200
2593
|
],
|
|
2201
2594
|
headerParameters: [accept],
|
|
2202
|
-
serializer: serializer$
|
|
2595
|
+
serializer: serializer$4
|
|
2203
2596
|
};
|
|
2204
2597
|
|
|
2205
2598
|
/*
|
|
@@ -2309,7 +2702,7 @@ class DatabasesImpl {
|
|
|
2309
2702
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2310
2703
|
return this.client.sendOperationRequest(args, spec);
|
|
2311
2704
|
});
|
|
2312
|
-
const
|
|
2705
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2313
2706
|
var _a;
|
|
2314
2707
|
let currentRawResponse = undefined;
|
|
2315
2708
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2328,11 +2721,21 @@ class DatabasesImpl {
|
|
|
2328
2721
|
}
|
|
2329
2722
|
};
|
|
2330
2723
|
});
|
|
2331
|
-
const lro =
|
|
2332
|
-
|
|
2333
|
-
|
|
2724
|
+
const lro = createLroSpec({
|
|
2725
|
+
sendOperationFn,
|
|
2726
|
+
args: {
|
|
2727
|
+
resourceGroupName,
|
|
2728
|
+
clusterName,
|
|
2729
|
+
databaseName,
|
|
2730
|
+
parameters,
|
|
2731
|
+
options
|
|
2732
|
+
},
|
|
2733
|
+
spec: createOperationSpec
|
|
2734
|
+
});
|
|
2735
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2736
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2334
2737
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2335
|
-
|
|
2738
|
+
resourceLocationConfig: "original-uri"
|
|
2336
2739
|
});
|
|
2337
2740
|
yield poller.poll();
|
|
2338
2741
|
return poller;
|
|
@@ -2365,7 +2768,7 @@ class DatabasesImpl {
|
|
|
2365
2768
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2366
2769
|
return this.client.sendOperationRequest(args, spec);
|
|
2367
2770
|
});
|
|
2368
|
-
const
|
|
2771
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2369
2772
|
var _a;
|
|
2370
2773
|
let currentRawResponse = undefined;
|
|
2371
2774
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2384,11 +2787,21 @@ class DatabasesImpl {
|
|
|
2384
2787
|
}
|
|
2385
2788
|
};
|
|
2386
2789
|
});
|
|
2387
|
-
const lro =
|
|
2388
|
-
|
|
2389
|
-
|
|
2790
|
+
const lro = createLroSpec({
|
|
2791
|
+
sendOperationFn,
|
|
2792
|
+
args: {
|
|
2793
|
+
resourceGroupName,
|
|
2794
|
+
clusterName,
|
|
2795
|
+
databaseName,
|
|
2796
|
+
parameters,
|
|
2797
|
+
options
|
|
2798
|
+
},
|
|
2799
|
+
spec: updateOperationSpec
|
|
2800
|
+
});
|
|
2801
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2802
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2390
2803
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2391
|
-
|
|
2804
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2392
2805
|
});
|
|
2393
2806
|
yield poller.poll();
|
|
2394
2807
|
return poller;
|
|
@@ -2430,7 +2843,7 @@ class DatabasesImpl {
|
|
|
2430
2843
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2431
2844
|
return this.client.sendOperationRequest(args, spec);
|
|
2432
2845
|
});
|
|
2433
|
-
const
|
|
2846
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2434
2847
|
var _a;
|
|
2435
2848
|
let currentRawResponse = undefined;
|
|
2436
2849
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2449,11 +2862,15 @@ class DatabasesImpl {
|
|
|
2449
2862
|
}
|
|
2450
2863
|
};
|
|
2451
2864
|
});
|
|
2452
|
-
const lro =
|
|
2453
|
-
|
|
2454
|
-
|
|
2865
|
+
const lro = createLroSpec({
|
|
2866
|
+
sendOperationFn,
|
|
2867
|
+
args: { resourceGroupName, clusterName, databaseName, options },
|
|
2868
|
+
spec: deleteOperationSpec$1
|
|
2869
|
+
});
|
|
2870
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2871
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2455
2872
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2456
|
-
|
|
2873
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2457
2874
|
});
|
|
2458
2875
|
yield poller.poll();
|
|
2459
2876
|
return poller;
|
|
@@ -2495,7 +2912,7 @@ class DatabasesImpl {
|
|
|
2495
2912
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2496
2913
|
return this.client.sendOperationRequest(args, spec);
|
|
2497
2914
|
});
|
|
2498
|
-
const
|
|
2915
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2499
2916
|
var _a;
|
|
2500
2917
|
let currentRawResponse = undefined;
|
|
2501
2918
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2514,11 +2931,21 @@ class DatabasesImpl {
|
|
|
2514
2931
|
}
|
|
2515
2932
|
};
|
|
2516
2933
|
});
|
|
2517
|
-
const lro =
|
|
2518
|
-
|
|
2519
|
-
|
|
2934
|
+
const lro = createLroSpec({
|
|
2935
|
+
sendOperationFn,
|
|
2936
|
+
args: {
|
|
2937
|
+
resourceGroupName,
|
|
2938
|
+
clusterName,
|
|
2939
|
+
databaseName,
|
|
2940
|
+
parameters,
|
|
2941
|
+
options
|
|
2942
|
+
},
|
|
2943
|
+
spec: regenerateKeyOperationSpec
|
|
2944
|
+
});
|
|
2945
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2946
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2520
2947
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2521
|
-
|
|
2948
|
+
resourceLocationConfig: "location"
|
|
2522
2949
|
});
|
|
2523
2950
|
yield poller.poll();
|
|
2524
2951
|
return poller;
|
|
@@ -2551,7 +2978,7 @@ class DatabasesImpl {
|
|
|
2551
2978
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2552
2979
|
return this.client.sendOperationRequest(args, spec);
|
|
2553
2980
|
});
|
|
2554
|
-
const
|
|
2981
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2555
2982
|
var _a;
|
|
2556
2983
|
let currentRawResponse = undefined;
|
|
2557
2984
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2570,11 +2997,21 @@ class DatabasesImpl {
|
|
|
2570
2997
|
}
|
|
2571
2998
|
};
|
|
2572
2999
|
});
|
|
2573
|
-
const lro =
|
|
2574
|
-
|
|
2575
|
-
|
|
3000
|
+
const lro = createLroSpec({
|
|
3001
|
+
sendOperationFn,
|
|
3002
|
+
args: {
|
|
3003
|
+
resourceGroupName,
|
|
3004
|
+
clusterName,
|
|
3005
|
+
databaseName,
|
|
3006
|
+
parameters,
|
|
3007
|
+
options
|
|
3008
|
+
},
|
|
3009
|
+
spec: importOperationSpec
|
|
3010
|
+
});
|
|
3011
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3012
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2576
3013
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2577
|
-
|
|
3014
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2578
3015
|
});
|
|
2579
3016
|
yield poller.poll();
|
|
2580
3017
|
return poller;
|
|
@@ -2607,7 +3044,7 @@ class DatabasesImpl {
|
|
|
2607
3044
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2608
3045
|
return this.client.sendOperationRequest(args, spec);
|
|
2609
3046
|
});
|
|
2610
|
-
const
|
|
3047
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2611
3048
|
var _a;
|
|
2612
3049
|
let currentRawResponse = undefined;
|
|
2613
3050
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2626,11 +3063,21 @@ class DatabasesImpl {
|
|
|
2626
3063
|
}
|
|
2627
3064
|
};
|
|
2628
3065
|
});
|
|
2629
|
-
const lro =
|
|
2630
|
-
|
|
2631
|
-
|
|
3066
|
+
const lro = createLroSpec({
|
|
3067
|
+
sendOperationFn,
|
|
3068
|
+
args: {
|
|
3069
|
+
resourceGroupName,
|
|
3070
|
+
clusterName,
|
|
3071
|
+
databaseName,
|
|
3072
|
+
parameters,
|
|
3073
|
+
options
|
|
3074
|
+
},
|
|
3075
|
+
spec: exportOperationSpec
|
|
3076
|
+
});
|
|
3077
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3078
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2632
3079
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2633
|
-
|
|
3080
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2634
3081
|
});
|
|
2635
3082
|
yield poller.poll();
|
|
2636
3083
|
return poller;
|
|
@@ -2663,7 +3110,7 @@ class DatabasesImpl {
|
|
|
2663
3110
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2664
3111
|
return this.client.sendOperationRequest(args, spec);
|
|
2665
3112
|
});
|
|
2666
|
-
const
|
|
3113
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2667
3114
|
var _a;
|
|
2668
3115
|
let currentRawResponse = undefined;
|
|
2669
3116
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2682,11 +3129,21 @@ class DatabasesImpl {
|
|
|
2682
3129
|
}
|
|
2683
3130
|
};
|
|
2684
3131
|
});
|
|
2685
|
-
const lro =
|
|
2686
|
-
|
|
2687
|
-
|
|
3132
|
+
const lro = createLroSpec({
|
|
3133
|
+
sendOperationFn,
|
|
3134
|
+
args: {
|
|
3135
|
+
resourceGroupName,
|
|
3136
|
+
clusterName,
|
|
3137
|
+
databaseName,
|
|
3138
|
+
parameters,
|
|
3139
|
+
options
|
|
3140
|
+
},
|
|
3141
|
+
spec: forceUnlinkOperationSpec
|
|
3142
|
+
});
|
|
3143
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3144
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2688
3145
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2689
|
-
|
|
3146
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2690
3147
|
});
|
|
2691
3148
|
yield poller.poll();
|
|
2692
3149
|
return poller;
|
|
@@ -2706,6 +3163,72 @@ class DatabasesImpl {
|
|
|
2706
3163
|
return poller.pollUntilDone();
|
|
2707
3164
|
});
|
|
2708
3165
|
}
|
|
3166
|
+
/**
|
|
3167
|
+
* Flushes all the keys in this database and also from its linked databases.
|
|
3168
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3169
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
3170
|
+
* @param databaseName The name of the database.
|
|
3171
|
+
* @param parameters Information identifying the databases to be flushed
|
|
3172
|
+
* @param options The options parameters.
|
|
3173
|
+
*/
|
|
3174
|
+
beginFlush(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3175
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3176
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3177
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3178
|
+
});
|
|
3179
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3180
|
+
var _a;
|
|
3181
|
+
let currentRawResponse = undefined;
|
|
3182
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3183
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3184
|
+
currentRawResponse = rawResponse;
|
|
3185
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3186
|
+
};
|
|
3187
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3188
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3189
|
+
return {
|
|
3190
|
+
flatResponse,
|
|
3191
|
+
rawResponse: {
|
|
3192
|
+
statusCode: currentRawResponse.status,
|
|
3193
|
+
body: currentRawResponse.parsedBody,
|
|
3194
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3195
|
+
}
|
|
3196
|
+
};
|
|
3197
|
+
});
|
|
3198
|
+
const lro = createLroSpec({
|
|
3199
|
+
sendOperationFn,
|
|
3200
|
+
args: {
|
|
3201
|
+
resourceGroupName,
|
|
3202
|
+
clusterName,
|
|
3203
|
+
databaseName,
|
|
3204
|
+
parameters,
|
|
3205
|
+
options
|
|
3206
|
+
},
|
|
3207
|
+
spec: flushOperationSpec
|
|
3208
|
+
});
|
|
3209
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3210
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3211
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3212
|
+
resourceLocationConfig: "location"
|
|
3213
|
+
});
|
|
3214
|
+
yield poller.poll();
|
|
3215
|
+
return poller;
|
|
3216
|
+
});
|
|
3217
|
+
}
|
|
3218
|
+
/**
|
|
3219
|
+
* Flushes all the keys in this database and also from its linked databases.
|
|
3220
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3221
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
3222
|
+
* @param databaseName The name of the database.
|
|
3223
|
+
* @param parameters Information identifying the databases to be flushed
|
|
3224
|
+
* @param options The options parameters.
|
|
3225
|
+
*/
|
|
3226
|
+
beginFlushAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3227
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3228
|
+
const poller = yield this.beginFlush(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3229
|
+
return poller.pollUntilDone();
|
|
3230
|
+
});
|
|
3231
|
+
}
|
|
2709
3232
|
/**
|
|
2710
3233
|
* ListByClusterNext
|
|
2711
3234
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -2718,7 +3241,7 @@ class DatabasesImpl {
|
|
|
2718
3241
|
}
|
|
2719
3242
|
}
|
|
2720
3243
|
// Operation Specifications
|
|
2721
|
-
const serializer$
|
|
3244
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2722
3245
|
const listByClusterOperationSpec$1 = {
|
|
2723
3246
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
|
|
2724
3247
|
httpMethod: "GET",
|
|
@@ -2738,7 +3261,7 @@ const listByClusterOperationSpec$1 = {
|
|
|
2738
3261
|
clusterName
|
|
2739
3262
|
],
|
|
2740
3263
|
headerParameters: [accept],
|
|
2741
|
-
serializer: serializer$
|
|
3264
|
+
serializer: serializer$3
|
|
2742
3265
|
};
|
|
2743
3266
|
const createOperationSpec = {
|
|
2744
3267
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
@@ -2771,7 +3294,7 @@ const createOperationSpec = {
|
|
|
2771
3294
|
],
|
|
2772
3295
|
headerParameters: [accept, contentType],
|
|
2773
3296
|
mediaType: "json",
|
|
2774
|
-
serializer: serializer$
|
|
3297
|
+
serializer: serializer$3
|
|
2775
3298
|
};
|
|
2776
3299
|
const updateOperationSpec = {
|
|
2777
3300
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
@@ -2804,7 +3327,7 @@ const updateOperationSpec = {
|
|
|
2804
3327
|
],
|
|
2805
3328
|
headerParameters: [accept, contentType],
|
|
2806
3329
|
mediaType: "json",
|
|
2807
|
-
serializer: serializer$
|
|
3330
|
+
serializer: serializer$3
|
|
2808
3331
|
};
|
|
2809
3332
|
const getOperationSpec$1 = {
|
|
2810
3333
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
@@ -2826,7 +3349,7 @@ const getOperationSpec$1 = {
|
|
|
2826
3349
|
databaseName
|
|
2827
3350
|
],
|
|
2828
3351
|
headerParameters: [accept],
|
|
2829
|
-
serializer: serializer$
|
|
3352
|
+
serializer: serializer$3
|
|
2830
3353
|
};
|
|
2831
3354
|
const deleteOperationSpec$1 = {
|
|
2832
3355
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
@@ -2849,7 +3372,7 @@ const deleteOperationSpec$1 = {
|
|
|
2849
3372
|
databaseName
|
|
2850
3373
|
],
|
|
2851
3374
|
headerParameters: [accept],
|
|
2852
|
-
serializer: serializer$
|
|
3375
|
+
serializer: serializer$3
|
|
2853
3376
|
};
|
|
2854
3377
|
const listKeysOperationSpec = {
|
|
2855
3378
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
|
|
@@ -2871,7 +3394,7 @@ const listKeysOperationSpec = {
|
|
|
2871
3394
|
databaseName
|
|
2872
3395
|
],
|
|
2873
3396
|
headerParameters: [accept],
|
|
2874
|
-
serializer: serializer$
|
|
3397
|
+
serializer: serializer$3
|
|
2875
3398
|
};
|
|
2876
3399
|
const regenerateKeyOperationSpec = {
|
|
2877
3400
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
|
|
@@ -2904,7 +3427,7 @@ const regenerateKeyOperationSpec = {
|
|
|
2904
3427
|
],
|
|
2905
3428
|
headerParameters: [accept, contentType],
|
|
2906
3429
|
mediaType: "json",
|
|
2907
|
-
serializer: serializer$
|
|
3430
|
+
serializer: serializer$3
|
|
2908
3431
|
};
|
|
2909
3432
|
const importOperationSpec = {
|
|
2910
3433
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
|
|
@@ -2929,7 +3452,7 @@ const importOperationSpec = {
|
|
|
2929
3452
|
],
|
|
2930
3453
|
headerParameters: [accept, contentType],
|
|
2931
3454
|
mediaType: "json",
|
|
2932
|
-
serializer: serializer$
|
|
3455
|
+
serializer: serializer$3
|
|
2933
3456
|
};
|
|
2934
3457
|
const exportOperationSpec = {
|
|
2935
3458
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
|
|
@@ -2954,7 +3477,7 @@ const exportOperationSpec = {
|
|
|
2954
3477
|
],
|
|
2955
3478
|
headerParameters: [accept, contentType],
|
|
2956
3479
|
mediaType: "json",
|
|
2957
|
-
serializer: serializer$
|
|
3480
|
+
serializer: serializer$3
|
|
2958
3481
|
};
|
|
2959
3482
|
const forceUnlinkOperationSpec = {
|
|
2960
3483
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink",
|
|
@@ -2979,7 +3502,32 @@ const forceUnlinkOperationSpec = {
|
|
|
2979
3502
|
],
|
|
2980
3503
|
headerParameters: [accept, contentType],
|
|
2981
3504
|
mediaType: "json",
|
|
2982
|
-
serializer: serializer$
|
|
3505
|
+
serializer: serializer$3
|
|
3506
|
+
};
|
|
3507
|
+
const flushOperationSpec = {
|
|
3508
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush",
|
|
3509
|
+
httpMethod: "POST",
|
|
3510
|
+
responses: {
|
|
3511
|
+
200: {},
|
|
3512
|
+
201: {},
|
|
3513
|
+
202: {},
|
|
3514
|
+
204: {},
|
|
3515
|
+
default: {
|
|
3516
|
+
bodyMapper: ErrorResponse
|
|
3517
|
+
}
|
|
3518
|
+
},
|
|
3519
|
+
requestBody: parameters8,
|
|
3520
|
+
queryParameters: [apiVersion],
|
|
3521
|
+
urlParameters: [
|
|
3522
|
+
$host,
|
|
3523
|
+
subscriptionId,
|
|
3524
|
+
resourceGroupName,
|
|
3525
|
+
clusterName,
|
|
3526
|
+
databaseName
|
|
3527
|
+
],
|
|
3528
|
+
headerParameters: [accept, contentType],
|
|
3529
|
+
mediaType: "json",
|
|
3530
|
+
serializer: serializer$3
|
|
2983
3531
|
};
|
|
2984
3532
|
const listByClusterNextOperationSpec = {
|
|
2985
3533
|
path: "{nextLink}",
|
|
@@ -3000,7 +3548,7 @@ const listByClusterNextOperationSpec = {
|
|
|
3000
3548
|
clusterName
|
|
3001
3549
|
],
|
|
3002
3550
|
headerParameters: [accept],
|
|
3003
|
-
serializer: serializer$
|
|
3551
|
+
serializer: serializer$3
|
|
3004
3552
|
};
|
|
3005
3553
|
|
|
3006
3554
|
/*
|
|
@@ -3082,7 +3630,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3082
3630
|
* @param options The options parameters.
|
|
3083
3631
|
*/
|
|
3084
3632
|
_list(resourceGroupName, clusterName, options) {
|
|
3085
|
-
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec);
|
|
3633
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec$1);
|
|
3086
3634
|
}
|
|
3087
3635
|
/**
|
|
3088
3636
|
* Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
@@ -3115,7 +3663,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3115
3663
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3116
3664
|
return this.client.sendOperationRequest(args, spec);
|
|
3117
3665
|
});
|
|
3118
|
-
const
|
|
3666
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3119
3667
|
var _a;
|
|
3120
3668
|
let currentRawResponse = undefined;
|
|
3121
3669
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3134,15 +3682,19 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3134
3682
|
}
|
|
3135
3683
|
};
|
|
3136
3684
|
});
|
|
3137
|
-
const lro =
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3685
|
+
const lro = createLroSpec({
|
|
3686
|
+
sendOperationFn,
|
|
3687
|
+
args: {
|
|
3688
|
+
resourceGroupName,
|
|
3689
|
+
clusterName,
|
|
3690
|
+
privateEndpointConnectionName,
|
|
3691
|
+
properties,
|
|
3692
|
+
options
|
|
3693
|
+
},
|
|
3694
|
+
spec: putOperationSpec
|
|
3695
|
+
});
|
|
3696
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3697
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3146
3698
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3147
3699
|
});
|
|
3148
3700
|
yield poller.poll();
|
|
@@ -3183,8 +3735,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3183
3735
|
}
|
|
3184
3736
|
}
|
|
3185
3737
|
// Operation Specifications
|
|
3186
|
-
const serializer$
|
|
3187
|
-
const listOperationSpec = {
|
|
3738
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3739
|
+
const listOperationSpec$1 = {
|
|
3188
3740
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
|
|
3189
3741
|
httpMethod: "GET",
|
|
3190
3742
|
responses: {
|
|
@@ -3203,7 +3755,7 @@ const listOperationSpec = {
|
|
|
3203
3755
|
clusterName
|
|
3204
3756
|
],
|
|
3205
3757
|
headerParameters: [accept],
|
|
3206
|
-
serializer: serializer$
|
|
3758
|
+
serializer: serializer$2
|
|
3207
3759
|
};
|
|
3208
3760
|
const getOperationSpec = {
|
|
3209
3761
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -3225,7 +3777,7 @@ const getOperationSpec = {
|
|
|
3225
3777
|
privateEndpointConnectionName
|
|
3226
3778
|
],
|
|
3227
3779
|
headerParameters: [accept],
|
|
3228
|
-
serializer: serializer$
|
|
3780
|
+
serializer: serializer$2
|
|
3229
3781
|
};
|
|
3230
3782
|
const putOperationSpec = {
|
|
3231
3783
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -3258,7 +3810,7 @@ const putOperationSpec = {
|
|
|
3258
3810
|
],
|
|
3259
3811
|
headerParameters: [accept, contentType],
|
|
3260
3812
|
mediaType: "json",
|
|
3261
|
-
serializer: serializer$
|
|
3813
|
+
serializer: serializer$2
|
|
3262
3814
|
};
|
|
3263
3815
|
const deleteOperationSpec = {
|
|
3264
3816
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -3279,7 +3831,7 @@ const deleteOperationSpec = {
|
|
|
3279
3831
|
privateEndpointConnectionName
|
|
3280
3832
|
],
|
|
3281
3833
|
headerParameters: [accept],
|
|
3282
|
-
serializer: serializer$
|
|
3834
|
+
serializer: serializer$2
|
|
3283
3835
|
};
|
|
3284
3836
|
|
|
3285
3837
|
/*
|
|
@@ -3365,7 +3917,7 @@ class PrivateLinkResourcesImpl {
|
|
|
3365
3917
|
}
|
|
3366
3918
|
}
|
|
3367
3919
|
// Operation Specifications
|
|
3368
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3920
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3369
3921
|
const listByClusterOperationSpec = {
|
|
3370
3922
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources",
|
|
3371
3923
|
httpMethod: "GET",
|
|
@@ -3385,6 +3937,109 @@ const listByClusterOperationSpec = {
|
|
|
3385
3937
|
clusterName
|
|
3386
3938
|
],
|
|
3387
3939
|
headerParameters: [accept],
|
|
3940
|
+
serializer: serializer$1
|
|
3941
|
+
};
|
|
3942
|
+
|
|
3943
|
+
/*
|
|
3944
|
+
* Copyright (c) Microsoft Corporation.
|
|
3945
|
+
* Licensed under the MIT License.
|
|
3946
|
+
*
|
|
3947
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3948
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3949
|
+
*/
|
|
3950
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3951
|
+
/** Class containing Skus operations. */
|
|
3952
|
+
class SkusImpl {
|
|
3953
|
+
/**
|
|
3954
|
+
* Initialize a new instance of the class Skus class.
|
|
3955
|
+
* @param client Reference to the service client
|
|
3956
|
+
*/
|
|
3957
|
+
constructor(client) {
|
|
3958
|
+
this.client = client;
|
|
3959
|
+
}
|
|
3960
|
+
/**
|
|
3961
|
+
* Gets information about skus in specified location for the given subscription id
|
|
3962
|
+
* @param location The name of Azure region.
|
|
3963
|
+
* @param options The options parameters.
|
|
3964
|
+
*/
|
|
3965
|
+
list(location, options) {
|
|
3966
|
+
const iter = this.listPagingAll(location, options);
|
|
3967
|
+
return {
|
|
3968
|
+
next() {
|
|
3969
|
+
return iter.next();
|
|
3970
|
+
},
|
|
3971
|
+
[Symbol.asyncIterator]() {
|
|
3972
|
+
return this;
|
|
3973
|
+
},
|
|
3974
|
+
byPage: (settings) => {
|
|
3975
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3976
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3977
|
+
}
|
|
3978
|
+
return this.listPagingPage(location, options, settings);
|
|
3979
|
+
}
|
|
3980
|
+
};
|
|
3981
|
+
}
|
|
3982
|
+
listPagingPage(location, options, _settings) {
|
|
3983
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3984
|
+
let result;
|
|
3985
|
+
result = yield tslib.__await(this._list(location, options));
|
|
3986
|
+
yield yield tslib.__await(result.value || []);
|
|
3987
|
+
});
|
|
3988
|
+
}
|
|
3989
|
+
listPagingAll(location, options) {
|
|
3990
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3991
|
+
var _a, e_1, _b, _c;
|
|
3992
|
+
try {
|
|
3993
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3994
|
+
_c = _f.value;
|
|
3995
|
+
_d = false;
|
|
3996
|
+
try {
|
|
3997
|
+
const page = _c;
|
|
3998
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3999
|
+
}
|
|
4000
|
+
finally {
|
|
4001
|
+
_d = true;
|
|
4002
|
+
}
|
|
4003
|
+
}
|
|
4004
|
+
}
|
|
4005
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4006
|
+
finally {
|
|
4007
|
+
try {
|
|
4008
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4009
|
+
}
|
|
4010
|
+
finally { if (e_1) throw e_1.error; }
|
|
4011
|
+
}
|
|
4012
|
+
});
|
|
4013
|
+
}
|
|
4014
|
+
/**
|
|
4015
|
+
* Gets information about skus in specified location for the given subscription id
|
|
4016
|
+
* @param location The name of Azure region.
|
|
4017
|
+
* @param options The options parameters.
|
|
4018
|
+
*/
|
|
4019
|
+
_list(location, options) {
|
|
4020
|
+
return this.client.sendOperationRequest({ location, options }, listOperationSpec);
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
4023
|
+
// Operation Specifications
|
|
4024
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4025
|
+
const listOperationSpec = {
|
|
4026
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus",
|
|
4027
|
+
httpMethod: "GET",
|
|
4028
|
+
responses: {
|
|
4029
|
+
200: {
|
|
4030
|
+
bodyMapper: RegionSkuDetails
|
|
4031
|
+
},
|
|
4032
|
+
default: {
|
|
4033
|
+
bodyMapper: ErrorResponse
|
|
4034
|
+
}
|
|
4035
|
+
},
|
|
4036
|
+
queryParameters: [apiVersion],
|
|
4037
|
+
urlParameters: [
|
|
4038
|
+
$host,
|
|
4039
|
+
location,
|
|
4040
|
+
subscriptionId
|
|
4041
|
+
],
|
|
4042
|
+
headerParameters: [accept],
|
|
3388
4043
|
serializer
|
|
3389
4044
|
};
|
|
3390
4045
|
|
|
@@ -3418,7 +4073,7 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
|
|
|
3418
4073
|
requestContentType: "application/json; charset=utf-8",
|
|
3419
4074
|
credential: credentials
|
|
3420
4075
|
};
|
|
3421
|
-
const packageDetails = `azsdk-js-arm-redisenterprisecache/2.
|
|
4076
|
+
const packageDetails = `azsdk-js-arm-redisenterprisecache/2.3.0-beta.1`;
|
|
3422
4077
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3423
4078
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3424
4079
|
: `${packageDetails}`;
|
|
@@ -3451,13 +4106,14 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
|
|
|
3451
4106
|
this.subscriptionId = subscriptionId;
|
|
3452
4107
|
// Assigning values to Constant parameters
|
|
3453
4108
|
this.$host = options.$host || "https://management.azure.com";
|
|
3454
|
-
this.apiVersion = options.apiVersion || "
|
|
4109
|
+
this.apiVersion = options.apiVersion || "2023-03-01-preview";
|
|
3455
4110
|
this.operations = new OperationsImpl(this);
|
|
3456
4111
|
this.operationsStatus = new OperationsStatusImpl(this);
|
|
3457
4112
|
this.redisEnterprise = new RedisEnterpriseImpl(this);
|
|
3458
4113
|
this.databases = new DatabasesImpl(this);
|
|
3459
4114
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
3460
4115
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
4116
|
+
this.skus = new SkusImpl(this);
|
|
3461
4117
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
3462
4118
|
}
|
|
3463
4119
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|