@azure/arm-elastic 1.0.0-beta.2 → 1.0.0-beta.3
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 +23 -0
- package/dist/index.js +255 -37
- 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/elasticVersionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/elasticVersionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/elasticVersionsListSample.js +59 -0
- package/dist-esm/samples-dev/elasticVersionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/organizationsGetApiKeySample.js +1 -2
- package/dist-esm/samples-dev/organizationsGetApiKeySample.js.map +1 -1
- package/dist-esm/src/microsoftElastic.d.ts +2 -1
- package/dist-esm/src/microsoftElastic.d.ts.map +1 -1
- package/dist-esm/src/microsoftElastic.js +3 -2
- package/dist-esm/src/microsoftElastic.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +37 -10
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +76 -7
- 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 +10 -0
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/elasticVersions.d.ts +34 -0
- package/dist-esm/src/operations/elasticVersions.d.ts.map +1 -0
- package/dist-esm/src/operations/elasticVersions.js +144 -0
- package/dist-esm/src/operations/elasticVersions.js.map +1 -0
- 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/organizations.d.ts +1 -2
- package/dist-esm/src/operations/organizations.d.ts.map +1 -1
- package/dist-esm/src/operations/organizations.js +4 -9
- package/dist-esm/src/operations/organizations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/elasticVersions.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/elasticVersions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/elasticVersions.js +9 -0
- package/dist-esm/src/operationsInterfaces/elasticVersions.js.map +1 -0
- 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/organizations.d.ts +1 -2
- package/dist-esm/src/operationsInterfaces/organizations.d.ts.map +1 -1
- package/dist-esm/test/elastic_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/elastic_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/elastic_operations_test.spec.js +78 -0
- package/dist-esm/test/elastic_operations_test.spec.js.map +1 -0
- package/package.json +1 -1
- package/review/arm-elastic.api.md +45 -2
- package/src/microsoftElastic.ts +5 -1
- package/src/models/index.ts +45 -10
- package/src/models/mappers.ts +80 -7
- package/src/models/parameters.ts +11 -0
- package/src/operations/elasticVersions.ts +163 -0
- package/src/operations/index.ts +1 -0
- package/src/operations/organizations.ts +3 -9
- package/src/operationsInterfaces/elasticVersions.ts +27 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/organizations.ts +0 -2
- package/types/arm-elastic.d.ts +57 -12
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.3 (2023-05-15)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
6
|
+
|
|
7
|
+
- Added operation group ElasticVersions
|
|
8
|
+
- Added Interface ElasticVersionListFormat
|
|
9
|
+
- Added Interface ElasticVersionListProperties
|
|
10
|
+
- Added Interface ElasticVersionsListNextOptionalParams
|
|
11
|
+
- Added Interface ElasticVersionsListOptionalParams
|
|
12
|
+
- Added Interface ElasticVersionsListResponse
|
|
13
|
+
- Added Interface UserApiKeyResponseProperties
|
|
14
|
+
- Added Type Alias ElasticVersionsListNextResponse
|
|
15
|
+
- Added Type Alias ElasticVersionsListOperationResponse
|
|
16
|
+
- Interface MonitorProperties has a new optional parameter generateApiKey
|
|
17
|
+
- Interface UserApiKeyResponse has a new optional parameter properties
|
|
18
|
+
|
|
19
|
+
**Breaking Changes**
|
|
20
|
+
|
|
21
|
+
- Operation Organizations.getApiKey has a new signature
|
|
22
|
+
- Interface ElasticMonitorResource no longer has parameter generateApiKey
|
|
23
|
+
- Interface UserApiKeyResponse no longer has parameter apiKey
|
|
24
|
+
|
|
25
|
+
|
|
3
26
|
## 1.0.0-beta.2 (2023-04-03)
|
|
4
27
|
|
|
5
28
|
**Features**
|
package/dist/index.js
CHANGED
|
@@ -388,13 +388,6 @@ const ElasticMonitorResource = {
|
|
|
388
388
|
className: "IdentityProperties"
|
|
389
389
|
}
|
|
390
390
|
},
|
|
391
|
-
generateApiKey: {
|
|
392
|
-
serializedName: "generateApiKey",
|
|
393
|
-
readOnly: true,
|
|
394
|
-
type: {
|
|
395
|
-
name: "Boolean"
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
391
|
tags: {
|
|
399
392
|
serializedName: "tags",
|
|
400
393
|
type: {
|
|
@@ -484,6 +477,12 @@ const MonitorProperties = {
|
|
|
484
477
|
type: {
|
|
485
478
|
name: "Number"
|
|
486
479
|
}
|
|
480
|
+
},
|
|
481
|
+
generateApiKey: {
|
|
482
|
+
serializedName: "generateApiKey",
|
|
483
|
+
type: {
|
|
484
|
+
name: "Boolean"
|
|
485
|
+
}
|
|
487
486
|
}
|
|
488
487
|
}
|
|
489
488
|
}
|
|
@@ -772,6 +771,61 @@ const SystemData = {
|
|
|
772
771
|
}
|
|
773
772
|
}
|
|
774
773
|
};
|
|
774
|
+
const ElasticVersionsListResponse = {
|
|
775
|
+
type: {
|
|
776
|
+
name: "Composite",
|
|
777
|
+
className: "ElasticVersionsListResponse",
|
|
778
|
+
modelProperties: {
|
|
779
|
+
value: {
|
|
780
|
+
serializedName: "value",
|
|
781
|
+
type: {
|
|
782
|
+
name: "Sequence",
|
|
783
|
+
element: {
|
|
784
|
+
type: {
|
|
785
|
+
name: "Composite",
|
|
786
|
+
className: "ElasticVersionListFormat"
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
nextLink: {
|
|
792
|
+
serializedName: "nextLink",
|
|
793
|
+
type: {
|
|
794
|
+
name: "String"
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
};
|
|
800
|
+
const ElasticVersionListFormat = {
|
|
801
|
+
type: {
|
|
802
|
+
name: "Composite",
|
|
803
|
+
className: "ElasticVersionListFormat",
|
|
804
|
+
modelProperties: {
|
|
805
|
+
properties: {
|
|
806
|
+
serializedName: "properties",
|
|
807
|
+
type: {
|
|
808
|
+
name: "Composite",
|
|
809
|
+
className: "ElasticVersionListProperties"
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
const ElasticVersionListProperties = {
|
|
816
|
+
type: {
|
|
817
|
+
name: "Composite",
|
|
818
|
+
className: "ElasticVersionListProperties",
|
|
819
|
+
modelProperties: {
|
|
820
|
+
version: {
|
|
821
|
+
serializedName: "version",
|
|
822
|
+
type: {
|
|
823
|
+
name: "String"
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
};
|
|
775
829
|
const ElasticMonitorResourceUpdateParameters = {
|
|
776
830
|
type: {
|
|
777
831
|
name: "Composite",
|
|
@@ -1393,6 +1447,21 @@ const UserApiKeyResponse = {
|
|
|
1393
1447
|
type: {
|
|
1394
1448
|
name: "Composite",
|
|
1395
1449
|
className: "UserApiKeyResponse",
|
|
1450
|
+
modelProperties: {
|
|
1451
|
+
properties: {
|
|
1452
|
+
serializedName: "properties",
|
|
1453
|
+
type: {
|
|
1454
|
+
name: "Composite",
|
|
1455
|
+
className: "UserApiKeyResponseProperties"
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
};
|
|
1461
|
+
const UserApiKeyResponseProperties = {
|
|
1462
|
+
type: {
|
|
1463
|
+
name: "Composite",
|
|
1464
|
+
className: "UserApiKeyResponseProperties",
|
|
1396
1465
|
modelProperties: {
|
|
1397
1466
|
apiKey: {
|
|
1398
1467
|
serializedName: "apiKey",
|
|
@@ -1422,6 +1491,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1422
1491
|
CompanyInfo: CompanyInfo,
|
|
1423
1492
|
IdentityProperties: IdentityProperties,
|
|
1424
1493
|
SystemData: SystemData,
|
|
1494
|
+
ElasticVersionsListResponse: ElasticVersionsListResponse,
|
|
1495
|
+
ElasticVersionListFormat: ElasticVersionListFormat,
|
|
1496
|
+
ElasticVersionListProperties: ElasticVersionListProperties,
|
|
1425
1497
|
ElasticMonitorResourceUpdateParameters: ElasticMonitorResourceUpdateParameters,
|
|
1426
1498
|
MonitoredResourceListResponse: MonitoredResourceListResponse,
|
|
1427
1499
|
MonitoredResource: MonitoredResource,
|
|
@@ -1445,7 +1517,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1445
1517
|
ElasticTrafficFilter: ElasticTrafficFilter,
|
|
1446
1518
|
ElasticTrafficFilterRule: ElasticTrafficFilterRule,
|
|
1447
1519
|
UserEmailId: UserEmailId,
|
|
1448
|
-
UserApiKeyResponse: UserApiKeyResponse
|
|
1520
|
+
UserApiKeyResponse: UserApiKeyResponse,
|
|
1521
|
+
UserApiKeyResponseProperties: UserApiKeyResponseProperties
|
|
1449
1522
|
});
|
|
1450
1523
|
|
|
1451
1524
|
/*
|
|
@@ -1548,6 +1621,16 @@ const body1 = {
|
|
|
1548
1621
|
parameterPath: ["options", "body"],
|
|
1549
1622
|
mapper: ElasticMonitorResourceUpdateParameters
|
|
1550
1623
|
};
|
|
1624
|
+
const region = {
|
|
1625
|
+
parameterPath: "region",
|
|
1626
|
+
mapper: {
|
|
1627
|
+
serializedName: "region",
|
|
1628
|
+
required: true,
|
|
1629
|
+
type: {
|
|
1630
|
+
name: "String"
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
};
|
|
1551
1634
|
const body2 = {
|
|
1552
1635
|
parameterPath: ["options", "body"],
|
|
1553
1636
|
mapper: ExternalUserInfo
|
|
@@ -1712,7 +1795,7 @@ class OperationsImpl {
|
|
|
1712
1795
|
* @param options The options parameters.
|
|
1713
1796
|
*/
|
|
1714
1797
|
_list(options) {
|
|
1715
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
1798
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$8);
|
|
1716
1799
|
}
|
|
1717
1800
|
/**
|
|
1718
1801
|
* ListNext
|
|
@@ -1720,12 +1803,12 @@ class OperationsImpl {
|
|
|
1720
1803
|
* @param options The options parameters.
|
|
1721
1804
|
*/
|
|
1722
1805
|
_listNext(nextLink, options) {
|
|
1723
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
1806
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$5);
|
|
1724
1807
|
}
|
|
1725
1808
|
}
|
|
1726
1809
|
// Operation Specifications
|
|
1727
|
-
const serializer$
|
|
1728
|
-
const listOperationSpec$
|
|
1810
|
+
const serializer$k = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1811
|
+
const listOperationSpec$8 = {
|
|
1729
1812
|
path: "/providers/Microsoft.Elastic/operations",
|
|
1730
1813
|
httpMethod: "GET",
|
|
1731
1814
|
responses: {
|
|
@@ -1739,9 +1822,9 @@ const listOperationSpec$7 = {
|
|
|
1739
1822
|
queryParameters: [apiVersion],
|
|
1740
1823
|
urlParameters: [$host],
|
|
1741
1824
|
headerParameters: [accept],
|
|
1742
|
-
serializer: serializer$
|
|
1825
|
+
serializer: serializer$k
|
|
1743
1826
|
};
|
|
1744
|
-
const listNextOperationSpec$
|
|
1827
|
+
const listNextOperationSpec$5 = {
|
|
1745
1828
|
path: "{nextLink}",
|
|
1746
1829
|
httpMethod: "GET",
|
|
1747
1830
|
responses: {
|
|
@@ -1754,7 +1837,7 @@ const listNextOperationSpec$4 = {
|
|
|
1754
1837
|
},
|
|
1755
1838
|
urlParameters: [$host, nextLink],
|
|
1756
1839
|
headerParameters: [accept],
|
|
1757
|
-
serializer: serializer$
|
|
1840
|
+
serializer: serializer$k
|
|
1758
1841
|
};
|
|
1759
1842
|
|
|
1760
1843
|
/*
|
|
@@ -1932,7 +2015,7 @@ class MonitorsImpl {
|
|
|
1932
2015
|
* @param options The options parameters.
|
|
1933
2016
|
*/
|
|
1934
2017
|
_list(options) {
|
|
1935
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
2018
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$7);
|
|
1936
2019
|
}
|
|
1937
2020
|
/**
|
|
1938
2021
|
* List all monitors under the specified resource group.
|
|
@@ -2077,7 +2160,7 @@ class MonitorsImpl {
|
|
|
2077
2160
|
* @param options The options parameters.
|
|
2078
2161
|
*/
|
|
2079
2162
|
_listNext(nextLink, options) {
|
|
2080
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
2163
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$4);
|
|
2081
2164
|
}
|
|
2082
2165
|
/**
|
|
2083
2166
|
* ListByResourceGroupNext
|
|
@@ -2090,8 +2173,8 @@ class MonitorsImpl {
|
|
|
2090
2173
|
}
|
|
2091
2174
|
}
|
|
2092
2175
|
// Operation Specifications
|
|
2093
|
-
const serializer$
|
|
2094
|
-
const listOperationSpec$
|
|
2176
|
+
const serializer$j = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2177
|
+
const listOperationSpec$7 = {
|
|
2095
2178
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Elastic/monitors",
|
|
2096
2179
|
httpMethod: "GET",
|
|
2097
2180
|
responses: {
|
|
@@ -2105,7 +2188,7 @@ const listOperationSpec$6 = {
|
|
|
2105
2188
|
queryParameters: [apiVersion],
|
|
2106
2189
|
urlParameters: [$host, subscriptionId],
|
|
2107
2190
|
headerParameters: [accept],
|
|
2108
|
-
serializer: serializer$
|
|
2191
|
+
serializer: serializer$j
|
|
2109
2192
|
};
|
|
2110
2193
|
const listByResourceGroupOperationSpec = {
|
|
2111
2194
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors",
|
|
@@ -2125,7 +2208,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
2125
2208
|
resourceGroupName
|
|
2126
2209
|
],
|
|
2127
2210
|
headerParameters: [accept],
|
|
2128
|
-
serializer: serializer$
|
|
2211
|
+
serializer: serializer$j
|
|
2129
2212
|
};
|
|
2130
2213
|
const getOperationSpec$1 = {
|
|
2131
2214
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}",
|
|
@@ -2146,7 +2229,7 @@ const getOperationSpec$1 = {
|
|
|
2146
2229
|
monitorName
|
|
2147
2230
|
],
|
|
2148
2231
|
headerParameters: [accept],
|
|
2149
|
-
serializer: serializer$
|
|
2232
|
+
serializer: serializer$j
|
|
2150
2233
|
};
|
|
2151
2234
|
const createOperationSpec$2 = {
|
|
2152
2235
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}",
|
|
@@ -2178,7 +2261,7 @@ const createOperationSpec$2 = {
|
|
|
2178
2261
|
],
|
|
2179
2262
|
headerParameters: [accept, contentType],
|
|
2180
2263
|
mediaType: "json",
|
|
2181
|
-
serializer: serializer$
|
|
2264
|
+
serializer: serializer$j
|
|
2182
2265
|
};
|
|
2183
2266
|
const updateOperationSpec$2 = {
|
|
2184
2267
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}",
|
|
@@ -2201,7 +2284,7 @@ const updateOperationSpec$2 = {
|
|
|
2201
2284
|
],
|
|
2202
2285
|
headerParameters: [accept, contentType],
|
|
2203
2286
|
mediaType: "json",
|
|
2204
|
-
serializer: serializer$
|
|
2287
|
+
serializer: serializer$j
|
|
2205
2288
|
};
|
|
2206
2289
|
const deleteOperationSpec$3 = {
|
|
2207
2290
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}",
|
|
@@ -2223,9 +2306,9 @@ const deleteOperationSpec$3 = {
|
|
|
2223
2306
|
monitorName
|
|
2224
2307
|
],
|
|
2225
2308
|
headerParameters: [accept],
|
|
2226
|
-
serializer: serializer$
|
|
2309
|
+
serializer: serializer$j
|
|
2227
2310
|
};
|
|
2228
|
-
const listNextOperationSpec$
|
|
2311
|
+
const listNextOperationSpec$4 = {
|
|
2229
2312
|
path: "{nextLink}",
|
|
2230
2313
|
httpMethod: "GET",
|
|
2231
2314
|
responses: {
|
|
@@ -2242,7 +2325,7 @@ const listNextOperationSpec$3 = {
|
|
|
2242
2325
|
subscriptionId
|
|
2243
2326
|
],
|
|
2244
2327
|
headerParameters: [accept],
|
|
2245
|
-
serializer: serializer$
|
|
2328
|
+
serializer: serializer$j
|
|
2246
2329
|
};
|
|
2247
2330
|
const listByResourceGroupNextOperationSpec = {
|
|
2248
2331
|
path: "{nextLink}",
|
|
@@ -2262,6 +2345,145 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2262
2345
|
resourceGroupName
|
|
2263
2346
|
],
|
|
2264
2347
|
headerParameters: [accept],
|
|
2348
|
+
serializer: serializer$j
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
/*
|
|
2352
|
+
* Copyright (c) Microsoft Corporation.
|
|
2353
|
+
* Licensed under the MIT License.
|
|
2354
|
+
*
|
|
2355
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2356
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2357
|
+
*/
|
|
2358
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2359
|
+
/** Class containing ElasticVersions operations. */
|
|
2360
|
+
class ElasticVersionsImpl {
|
|
2361
|
+
/**
|
|
2362
|
+
* Initialize a new instance of the class ElasticVersions class.
|
|
2363
|
+
* @param client Reference to the service client
|
|
2364
|
+
*/
|
|
2365
|
+
constructor(client) {
|
|
2366
|
+
this.client = client;
|
|
2367
|
+
}
|
|
2368
|
+
/**
|
|
2369
|
+
* Get a list of available versions for a region.
|
|
2370
|
+
* @param region Region where elastic deployment will take place.
|
|
2371
|
+
* @param options The options parameters.
|
|
2372
|
+
*/
|
|
2373
|
+
list(region, options) {
|
|
2374
|
+
const iter = this.listPagingAll(region, options);
|
|
2375
|
+
return {
|
|
2376
|
+
next() {
|
|
2377
|
+
return iter.next();
|
|
2378
|
+
},
|
|
2379
|
+
[Symbol.asyncIterator]() {
|
|
2380
|
+
return this;
|
|
2381
|
+
},
|
|
2382
|
+
byPage: (settings) => {
|
|
2383
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2384
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2385
|
+
}
|
|
2386
|
+
return this.listPagingPage(region, options, settings);
|
|
2387
|
+
}
|
|
2388
|
+
};
|
|
2389
|
+
}
|
|
2390
|
+
listPagingPage(region, options, settings) {
|
|
2391
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2392
|
+
let result;
|
|
2393
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2394
|
+
if (!continuationToken) {
|
|
2395
|
+
result = yield tslib.__await(this._list(region, options));
|
|
2396
|
+
let page = result.value || [];
|
|
2397
|
+
continuationToken = result.nextLink;
|
|
2398
|
+
setContinuationToken(page, continuationToken);
|
|
2399
|
+
yield yield tslib.__await(page);
|
|
2400
|
+
}
|
|
2401
|
+
while (continuationToken) {
|
|
2402
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2403
|
+
continuationToken = result.nextLink;
|
|
2404
|
+
let page = result.value || [];
|
|
2405
|
+
setContinuationToken(page, continuationToken);
|
|
2406
|
+
yield yield tslib.__await(page);
|
|
2407
|
+
}
|
|
2408
|
+
});
|
|
2409
|
+
}
|
|
2410
|
+
listPagingAll(region, options) {
|
|
2411
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2412
|
+
var _a, e_1, _b, _c;
|
|
2413
|
+
try {
|
|
2414
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(region, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2415
|
+
_c = _f.value;
|
|
2416
|
+
_d = false;
|
|
2417
|
+
try {
|
|
2418
|
+
const page = _c;
|
|
2419
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2420
|
+
}
|
|
2421
|
+
finally {
|
|
2422
|
+
_d = true;
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2427
|
+
finally {
|
|
2428
|
+
try {
|
|
2429
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2430
|
+
}
|
|
2431
|
+
finally { if (e_1) throw e_1.error; }
|
|
2432
|
+
}
|
|
2433
|
+
});
|
|
2434
|
+
}
|
|
2435
|
+
/**
|
|
2436
|
+
* Get a list of available versions for a region.
|
|
2437
|
+
* @param region Region where elastic deployment will take place.
|
|
2438
|
+
* @param options The options parameters.
|
|
2439
|
+
*/
|
|
2440
|
+
_list(region, options) {
|
|
2441
|
+
return this.client.sendOperationRequest({ region, options }, listOperationSpec$6);
|
|
2442
|
+
}
|
|
2443
|
+
/**
|
|
2444
|
+
* ListNext
|
|
2445
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2446
|
+
* @param options The options parameters.
|
|
2447
|
+
*/
|
|
2448
|
+
_listNext(nextLink, options) {
|
|
2449
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
// Operation Specifications
|
|
2453
|
+
const serializer$i = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2454
|
+
const listOperationSpec$6 = {
|
|
2455
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Elastic/elasticVersions",
|
|
2456
|
+
httpMethod: "GET",
|
|
2457
|
+
responses: {
|
|
2458
|
+
200: {
|
|
2459
|
+
bodyMapper: ElasticVersionsListResponse
|
|
2460
|
+
},
|
|
2461
|
+
default: {
|
|
2462
|
+
bodyMapper: ResourceProviderDefaultErrorResponse
|
|
2463
|
+
}
|
|
2464
|
+
},
|
|
2465
|
+
queryParameters: [apiVersion, region],
|
|
2466
|
+
urlParameters: [$host, subscriptionId],
|
|
2467
|
+
headerParameters: [accept],
|
|
2468
|
+
serializer: serializer$i
|
|
2469
|
+
};
|
|
2470
|
+
const listNextOperationSpec$3 = {
|
|
2471
|
+
path: "{nextLink}",
|
|
2472
|
+
httpMethod: "GET",
|
|
2473
|
+
responses: {
|
|
2474
|
+
200: {
|
|
2475
|
+
bodyMapper: ElasticVersionsListResponse
|
|
2476
|
+
},
|
|
2477
|
+
default: {
|
|
2478
|
+
bodyMapper: ResourceProviderDefaultErrorResponse
|
|
2479
|
+
}
|
|
2480
|
+
},
|
|
2481
|
+
urlParameters: [
|
|
2482
|
+
$host,
|
|
2483
|
+
nextLink,
|
|
2484
|
+
subscriptionId
|
|
2485
|
+
],
|
|
2486
|
+
headerParameters: [accept],
|
|
2265
2487
|
serializer: serializer$i
|
|
2266
2488
|
};
|
|
2267
2489
|
|
|
@@ -3825,17 +4047,16 @@ class OrganizationsImpl {
|
|
|
3825
4047
|
/**
|
|
3826
4048
|
* Fetch User API Key from internal database, if it was generated and stored while creating the
|
|
3827
4049
|
* Elasticsearch Organization.
|
|
3828
|
-
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
|
|
3829
4050
|
* @param options The options parameters.
|
|
3830
4051
|
*/
|
|
3831
|
-
getApiKey(
|
|
3832
|
-
return this.client.sendOperationRequest({
|
|
4052
|
+
getApiKey(options) {
|
|
4053
|
+
return this.client.sendOperationRequest({ options }, getApiKeyOperationSpec);
|
|
3833
4054
|
}
|
|
3834
4055
|
}
|
|
3835
4056
|
// Operation Specifications
|
|
3836
4057
|
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3837
4058
|
const getApiKeyOperationSpec = {
|
|
3838
|
-
path: "/subscriptions/{subscriptionId}/
|
|
4059
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Elastic/getOrganizationApiKey",
|
|
3839
4060
|
httpMethod: "POST",
|
|
3840
4061
|
responses: {
|
|
3841
4062
|
200: {
|
|
@@ -3847,11 +4068,7 @@ const getApiKeyOperationSpec = {
|
|
|
3847
4068
|
},
|
|
3848
4069
|
requestBody: body6,
|
|
3849
4070
|
queryParameters: [apiVersion],
|
|
3850
|
-
urlParameters: [
|
|
3851
|
-
$host,
|
|
3852
|
-
subscriptionId,
|
|
3853
|
-
resourceGroupName
|
|
3854
|
-
],
|
|
4071
|
+
urlParameters: [$host, subscriptionId],
|
|
3855
4072
|
headerParameters: [accept, contentType],
|
|
3856
4073
|
mediaType: "json",
|
|
3857
4074
|
serializer
|
|
@@ -3888,7 +4105,7 @@ class MicrosoftElastic extends coreClient__namespace.ServiceClient {
|
|
|
3888
4105
|
requestContentType: "application/json; charset=utf-8",
|
|
3889
4106
|
credential: credentials
|
|
3890
4107
|
};
|
|
3891
|
-
const packageDetails = `azsdk-js-arm-elastic/1.0.0-beta.
|
|
4108
|
+
const packageDetails = `azsdk-js-arm-elastic/1.0.0-beta.3`;
|
|
3892
4109
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3893
4110
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3894
4111
|
: `${packageDetails}`;
|
|
@@ -3924,6 +4141,7 @@ class MicrosoftElastic extends coreClient__namespace.ServiceClient {
|
|
|
3924
4141
|
this.apiVersion = options.apiVersion || "2023-02-01-preview";
|
|
3925
4142
|
this.operations = new OperationsImpl(this);
|
|
3926
4143
|
this.monitors = new MonitorsImpl(this);
|
|
4144
|
+
this.elasticVersions = new ElasticVersionsImpl(this);
|
|
3927
4145
|
this.monitoredResources = new MonitoredResourcesImpl(this);
|
|
3928
4146
|
this.deploymentInfo = new DeploymentInfoImpl(this);
|
|
3929
4147
|
this.externalUser = new ExternalUserImpl(this);
|