@azure/arm-redisenterprisecache 2.0.0-alpha.20220412.1 → 2.1.0

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.
Files changed (139) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +11 -0
  3. package/dist/index.js +323 -79
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/databasesCreateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/databasesCreateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/databasesCreateSample.js +80 -0
  10. package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/databasesDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/databasesDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/databasesDeleteSample.js +32 -0
  14. package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/databasesExportSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/databasesExportSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/databasesExportSample.js +35 -0
  18. package/dist-esm/samples-dev/databasesExportSample.js.map +1 -0
  19. package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/databasesForceUnlinkSample.js +37 -0
  22. package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -0
  23. package/dist-esm/samples-dev/databasesGetSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/databasesGetSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/databasesGetSample.js +32 -0
  26. package/dist-esm/samples-dev/databasesGetSample.js.map +1 -0
  27. package/dist-esm/samples-dev/databasesImportSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/databasesImportSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/databasesImportSample.js +38 -0
  30. package/dist-esm/samples-dev/databasesImportSample.js.map +1 -0
  31. package/dist-esm/samples-dev/databasesListByClusterSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/databasesListByClusterSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/databasesListByClusterSample.js +45 -0
  34. package/dist-esm/samples-dev/databasesListByClusterSample.js.map +1 -0
  35. package/dist-esm/samples-dev/databasesListKeysSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/databasesListKeysSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/databasesListKeysSample.js +32 -0
  38. package/dist-esm/samples-dev/databasesListKeysSample.js.map +1 -0
  39. package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts +2 -0
  40. package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/databasesRegenerateKeySample.js +33 -0
  42. package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -0
  43. package/dist-esm/samples-dev/databasesUpdateSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/databasesUpdateSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/databasesUpdateSample.js +37 -0
  46. package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -0
  47. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  50. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  51. package/dist-esm/samples-dev/operationsStatusGetSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/operationsStatusGetSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/operationsStatusGetSample.js +31 -0
  54. package/dist-esm/samples-dev/operationsStatusGetSample.js.map +1 -0
  55. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
  58. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  59. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
  62. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  63. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +45 -0
  66. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  67. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +38 -0
  70. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -0
  71. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +45 -0
  74. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +1 -0
  75. package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +38 -0
  78. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -0
  79. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +31 -0
  82. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js.map +1 -0
  83. package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/redisEnterpriseGetSample.js +31 -0
  86. package/dist-esm/samples-dev/redisEnterpriseGetSample.js.map +1 -0
  87. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +44 -0
  90. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +1 -0
  91. package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/redisEnterpriseListSample.js +43 -0
  94. package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +1 -0
  95. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +36 -0
  98. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -0
  99. package/dist-esm/src/models/index.d.ts +54 -1
  100. package/dist-esm/src/models/index.d.ts.map +1 -1
  101. package/dist-esm/src/models/index.js +9 -0
  102. package/dist-esm/src/models/index.js.map +1 -1
  103. package/dist-esm/src/models/mappers.d.ts +3 -0
  104. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  105. package/dist-esm/src/models/mappers.js +80 -0
  106. package/dist-esm/src/models/mappers.js.map +1 -1
  107. package/dist-esm/src/models/parameters.d.ts +1 -0
  108. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  109. package/dist-esm/src/models/parameters.js +6 -2
  110. package/dist-esm/src/models/parameters.js.map +1 -1
  111. package/dist-esm/src/operations/databases.d.ts +19 -1
  112. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  113. package/dist-esm/src/operations/databases.js +99 -6
  114. package/dist-esm/src/operations/databases.js.map +1 -1
  115. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  116. package/dist-esm/src/operations/privateEndpointConnections.js +3 -1
  117. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  118. package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
  119. package/dist-esm/src/operations/redisEnterprise.js +9 -3
  120. package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
  121. package/dist-esm/src/operationsInterfaces/databases.d.ts +19 -1
  122. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
  123. package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
  124. package/dist-esm/src/redisEnterpriseManagementClient.js +4 -3
  125. package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
  126. package/package.json +9 -9
  127. package/review/arm-redisenterprisecache.api.md +44 -0
  128. package/rollup.config.js +6 -72
  129. package/src/models/index.ts +61 -1
  130. package/src/models/mappers.ts +84 -0
  131. package/src/models/parameters.ts +7 -1
  132. package/src/operations/databases.ts +139 -6
  133. package/src/operations/privateEndpointConnections.ts +3 -1
  134. package/src/operations/redisEnterprise.ts +9 -3
  135. package/src/operationsInterfaces/databases.ts +33 -1
  136. package/src/redisEnterpriseManagementClient.ts +4 -3
  137. package/tsconfig.json +18 -5
  138. package/types/arm-redisenterprisecache.d.ts +78 -1
  139. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -6,6 +6,26 @@ var coreClient = require('@azure/core-client');
6
6
  var tslib = require('tslib');
7
7
  var coreLro = require('@azure/core-lro');
8
8
 
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
28
+
9
29
  /*
10
30
  * Copyright (c) Microsoft Corporation.
11
31
  * Licensed under the MIT License.
@@ -13,14 +33,20 @@ var coreLro = require('@azure/core-lro');
13
33
  * Code generated by Microsoft (R) AutoRest Code Generator.
14
34
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
35
  */
36
+ /** Known values of {@link Origin} that the service accepts. */
37
+ exports.KnownOrigin = void 0;
16
38
  (function (KnownOrigin) {
17
39
  KnownOrigin["User"] = "user";
18
40
  KnownOrigin["System"] = "system";
19
41
  KnownOrigin["UserSystem"] = "user,system";
20
42
  })(exports.KnownOrigin || (exports.KnownOrigin = {}));
43
+ /** Known values of {@link ActionType} that the service accepts. */
44
+ exports.KnownActionType = void 0;
21
45
  (function (KnownActionType) {
22
46
  KnownActionType["Internal"] = "Internal";
23
47
  })(exports.KnownActionType || (exports.KnownActionType = {}));
48
+ /** Known values of {@link SkuName} that the service accepts. */
49
+ exports.KnownSkuName = void 0;
24
50
  (function (KnownSkuName) {
25
51
  KnownSkuName["EnterpriseE10"] = "Enterprise_E10";
26
52
  KnownSkuName["EnterpriseE20"] = "Enterprise_E20";
@@ -30,11 +56,15 @@ var coreLro = require('@azure/core-lro');
30
56
  KnownSkuName["EnterpriseFlashF700"] = "EnterpriseFlash_F700";
31
57
  KnownSkuName["EnterpriseFlashF1500"] = "EnterpriseFlash_F1500";
32
58
  })(exports.KnownSkuName || (exports.KnownSkuName = {}));
59
+ /** Known values of {@link TlsVersion} that the service accepts. */
60
+ exports.KnownTlsVersion = void 0;
33
61
  (function (KnownTlsVersion) {
34
62
  KnownTlsVersion["One0"] = "1.0";
35
63
  KnownTlsVersion["One1"] = "1.1";
36
64
  KnownTlsVersion["One2"] = "1.2";
37
65
  })(exports.KnownTlsVersion || (exports.KnownTlsVersion = {}));
66
+ /** Known values of {@link ProvisioningState} that the service accepts. */
67
+ exports.KnownProvisioningState = void 0;
38
68
  (function (KnownProvisioningState) {
39
69
  KnownProvisioningState["Succeeded"] = "Succeeded";
40
70
  KnownProvisioningState["Failed"] = "Failed";
@@ -43,6 +73,8 @@ var coreLro = require('@azure/core-lro');
43
73
  KnownProvisioningState["Updating"] = "Updating";
44
74
  KnownProvisioningState["Deleting"] = "Deleting";
45
75
  })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
76
+ /** Known values of {@link ResourceState} that the service accepts. */
77
+ exports.KnownResourceState = void 0;
46
78
  (function (KnownResourceState) {
47
79
  KnownResourceState["Running"] = "Running";
48
80
  KnownResourceState["Creating"] = "Creating";
@@ -57,25 +89,35 @@ var coreLro = require('@azure/core-lro');
57
89
  KnownResourceState["DisableFailed"] = "DisableFailed";
58
90
  KnownResourceState["Disabled"] = "Disabled";
59
91
  })(exports.KnownResourceState || (exports.KnownResourceState = {}));
92
+ /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
93
+ exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
60
94
  (function (KnownPrivateEndpointServiceConnectionStatus) {
61
95
  KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
62
96
  KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
63
97
  KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
64
98
  })(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
99
+ /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
100
+ exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
65
101
  (function (KnownPrivateEndpointConnectionProvisioningState) {
66
102
  KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
67
103
  KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
68
104
  KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
69
105
  KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
70
106
  })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
107
+ /** Known values of {@link Protocol} that the service accepts. */
108
+ exports.KnownProtocol = void 0;
71
109
  (function (KnownProtocol) {
72
110
  KnownProtocol["Encrypted"] = "Encrypted";
73
111
  KnownProtocol["Plaintext"] = "Plaintext";
74
112
  })(exports.KnownProtocol || (exports.KnownProtocol = {}));
113
+ /** Known values of {@link ClusteringPolicy} that the service accepts. */
114
+ exports.KnownClusteringPolicy = void 0;
75
115
  (function (KnownClusteringPolicy) {
76
116
  KnownClusteringPolicy["EnterpriseCluster"] = "EnterpriseCluster";
77
117
  KnownClusteringPolicy["OSSCluster"] = "OSSCluster";
78
118
  })(exports.KnownClusteringPolicy || (exports.KnownClusteringPolicy = {}));
119
+ /** Known values of {@link EvictionPolicy} that the service accepts. */
120
+ exports.KnownEvictionPolicy = void 0;
79
121
  (function (KnownEvictionPolicy) {
80
122
  KnownEvictionPolicy["AllKeysLFU"] = "AllKeysLFU";
81
123
  KnownEvictionPolicy["AllKeysLRU"] = "AllKeysLRU";
@@ -86,15 +128,28 @@ var coreLro = require('@azure/core-lro');
86
128
  KnownEvictionPolicy["VolatileRandom"] = "VolatileRandom";
87
129
  KnownEvictionPolicy["NoEviction"] = "NoEviction";
88
130
  })(exports.KnownEvictionPolicy || (exports.KnownEvictionPolicy = {}));
131
+ /** Known values of {@link AofFrequency} that the service accepts. */
132
+ exports.KnownAofFrequency = void 0;
89
133
  (function (KnownAofFrequency) {
90
134
  KnownAofFrequency["OneS"] = "1s";
91
135
  KnownAofFrequency["Always"] = "always";
92
136
  })(exports.KnownAofFrequency || (exports.KnownAofFrequency = {}));
137
+ /** Known values of {@link RdbFrequency} that the service accepts. */
138
+ exports.KnownRdbFrequency = void 0;
93
139
  (function (KnownRdbFrequency) {
94
140
  KnownRdbFrequency["OneH"] = "1h";
95
141
  KnownRdbFrequency["SixH"] = "6h";
96
142
  KnownRdbFrequency["TwelveH"] = "12h";
97
143
  })(exports.KnownRdbFrequency || (exports.KnownRdbFrequency = {}));
144
+ /** Known values of {@link LinkState} that the service accepts. */
145
+ exports.KnownLinkState = void 0;
146
+ (function (KnownLinkState) {
147
+ KnownLinkState["Linked"] = "Linked";
148
+ KnownLinkState["Linking"] = "Linking";
149
+ KnownLinkState["Unlinking"] = "Unlinking";
150
+ KnownLinkState["LinkFailed"] = "LinkFailed";
151
+ KnownLinkState["UnlinkFailed"] = "UnlinkFailed";
152
+ })(exports.KnownLinkState || (exports.KnownLinkState = {}));
98
153
 
99
154
  /*
100
155
  * Copyright (c) Microsoft Corporation.
@@ -622,6 +677,53 @@ const Module = {
622
677
  }
623
678
  }
624
679
  };
680
+ const DatabasePropertiesGeoReplication = {
681
+ type: {
682
+ name: "Composite",
683
+ className: "DatabasePropertiesGeoReplication",
684
+ modelProperties: {
685
+ groupNickname: {
686
+ serializedName: "groupNickname",
687
+ type: {
688
+ name: "String"
689
+ }
690
+ },
691
+ linkedDatabases: {
692
+ serializedName: "linkedDatabases",
693
+ type: {
694
+ name: "Sequence",
695
+ element: {
696
+ type: {
697
+ name: "Composite",
698
+ className: "LinkedDatabase"
699
+ }
700
+ }
701
+ }
702
+ }
703
+ }
704
+ }
705
+ };
706
+ const LinkedDatabase = {
707
+ type: {
708
+ name: "Composite",
709
+ className: "LinkedDatabase",
710
+ modelProperties: {
711
+ id: {
712
+ serializedName: "id",
713
+ type: {
714
+ name: "String"
715
+ }
716
+ },
717
+ state: {
718
+ serializedName: "state",
719
+ readOnly: true,
720
+ type: {
721
+ name: "String"
722
+ }
723
+ }
724
+ }
725
+ }
726
+ };
625
727
  const DatabaseUpdate = {
626
728
  type: {
627
729
  name: "Composite",
@@ -683,6 +785,13 @@ const DatabaseUpdate = {
683
785
  }
684
786
  }
685
787
  }
788
+ },
789
+ geoReplication: {
790
+ serializedName: "properties.geoReplication",
791
+ type: {
792
+ name: "Composite",
793
+ className: "DatabasePropertiesGeoReplication"
794
+ }
686
795
  }
687
796
  }
688
797
  }
@@ -800,6 +909,26 @@ const PrivateLinkResourceListResult = {
800
909
  }
801
910
  }
802
911
  };
912
+ const ForceUnlinkParameters = {
913
+ type: {
914
+ name: "Composite",
915
+ className: "ForceUnlinkParameters",
916
+ modelProperties: {
917
+ ids: {
918
+ serializedName: "ids",
919
+ required: true,
920
+ type: {
921
+ name: "Sequence",
922
+ element: {
923
+ type: {
924
+ name: "String"
925
+ }
926
+ }
927
+ }
928
+ }
929
+ }
930
+ }
931
+ };
803
932
  const PrivateEndpointConnection = {
804
933
  type: {
805
934
  name: "Composite",
@@ -1002,6 +1131,12 @@ const Database = {
1002
1131
  }
1003
1132
  }
1004
1133
  }
1134
+ }, geoReplication: {
1135
+ serializedName: "properties.geoReplication",
1136
+ type: {
1137
+ name: "Composite",
1138
+ className: "DatabasePropertiesGeoReplication"
1139
+ }
1005
1140
  } })
1006
1141
  }
1007
1142
  };
@@ -1024,6 +1159,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
1024
1159
  DatabaseList: DatabaseList,
1025
1160
  Persistence: Persistence,
1026
1161
  Module: Module,
1162
+ DatabasePropertiesGeoReplication: DatabasePropertiesGeoReplication,
1163
+ LinkedDatabase: LinkedDatabase,
1027
1164
  DatabaseUpdate: DatabaseUpdate,
1028
1165
  AccessKeys: AccessKeys,
1029
1166
  RegenerateKeyParameters: RegenerateKeyParameters,
@@ -1031,6 +1168,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
1031
1168
  ExportClusterParameters: ExportClusterParameters,
1032
1169
  PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
1033
1170
  PrivateLinkResourceListResult: PrivateLinkResourceListResult,
1171
+ ForceUnlinkParameters: ForceUnlinkParameters,
1034
1172
  PrivateEndpointConnection: PrivateEndpointConnection,
1035
1173
  TrackedResource: TrackedResource,
1036
1174
  ProxyResource: ProxyResource,
@@ -1071,7 +1209,7 @@ const $host = {
1071
1209
  const apiVersion = {
1072
1210
  parameterPath: "apiVersion",
1073
1211
  mapper: {
1074
- defaultValue: "2021-08-01",
1212
+ defaultValue: "2022-01-01",
1075
1213
  isConstant: true,
1076
1214
  serializedName: "api-version",
1077
1215
  type: {
@@ -1196,6 +1334,10 @@ const parameters6 = {
1196
1334
  parameterPath: "parameters",
1197
1335
  mapper: ExportClusterParameters
1198
1336
  };
1337
+ const parameters7 = {
1338
+ parameterPath: "parameters",
1339
+ mapper: ForceUnlinkParameters
1340
+ };
1199
1341
  const privateEndpointConnectionName = {
1200
1342
  parameterPath: "privateEndpointConnectionName",
1201
1343
  mapper: {
@@ -1281,7 +1423,7 @@ class OperationsImpl {
1281
1423
  * @param options The options parameters.
1282
1424
  */
1283
1425
  _list(options) {
1284
- return this.client.sendOperationRequest({ options }, listOperationSpec);
1426
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
1285
1427
  }
1286
1428
  /**
1287
1429
  * ListNext
@@ -1289,12 +1431,12 @@ class OperationsImpl {
1289
1431
  * @param options The options parameters.
1290
1432
  */
1291
1433
  _listNext(nextLink, options) {
1292
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1434
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
1293
1435
  }
1294
1436
  }
1295
1437
  // Operation Specifications
1296
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1297
- const listOperationSpec = {
1438
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1439
+ const listOperationSpec$2 = {
1298
1440
  path: "/providers/Microsoft.Cache/operations",
1299
1441
  httpMethod: "GET",
1300
1442
  responses: {
@@ -1308,9 +1450,9 @@ const listOperationSpec = {
1308
1450
  queryParameters: [apiVersion],
1309
1451
  urlParameters: [$host],
1310
1452
  headerParameters: [accept],
1311
- serializer
1453
+ serializer: serializer$5
1312
1454
  };
1313
- const listNextOperationSpec = {
1455
+ const listNextOperationSpec$1 = {
1314
1456
  path: "{nextLink}",
1315
1457
  httpMethod: "GET",
1316
1458
  responses: {
@@ -1324,7 +1466,7 @@ const listNextOperationSpec = {
1324
1466
  queryParameters: [apiVersion],
1325
1467
  urlParameters: [$host, nextLink],
1326
1468
  headerParameters: [accept],
1327
- serializer
1469
+ serializer: serializer$5
1328
1470
  };
1329
1471
 
1330
1472
  /*
@@ -1350,12 +1492,12 @@ class OperationsStatusImpl {
1350
1492
  * @param options The options parameters.
1351
1493
  */
1352
1494
  get(location, operationId, options) {
1353
- return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec);
1495
+ return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec$3);
1354
1496
  }
1355
1497
  }
1356
1498
  // Operation Specifications
1357
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
1358
- const getOperationSpec = {
1499
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1500
+ const getOperationSpec$3 = {
1359
1501
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}",
1360
1502
  httpMethod: "GET",
1361
1503
  responses: {
@@ -1374,7 +1516,7 @@ const getOperationSpec = {
1374
1516
  subscriptionId
1375
1517
  ],
1376
1518
  headerParameters: [accept],
1377
- serializer: serializer$1
1519
+ serializer: serializer$4
1378
1520
  };
1379
1521
 
1380
1522
  /*
@@ -1550,12 +1692,14 @@ class RedisEnterpriseImpl {
1550
1692
  }
1551
1693
  };
1552
1694
  });
1553
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOperationSpec);
1554
- return new coreLro.LroEngine(lro, {
1695
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOperationSpec$1);
1696
+ const poller = new coreLro.LroEngine(lro, {
1555
1697
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1556
1698
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1557
1699
  lroResourceLocationConfig: "original-uri"
1558
1700
  });
1701
+ yield poller.poll();
1702
+ return poller;
1559
1703
  });
1560
1704
  }
1561
1705
  /**
@@ -1602,12 +1746,14 @@ class RedisEnterpriseImpl {
1602
1746
  }
1603
1747
  };
1604
1748
  });
1605
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, updateOperationSpec);
1606
- return new coreLro.LroEngine(lro, {
1749
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, updateOperationSpec$1);
1750
+ const poller = new coreLro.LroEngine(lro, {
1607
1751
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1608
1752
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1609
1753
  lroResourceLocationConfig: "azure-async-operation"
1610
1754
  });
1755
+ yield poller.poll();
1756
+ return poller;
1611
1757
  });
1612
1758
  }
1613
1759
  /**
@@ -1653,12 +1799,14 @@ class RedisEnterpriseImpl {
1653
1799
  }
1654
1800
  };
1655
1801
  });
1656
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec);
1657
- return new coreLro.LroEngine(lro, {
1802
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec$2);
1803
+ const poller = new coreLro.LroEngine(lro, {
1658
1804
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1659
1805
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1660
1806
  lroResourceLocationConfig: "azure-async-operation"
1661
1807
  });
1808
+ yield poller.poll();
1809
+ return poller;
1662
1810
  });
1663
1811
  }
1664
1812
  /**
@@ -1680,7 +1828,7 @@ class RedisEnterpriseImpl {
1680
1828
  * @param options The options parameters.
1681
1829
  */
1682
1830
  get(resourceGroupName, clusterName, options) {
1683
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, getOperationSpec$1);
1831
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, getOperationSpec$2);
1684
1832
  }
1685
1833
  /**
1686
1834
  * Lists all RedisEnterprise clusters in a resource group.
@@ -1712,12 +1860,12 @@ class RedisEnterpriseImpl {
1712
1860
  * @param options The options parameters.
1713
1861
  */
1714
1862
  _listNext(nextLink, options) {
1715
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
1863
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1716
1864
  }
1717
1865
  }
1718
1866
  // Operation Specifications
1719
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1720
- const createOperationSpec = {
1867
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1868
+ const createOperationSpec$1 = {
1721
1869
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
1722
1870
  httpMethod: "PUT",
1723
1871
  responses: {
@@ -1747,9 +1895,9 @@ const createOperationSpec = {
1747
1895
  ],
1748
1896
  headerParameters: [accept, contentType],
1749
1897
  mediaType: "json",
1750
- serializer: serializer$2
1898
+ serializer: serializer$3
1751
1899
  };
1752
- const updateOperationSpec = {
1900
+ const updateOperationSpec$1 = {
1753
1901
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
1754
1902
  httpMethod: "PATCH",
1755
1903
  responses: {
@@ -1779,9 +1927,9 @@ const updateOperationSpec = {
1779
1927
  ],
1780
1928
  headerParameters: [accept, contentType],
1781
1929
  mediaType: "json",
1782
- serializer: serializer$2
1930
+ serializer: serializer$3
1783
1931
  };
1784
- const deleteOperationSpec = {
1932
+ const deleteOperationSpec$2 = {
1785
1933
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
1786
1934
  httpMethod: "DELETE",
1787
1935
  responses: {
@@ -1801,9 +1949,9 @@ const deleteOperationSpec = {
1801
1949
  clusterName
1802
1950
  ],
1803
1951
  headerParameters: [accept],
1804
- serializer: serializer$2
1952
+ serializer: serializer$3
1805
1953
  };
1806
- const getOperationSpec$1 = {
1954
+ const getOperationSpec$2 = {
1807
1955
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
1808
1956
  httpMethod: "GET",
1809
1957
  responses: {
@@ -1822,7 +1970,7 @@ const getOperationSpec$1 = {
1822
1970
  clusterName
1823
1971
  ],
1824
1972
  headerParameters: [accept],
1825
- serializer: serializer$2
1973
+ serializer: serializer$3
1826
1974
  };
1827
1975
  const listByResourceGroupOperationSpec = {
1828
1976
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise",
@@ -1842,7 +1990,7 @@ const listByResourceGroupOperationSpec = {
1842
1990
  resourceGroupName
1843
1991
  ],
1844
1992
  headerParameters: [accept],
1845
- serializer: serializer$2
1993
+ serializer: serializer$3
1846
1994
  };
1847
1995
  const listOperationSpec$1 = {
1848
1996
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise",
@@ -1858,7 +2006,7 @@ const listOperationSpec$1 = {
1858
2006
  queryParameters: [apiVersion],
1859
2007
  urlParameters: [$host, subscriptionId],
1860
2008
  headerParameters: [accept],
1861
- serializer: serializer$2
2009
+ serializer: serializer$3
1862
2010
  };
1863
2011
  const listByResourceGroupNextOperationSpec = {
1864
2012
  path: "{nextLink}",
@@ -1879,9 +2027,9 @@ const listByResourceGroupNextOperationSpec = {
1879
2027
  resourceGroupName
1880
2028
  ],
1881
2029
  headerParameters: [accept],
1882
- serializer: serializer$2
2030
+ serializer: serializer$3
1883
2031
  };
1884
- const listNextOperationSpec$1 = {
2032
+ const listNextOperationSpec = {
1885
2033
  path: "{nextLink}",
1886
2034
  httpMethod: "GET",
1887
2035
  responses: {
@@ -1899,7 +2047,7 @@ const listNextOperationSpec$1 = {
1899
2047
  subscriptionId
1900
2048
  ],
1901
2049
  headerParameters: [accept],
1902
- serializer: serializer$2
2050
+ serializer: serializer$3
1903
2051
  };
1904
2052
 
1905
2053
  /*
@@ -1976,7 +2124,7 @@ class DatabasesImpl {
1976
2124
  * @param options The options parameters.
1977
2125
  */
1978
2126
  _listByCluster(resourceGroupName, clusterName, options) {
1979
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
2127
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec$1);
1980
2128
  }
1981
2129
  /**
1982
2130
  * Creates a database
@@ -2010,12 +2158,14 @@ class DatabasesImpl {
2010
2158
  }
2011
2159
  };
2012
2160
  });
2013
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, createOperationSpec$1);
2014
- return new coreLro.LroEngine(lro, {
2161
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, createOperationSpec);
2162
+ const poller = new coreLro.LroEngine(lro, {
2015
2163
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2016
2164
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2017
2165
  lroResourceLocationConfig: "original-uri"
2018
2166
  });
2167
+ yield poller.poll();
2168
+ return poller;
2019
2169
  });
2020
2170
  }
2021
2171
  /**
@@ -2064,12 +2214,14 @@ class DatabasesImpl {
2064
2214
  }
2065
2215
  };
2066
2216
  });
2067
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, updateOperationSpec$1);
2068
- return new coreLro.LroEngine(lro, {
2217
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, updateOperationSpec);
2218
+ const poller = new coreLro.LroEngine(lro, {
2069
2219
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2070
2220
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2071
2221
  lroResourceLocationConfig: "azure-async-operation"
2072
2222
  });
2223
+ yield poller.poll();
2224
+ return poller;
2073
2225
  });
2074
2226
  }
2075
2227
  /**
@@ -2094,7 +2246,7 @@ class DatabasesImpl {
2094
2246
  * @param options The options parameters.
2095
2247
  */
2096
2248
  get(resourceGroupName, clusterName, databaseName, options) {
2097
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, getOperationSpec$2);
2249
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, getOperationSpec$1);
2098
2250
  }
2099
2251
  /**
2100
2252
  * Deletes a single database
@@ -2128,11 +2280,13 @@ class DatabasesImpl {
2128
2280
  };
2129
2281
  });
2130
2282
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, options }, deleteOperationSpec$1);
2131
- return new coreLro.LroEngine(lro, {
2283
+ const poller = new coreLro.LroEngine(lro, {
2132
2284
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2133
2285
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2134
2286
  lroResourceLocationConfig: "azure-async-operation"
2135
2287
  });
2288
+ yield poller.poll();
2289
+ return poller;
2136
2290
  });
2137
2291
  }
2138
2292
  /**
@@ -2191,11 +2345,13 @@ class DatabasesImpl {
2191
2345
  };
2192
2346
  });
2193
2347
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, regenerateKeyOperationSpec);
2194
- return new coreLro.LroEngine(lro, {
2348
+ const poller = new coreLro.LroEngine(lro, {
2195
2349
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2196
2350
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2197
2351
  lroResourceLocationConfig: "azure-async-operation"
2198
2352
  });
2353
+ yield poller.poll();
2354
+ return poller;
2199
2355
  });
2200
2356
  }
2201
2357
  /**
@@ -2245,11 +2401,13 @@ class DatabasesImpl {
2245
2401
  };
2246
2402
  });
2247
2403
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, importOperationSpec);
2248
- return new coreLro.LroEngine(lro, {
2404
+ const poller = new coreLro.LroEngine(lro, {
2249
2405
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2250
2406
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2251
2407
  lroResourceLocationConfig: "azure-async-operation"
2252
2408
  });
2409
+ yield poller.poll();
2410
+ return poller;
2253
2411
  });
2254
2412
  }
2255
2413
  /**
@@ -2299,11 +2457,13 @@ class DatabasesImpl {
2299
2457
  };
2300
2458
  });
2301
2459
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, exportOperationSpec);
2302
- return new coreLro.LroEngine(lro, {
2460
+ const poller = new coreLro.LroEngine(lro, {
2303
2461
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2304
2462
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2305
2463
  lroResourceLocationConfig: "azure-async-operation"
2306
2464
  });
2465
+ yield poller.poll();
2466
+ return poller;
2307
2467
  });
2308
2468
  }
2309
2469
  /**
@@ -2320,6 +2480,62 @@ class DatabasesImpl {
2320
2480
  return poller.pollUntilDone();
2321
2481
  });
2322
2482
  }
2483
+ /**
2484
+ * Forcibly removes the link to the specified database resource.
2485
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2486
+ * @param clusterName The name of the RedisEnterprise cluster.
2487
+ * @param databaseName The name of the database.
2488
+ * @param parameters Information identifying the database to be unlinked.
2489
+ * @param options The options parameters.
2490
+ */
2491
+ beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options) {
2492
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2493
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2494
+ return this.client.sendOperationRequest(args, spec);
2495
+ });
2496
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2497
+ var _a;
2498
+ let currentRawResponse = undefined;
2499
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2500
+ const callback = (rawResponse, flatResponse) => {
2501
+ currentRawResponse = rawResponse;
2502
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2503
+ };
2504
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2505
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2506
+ return {
2507
+ flatResponse,
2508
+ rawResponse: {
2509
+ statusCode: currentRawResponse.status,
2510
+ body: currentRawResponse.parsedBody,
2511
+ headers: currentRawResponse.headers.toJSON()
2512
+ }
2513
+ };
2514
+ });
2515
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, forceUnlinkOperationSpec);
2516
+ const poller = new coreLro.LroEngine(lro, {
2517
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2518
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2519
+ lroResourceLocationConfig: "azure-async-operation"
2520
+ });
2521
+ yield poller.poll();
2522
+ return poller;
2523
+ });
2524
+ }
2525
+ /**
2526
+ * Forcibly removes the link to the specified database resource.
2527
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2528
+ * @param clusterName The name of the RedisEnterprise cluster.
2529
+ * @param databaseName The name of the database.
2530
+ * @param parameters Information identifying the database to be unlinked.
2531
+ * @param options The options parameters.
2532
+ */
2533
+ beginForceUnlinkAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
2534
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2535
+ const poller = yield this.beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options);
2536
+ return poller.pollUntilDone();
2537
+ });
2538
+ }
2323
2539
  /**
2324
2540
  * ListByClusterNext
2325
2541
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -2332,8 +2548,8 @@ class DatabasesImpl {
2332
2548
  }
2333
2549
  }
2334
2550
  // Operation Specifications
2335
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
2336
- const listByClusterOperationSpec = {
2551
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2552
+ const listByClusterOperationSpec$1 = {
2337
2553
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
2338
2554
  httpMethod: "GET",
2339
2555
  responses: {
@@ -2352,9 +2568,9 @@ const listByClusterOperationSpec = {
2352
2568
  clusterName
2353
2569
  ],
2354
2570
  headerParameters: [accept],
2355
- serializer: serializer$3
2571
+ serializer: serializer$2
2356
2572
  };
2357
- const createOperationSpec$1 = {
2573
+ const createOperationSpec = {
2358
2574
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
2359
2575
  httpMethod: "PUT",
2360
2576
  responses: {
@@ -2385,9 +2601,9 @@ const createOperationSpec$1 = {
2385
2601
  ],
2386
2602
  headerParameters: [accept, contentType],
2387
2603
  mediaType: "json",
2388
- serializer: serializer$3
2604
+ serializer: serializer$2
2389
2605
  };
2390
- const updateOperationSpec$1 = {
2606
+ const updateOperationSpec = {
2391
2607
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
2392
2608
  httpMethod: "PATCH",
2393
2609
  responses: {
@@ -2418,9 +2634,9 @@ const updateOperationSpec$1 = {
2418
2634
  ],
2419
2635
  headerParameters: [accept, contentType],
2420
2636
  mediaType: "json",
2421
- serializer: serializer$3
2637
+ serializer: serializer$2
2422
2638
  };
2423
- const getOperationSpec$2 = {
2639
+ const getOperationSpec$1 = {
2424
2640
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
2425
2641
  httpMethod: "GET",
2426
2642
  responses: {
@@ -2440,7 +2656,7 @@ const getOperationSpec$2 = {
2440
2656
  databaseName
2441
2657
  ],
2442
2658
  headerParameters: [accept],
2443
- serializer: serializer$3
2659
+ serializer: serializer$2
2444
2660
  };
2445
2661
  const deleteOperationSpec$1 = {
2446
2662
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
@@ -2463,7 +2679,7 @@ const deleteOperationSpec$1 = {
2463
2679
  databaseName
2464
2680
  ],
2465
2681
  headerParameters: [accept],
2466
- serializer: serializer$3
2682
+ serializer: serializer$2
2467
2683
  };
2468
2684
  const listKeysOperationSpec = {
2469
2685
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
@@ -2485,7 +2701,7 @@ const listKeysOperationSpec = {
2485
2701
  databaseName
2486
2702
  ],
2487
2703
  headerParameters: [accept],
2488
- serializer: serializer$3
2704
+ serializer: serializer$2
2489
2705
  };
2490
2706
  const regenerateKeyOperationSpec = {
2491
2707
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
@@ -2518,7 +2734,7 @@ const regenerateKeyOperationSpec = {
2518
2734
  ],
2519
2735
  headerParameters: [accept, contentType],
2520
2736
  mediaType: "json",
2521
- serializer: serializer$3
2737
+ serializer: serializer$2
2522
2738
  };
2523
2739
  const importOperationSpec = {
2524
2740
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
@@ -2543,7 +2759,7 @@ const importOperationSpec = {
2543
2759
  ],
2544
2760
  headerParameters: [accept, contentType],
2545
2761
  mediaType: "json",
2546
- serializer: serializer$3
2762
+ serializer: serializer$2
2547
2763
  };
2548
2764
  const exportOperationSpec = {
2549
2765
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
@@ -2568,7 +2784,32 @@ const exportOperationSpec = {
2568
2784
  ],
2569
2785
  headerParameters: [accept, contentType],
2570
2786
  mediaType: "json",
2571
- serializer: serializer$3
2787
+ serializer: serializer$2
2788
+ };
2789
+ const forceUnlinkOperationSpec = {
2790
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink",
2791
+ httpMethod: "POST",
2792
+ responses: {
2793
+ 200: {},
2794
+ 201: {},
2795
+ 202: {},
2796
+ 204: {},
2797
+ default: {
2798
+ bodyMapper: ErrorResponse
2799
+ }
2800
+ },
2801
+ requestBody: parameters7,
2802
+ queryParameters: [apiVersion],
2803
+ urlParameters: [
2804
+ $host,
2805
+ subscriptionId,
2806
+ resourceGroupName,
2807
+ clusterName,
2808
+ databaseName
2809
+ ],
2810
+ headerParameters: [accept, contentType],
2811
+ mediaType: "json",
2812
+ serializer: serializer$2
2572
2813
  };
2573
2814
  const listByClusterNextOperationSpec = {
2574
2815
  path: "{nextLink}",
@@ -2590,7 +2831,7 @@ const listByClusterNextOperationSpec = {
2590
2831
  clusterName
2591
2832
  ],
2592
2833
  headerParameters: [accept],
2593
- serializer: serializer$3
2834
+ serializer: serializer$2
2594
2835
  };
2595
2836
 
2596
2837
  /*
@@ -2661,7 +2902,7 @@ class PrivateEndpointConnectionsImpl {
2661
2902
  * @param options The options parameters.
2662
2903
  */
2663
2904
  _list(resourceGroupName, clusterName, options) {
2664
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec$2);
2905
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec);
2665
2906
  }
2666
2907
  /**
2667
2908
  * Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -2677,7 +2918,7 @@ class PrivateEndpointConnectionsImpl {
2677
2918
  clusterName,
2678
2919
  privateEndpointConnectionName,
2679
2920
  options
2680
- }, getOperationSpec$3);
2921
+ }, getOperationSpec);
2681
2922
  }
2682
2923
  /**
2683
2924
  * Updates the state of the specified private endpoint connection associated with the RedisEnterprise
@@ -2720,10 +2961,12 @@ class PrivateEndpointConnectionsImpl {
2720
2961
  properties,
2721
2962
  options
2722
2963
  }, putOperationSpec);
2723
- return new coreLro.LroEngine(lro, {
2964
+ const poller = new coreLro.LroEngine(lro, {
2724
2965
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2725
2966
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2726
2967
  });
2968
+ yield poller.poll();
2969
+ return poller;
2727
2970
  });
2728
2971
  }
2729
2972
  /**
@@ -2756,12 +2999,12 @@ class PrivateEndpointConnectionsImpl {
2756
2999
  clusterName,
2757
3000
  privateEndpointConnectionName,
2758
3001
  options
2759
- }, deleteOperationSpec$2);
3002
+ }, deleteOperationSpec);
2760
3003
  }
2761
3004
  }
2762
3005
  // Operation Specifications
2763
- const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
2764
- const listOperationSpec$2 = {
3006
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3007
+ const listOperationSpec = {
2765
3008
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
2766
3009
  httpMethod: "GET",
2767
3010
  responses: {
@@ -2780,9 +3023,9 @@ const listOperationSpec$2 = {
2780
3023
  clusterName
2781
3024
  ],
2782
3025
  headerParameters: [accept],
2783
- serializer: serializer$4
3026
+ serializer: serializer$1
2784
3027
  };
2785
- const getOperationSpec$3 = {
3028
+ const getOperationSpec = {
2786
3029
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
2787
3030
  httpMethod: "GET",
2788
3031
  responses: {
@@ -2802,7 +3045,7 @@ const getOperationSpec$3 = {
2802
3045
  privateEndpointConnectionName
2803
3046
  ],
2804
3047
  headerParameters: [accept],
2805
- serializer: serializer$4
3048
+ serializer: serializer$1
2806
3049
  };
2807
3050
  const putOperationSpec = {
2808
3051
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
@@ -2835,9 +3078,9 @@ const putOperationSpec = {
2835
3078
  ],
2836
3079
  headerParameters: [accept, contentType],
2837
3080
  mediaType: "json",
2838
- serializer: serializer$4
3081
+ serializer: serializer$1
2839
3082
  };
2840
- const deleteOperationSpec$2 = {
3083
+ const deleteOperationSpec = {
2841
3084
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
2842
3085
  httpMethod: "DELETE",
2843
3086
  responses: {
@@ -2856,7 +3099,7 @@ const deleteOperationSpec$2 = {
2856
3099
  privateEndpointConnectionName
2857
3100
  ],
2858
3101
  headerParameters: [accept],
2859
- serializer: serializer$4
3102
+ serializer: serializer$1
2860
3103
  };
2861
3104
 
2862
3105
  /*
@@ -2927,12 +3170,12 @@ class PrivateLinkResourcesImpl {
2927
3170
  * @param options The options parameters.
2928
3171
  */
2929
3172
  _listByCluster(resourceGroupName, clusterName, options) {
2930
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec$1);
3173
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
2931
3174
  }
2932
3175
  }
2933
3176
  // Operation Specifications
2934
- const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
2935
- const listByClusterOperationSpec$1 = {
3177
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3178
+ const listByClusterOperationSpec = {
2936
3179
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources",
2937
3180
  httpMethod: "GET",
2938
3181
  responses: {
@@ -2951,7 +3194,7 @@ const listByClusterOperationSpec$1 = {
2951
3194
  clusterName
2952
3195
  ],
2953
3196
  headerParameters: [accept],
2954
- serializer: serializer$5
3197
+ serializer
2955
3198
  };
2956
3199
 
2957
3200
  /*
@@ -2961,7 +3204,7 @@ const listByClusterOperationSpec$1 = {
2961
3204
  * Code generated by Microsoft (R) AutoRest Code Generator.
2962
3205
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2963
3206
  */
2964
- class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
3207
+ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClient {
2965
3208
  /**
2966
3209
  * Initializes a new instance of the RedisEnterpriseManagementClient class.
2967
3210
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -2969,6 +3212,7 @@ class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
2969
3212
  * @param options The parameter options
2970
3213
  */
2971
3214
  constructor(credentials, subscriptionId, options) {
3215
+ var _a, _b;
2972
3216
  if (credentials === undefined) {
2973
3217
  throw new Error("'credentials' cannot be null");
2974
3218
  }
@@ -2983,7 +3227,7 @@ class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
2983
3227
  requestContentType: "application/json; charset=utf-8",
2984
3228
  credential: credentials
2985
3229
  };
2986
- const packageDetails = `azsdk-js-arm-redisenterprisecache/2.0.0`;
3230
+ const packageDetails = `azsdk-js-arm-redisenterprisecache/2.1.0`;
2987
3231
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2988
3232
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2989
3233
  : `${packageDetails}`;
@@ -2992,13 +3236,13 @@ class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
2992
3236
  }
2993
3237
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2994
3238
  userAgentPrefix
2995
- }, baseUri: options.endpoint || "https://management.azure.com" });
3239
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2996
3240
  super(optionsWithDefaults);
2997
3241
  // Parameter assignments
2998
3242
  this.subscriptionId = subscriptionId;
2999
3243
  // Assigning values to Constant parameters
3000
3244
  this.$host = options.$host || "https://management.azure.com";
3001
- this.apiVersion = options.apiVersion || "2021-08-01";
3245
+ this.apiVersion = options.apiVersion || "2022-01-01";
3002
3246
  this.operations = new OperationsImpl(this);
3003
3247
  this.operationsStatus = new OperationsStatusImpl(this);
3004
3248
  this.redisEnterprise = new RedisEnterpriseImpl(this);