@azure/arm-horizondb 1.0.0-beta.3 → 1.0.0-beta.4
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/dist/browser/api/clusters/operations.d.ts +1 -1
- package/dist/browser/api/clusters/operations.js +1 -1
- package/dist/browser/api/clusters/operations.js.map +1 -1
- package/dist/browser/api/pools/operations.d.ts +1 -1
- package/dist/browser/api/pools/operations.js +1 -1
- package/dist/browser/api/pools/operations.js.map +1 -1
- package/dist/browser/classic/clusters/index.d.ts +1 -1
- package/dist/browser/classic/clusters/index.js.map +1 -1
- package/dist/browser/classic/pools/index.d.ts +1 -1
- package/dist/browser/classic/pools/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +18 -21
- package/dist/browser/models/models.js +13 -11
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/package.json +1 -1
- package/dist/commonjs/api/clusters/operations.d.ts +1 -1
- package/dist/commonjs/api/clusters/operations.js.map +1 -1
- package/dist/commonjs/api/pools/operations.d.ts +1 -1
- package/dist/commonjs/api/pools/operations.js.map +1 -1
- package/dist/commonjs/classic/clusters/index.d.ts +1 -1
- package/dist/commonjs/classic/clusters/index.js.map +1 -1
- package/dist/commonjs/classic/pools/index.d.ts +1 -1
- package/dist/commonjs/classic/pools/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +18 -21
- package/dist/commonjs/models/models.js +9 -12
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/package.json +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/clusters/operations.d.ts +1 -1
- package/dist/esm/api/clusters/operations.js +1 -1
- package/dist/esm/api/clusters/operations.js.map +1 -1
- package/dist/esm/api/pools/operations.d.ts +1 -1
- package/dist/esm/api/pools/operations.js +1 -1
- package/dist/esm/api/pools/operations.js.map +1 -1
- package/dist/esm/classic/clusters/index.d.ts +1 -1
- package/dist/esm/classic/clusters/index.js.map +1 -1
- package/dist/esm/classic/pools/index.d.ts +1 -1
- package/dist/esm/classic/pools/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +18 -21
- package/dist/esm/models/models.js +13 -11
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/package.json +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ export declare function _updateDeserialize(result: PathUncheckedResponse): Promi
|
|
|
26
26
|
export declare function update(context: Client, resourceGroupName: string, clusterName: string, properties: ClusterForPatchUpdateUpdate, options?: ClustersUpdateOptionalParams): PollerLike<OperationState<Cluster>, Cluster>;
|
|
27
27
|
export declare function _createOrReplaceSend(context: Client, resourceGroupName: string, clusterName: string, resource: ClusterCreateOrUpdate, options?: ClustersCreateOrReplaceOptionalParams): StreamableMethod;
|
|
28
28
|
export declare function _createOrReplaceDeserialize(result: PathUncheckedResponse): Promise<Cluster>;
|
|
29
|
-
/** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata;
|
|
29
|
+
/** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata. During restore creation, the service ignores the requested backup.geoRedundancy value and configures the new cluster with the same geo-redundancy setting as the source cluster; this applies to both same-location and cross-location restores. All remaining new-cluster configuration comes from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and restores the latest available backup. Cross-location responses omit pointInTimeUtc. */
|
|
30
30
|
export declare function createOrReplace(context: Client, resourceGroupName: string, clusterName: string, resource: ClusterCreateOrUpdate, options?: ClustersCreateOrReplaceOptionalParams): PollerLike<OperationState<Cluster>, Cluster>;
|
|
31
31
|
export declare function _getSend(context: Client, resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams): StreamableMethod;
|
|
32
32
|
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<Cluster>;
|
|
@@ -199,7 +199,7 @@ export async function _createOrReplaceDeserialize(result) {
|
|
|
199
199
|
}
|
|
200
200
|
return clusterDeserializer(result.body);
|
|
201
201
|
}
|
|
202
|
-
/** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata;
|
|
202
|
+
/** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata. During restore creation, the service ignores the requested backup.geoRedundancy value and configures the new cluster with the same geo-redundancy setting as the source cluster; this applies to both same-location and cross-location restores. All remaining new-cluster configuration comes from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and restores the latest available backup. Cross-location responses omit pointInTimeUtc. */
|
|
203
203
|
export function createOrReplace(context, resourceGroupName, clusterName, resource, options = { requestOptions: {} }) {
|
|
204
204
|
return getLongRunningPoller(context, _createOrReplaceDeserialize, ["200", "201", "202"], {
|
|
205
205
|
updateIntervalInMs: options?.updateIntervalInMs,
|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AC;IAChF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HorizonDbContext as Client } from \"../index.js\";\nimport type {\n Cluster,\n _ClusterListResult,\n ClusterCreateOrUpdate,\n ClusterForPatchUpdateUpdate,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n clusterDeserializer,\n _clusterListResultDeserializer,\n clusterCreateOrUpdateSerializer,\n clusterForPatchUpdateUpdateSerializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n ClustersFailoverOptionalParams,\n ClustersListBySubscriptionOptionalParams,\n ClustersListByResourceGroupOptionalParams,\n ClustersDeleteOptionalParams,\n ClustersUpdateOptionalParams,\n ClustersCreateOrReplaceOptionalParams,\n ClustersGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _failoverSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersFailoverOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/failover{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _failoverDeserialize(result: PathUncheckedResponse): Promise<Cluster> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return clusterDeserializer(result.body);\n}\n\n/** Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the designated pool is not eligible for failover or another conflicting operation is in progress. */\nexport function failover(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersFailoverOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Cluster>, Cluster> {\n return getLongRunningPoller(context, _failoverDeserialize, [\"202\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _failoverSend(context, resourceGroupName, clusterName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Cluster>, Cluster>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: ClustersListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/clusters{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _clusterListResultDeserializer(result.body);\n}\n\n/** Lists all HorizonDB clusters in a subscription. */\nexport function listBySubscription(\n context: Client,\n options: ClustersListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Cluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: ClustersListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _clusterListResultDeserializer(result.body);\n}\n\n/** Lists all HorizonDB clusters in a resource group. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: ClustersListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Cluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns 404 Not Found. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options: ClustersUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: clusterForPatchUpdateUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Cluster> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return clusterDeserializer(result.body);\n}\n\n/** Updates an existing HorizonDB cluster. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options: ClustersUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Cluster>, Cluster> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, clusterName, properties, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Cluster>, Cluster>;\n}\n\nexport function _createOrReplaceSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options: ClustersCreateOrReplaceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: clusterCreateOrUpdateSerializer(resource),\n });\n}\n\nexport async function _createOrReplaceDeserialize(result: PathUncheckedResponse): Promise<Cluster> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return clusterDeserializer(result.body);\n}\n\n/** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and restores the latest available backup. Cross-location responses omit pointInTimeUtc. */\nexport function createOrReplace(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options: ClustersCreateOrReplaceOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Cluster>, Cluster> {\n return getLongRunningPoller(context, _createOrReplaceDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrReplaceSend(context, resourceGroupName, clusterName, resource, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Cluster>, Cluster>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Cluster> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return clusterDeserializer(result.body);\n}\n\n/** Gets information about a HorizonDB cluster. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersGetOptionalParams = { requestOptions: {} },\n): Promise<Cluster> {\n const result = await _getSend(context, resourceGroupName, clusterName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/clusters/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,8BAA8B,EAC9B,+BAA+B,EAC/B,qCAAqC,GACtC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;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O,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED,kDAAkD;AAClD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAChF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HorizonDbContext as Client } from \"../index.js\";\nimport type {\n Cluster,\n _ClusterListResult,\n ClusterCreateOrUpdate,\n ClusterForPatchUpdateUpdate,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n clusterDeserializer,\n _clusterListResultDeserializer,\n clusterCreateOrUpdateSerializer,\n clusterForPatchUpdateUpdateSerializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n ClustersFailoverOptionalParams,\n ClustersListBySubscriptionOptionalParams,\n ClustersListByResourceGroupOptionalParams,\n ClustersDeleteOptionalParams,\n ClustersUpdateOptionalParams,\n ClustersCreateOrReplaceOptionalParams,\n ClustersGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _failoverSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersFailoverOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/failover{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _failoverDeserialize(result: PathUncheckedResponse): Promise<Cluster> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return clusterDeserializer(result.body);\n}\n\n/** Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the designated pool is not eligible for failover or another conflicting operation is in progress. */\nexport function failover(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersFailoverOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Cluster>, Cluster> {\n return getLongRunningPoller(context, _failoverDeserialize, [\"202\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _failoverSend(context, resourceGroupName, clusterName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Cluster>, Cluster>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: ClustersListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/clusters{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _clusterListResultDeserializer(result.body);\n}\n\n/** Lists all HorizonDB clusters in a subscription. */\nexport function listBySubscription(\n context: Client,\n options: ClustersListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Cluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: ClustersListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _clusterListResultDeserializer(result.body);\n}\n\n/** Lists all HorizonDB clusters in a resource group. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: ClustersListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Cluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns 404 Not Found. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options: ClustersUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: clusterForPatchUpdateUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Cluster> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return clusterDeserializer(result.body);\n}\n\n/** Updates an existing HorizonDB cluster. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options: ClustersUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Cluster>, Cluster> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, clusterName, properties, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Cluster>, Cluster>;\n}\n\nexport function _createOrReplaceSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options: ClustersCreateOrReplaceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: clusterCreateOrUpdateSerializer(resource),\n });\n}\n\nexport async function _createOrReplaceDeserialize(result: PathUncheckedResponse): Promise<Cluster> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return clusterDeserializer(result.body);\n}\n\n/** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata. During restore creation, the service ignores the requested backup.geoRedundancy value and configures the new cluster with the same geo-redundancy setting as the source cluster; this applies to both same-location and cross-location restores. All remaining new-cluster configuration comes from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and restores the latest available backup. Cross-location responses omit pointInTimeUtc. */\nexport function createOrReplace(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options: ClustersCreateOrReplaceOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Cluster>, Cluster> {\n return getLongRunningPoller(context, _createOrReplaceDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrReplaceSend(context, resourceGroupName, clusterName, resource, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Cluster>, Cluster>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Cluster> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return clusterDeserializer(result.body);\n}\n\n/** Gets information about a HorizonDB cluster. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ClustersGetOptionalParams = { requestOptions: {} },\n): Promise<Cluster> {\n const result = await _getSend(context, resourceGroupName, clusterName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -30,7 +30,7 @@ export declare function _updateDeserialize(result: PathUncheckedResponse): Promi
|
|
|
30
30
|
export declare function update(context: Client, resourceGroupName: string, clusterName: string, poolName: string, properties: PoolForPatchUpdateUpdate, options?: PoolsUpdateOptionalParams): PollerLike<OperationState<Pool>, Pool>;
|
|
31
31
|
export declare function _createOrReplaceSend(context: Client, resourceGroupName: string, clusterName: string, poolName: string, resource: PoolCreateOrUpdate, options?: PoolsCreateOrReplaceOptionalParams): StreamableMethod;
|
|
32
32
|
export declare function _createOrReplaceDeserialize(result: PathUncheckedResponse): Promise<Pool>;
|
|
33
|
-
/** Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot outlive or be deleted independently from it. When the first pool is created, the service automatically designates it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one Pool before a private endpoint connection can be created or approved. This API version supports at most one pool per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup,
|
|
33
|
+
/** Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot outlive or be deleted independently from it. When the first pool is created, the service automatically designates it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one Pool before a private endpoint connection can be created or approved. This API version supports at most one pool per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup is optional during creation. When omitted during creation, the service applies the default parameter group compatible with the parent cluster's PostgreSQL version. When parameterGroup is supplied, parameterGroupResourceId and applyMethod are required. When creating a new pool in this API version, a supplied parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter group is rejected. When replacing an existing pool, the request can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated before the resource is changed. */
|
|
34
34
|
export declare function createOrReplace(context: Client, resourceGroupName: string, clusterName: string, poolName: string, resource: PoolCreateOrUpdate, options?: PoolsCreateOrReplaceOptionalParams): PollerLike<OperationState<Pool>, Pool>;
|
|
35
35
|
export declare function _getSend(context: Client, resourceGroupName: string, clusterName: string, poolName: string, options?: PoolsGetOptionalParams): StreamableMethod;
|
|
36
36
|
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<Pool>;
|
|
@@ -245,7 +245,7 @@ export async function _createOrReplaceDeserialize(result) {
|
|
|
245
245
|
}
|
|
246
246
|
return poolDeserializer(result.body);
|
|
247
247
|
}
|
|
248
|
-
/** Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot outlive or be deleted independently from it. When the first pool is created, the service automatically designates it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one Pool before a private endpoint connection can be created or approved. This API version supports at most one pool per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup,
|
|
248
|
+
/** Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot outlive or be deleted independently from it. When the first pool is created, the service automatically designates it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one Pool before a private endpoint connection can be created or approved. This API version supports at most one pool per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup is optional during creation. When omitted during creation, the service applies the default parameter group compatible with the parent cluster's PostgreSQL version. When parameterGroup is supplied, parameterGroupResourceId and applyMethod are required. When creating a new pool in this API version, a supplied parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter group is rejected. When replacing an existing pool, the request can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated before the resource is changed. */
|
|
249
249
|
export function createOrReplace(context, resourceGroupName, clusterName, poolName, resource, options = { requestOptions: {} }) {
|
|
250
250
|
return getLongRunningPoller(context, _createOrReplaceDeserialize, ["200", "201", "202"], {
|
|
251
251
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/pools/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,2BAA2B,EAC3B,4BAA4B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;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,+CAA+C;AAC/C,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,QAAgB,EAChB,UAAkC,EAAE,cAAc,EAAE,EAAE,EAAE;IAExD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1F,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HorizonDbContext as Client } from \"../index.js\";\nimport type {\n Pool,\n _PoolListResult,\n PoolCreateOrUpdate,\n PoolForPatchUpdateUpdate,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n poolDeserializer,\n _poolListResultDeserializer,\n poolCreateOrUpdateSerializer,\n poolForPatchUpdateUpdateSerializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n PoolsRestartOptionalParams,\n PoolsStopOptionalParams,\n PoolsStartOptionalParams,\n PoolsListOptionalParams,\n PoolsDeleteOptionalParams,\n PoolsUpdateOptionalParams,\n PoolsCreateOrReplaceOptionalParams,\n PoolsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _restartSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsRestartOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/restart{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _restartDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible state. */\nexport function restart(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsRestartOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _restartDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _restartSend(context, resourceGroupName, clusterName, poolName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _stopSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsStopOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/stop{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _stopDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible state. */\nexport function stop(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsStopOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _stopDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _stopSend(context, resourceGroupName, clusterName, poolName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _startSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsStartOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/start{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _startDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is no cluster-level start action. Start does not apply pending dynamic or static parameter changes; parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible state. */\nexport function start(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsStartOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _startDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _startSend(context, resourceGroupName, clusterName, poolName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _listSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: PoolsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_PoolListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _poolListResultDeserializer(result.body);\n}\n\n/** Lists all HorizonDB pools in a cluster. */\nexport function list(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: PoolsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Pool> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, clusterName, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints resources are not deleted. The delete long-running operation completes only after all required private endpoint disconnections have completed. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, clusterName, poolName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n properties: PoolForPatchUpdateUpdate,\n options: PoolsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: poolForPatchUpdateUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n properties: PoolForPatchUpdateUpdate,\n options: PoolsUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, clusterName, poolName, properties, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _createOrReplaceSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n resource: PoolCreateOrUpdate,\n options: PoolsCreateOrReplaceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: poolCreateOrUpdateSerializer(resource),\n });\n}\n\nexport async function _createOrReplaceDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot outlive or be deleted independently from it. When the first pool is created, the service automatically designates it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one Pool before a private endpoint connection can be created or approved. This API version supports at most one pool per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter group is rejected. When replacing an existing pool, the request can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated before the resource is changed. */\nexport function createOrReplace(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n resource: PoolCreateOrUpdate,\n options: PoolsCreateOrReplaceOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _createOrReplaceDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrReplaceSend(context, resourceGroupName, clusterName, poolName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Gets information about a HorizonDB pool. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsGetOptionalParams = { requestOptions: {} },\n): Promise<Pool> {\n const result = await _getSend(context, resourceGroupName, clusterName, poolName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/pools/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,2BAA2B,EAC3B,4BAA4B,EAC5B,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAYxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,QAAgB,EAChB,UAAsC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,kKAAkK,EAClK;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,WAAW,EAAE,WAAW;QACxB,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;KAC5D,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;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AAM,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,+CAA+C;AAC/C,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,QAAgB,EAChB,UAAkC,EAAE,cAAc,EAAE,EAAE,EAAE;IAExD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1F,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HorizonDbContext as Client } from \"../index.js\";\nimport type {\n Pool,\n _PoolListResult,\n PoolCreateOrUpdate,\n PoolForPatchUpdateUpdate,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n poolDeserializer,\n _poolListResultDeserializer,\n poolCreateOrUpdateSerializer,\n poolForPatchUpdateUpdateSerializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n PoolsRestartOptionalParams,\n PoolsStopOptionalParams,\n PoolsStartOptionalParams,\n PoolsListOptionalParams,\n PoolsDeleteOptionalParams,\n PoolsUpdateOptionalParams,\n PoolsCreateOrReplaceOptionalParams,\n PoolsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _restartSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsRestartOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/restart{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _restartDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible state. */\nexport function restart(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsRestartOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _restartDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _restartSend(context, resourceGroupName, clusterName, poolName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _stopSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsStopOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/stop{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _stopDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible state. */\nexport function stop(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsStopOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _stopDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _stopSend(context, resourceGroupName, clusterName, poolName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _startSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsStartOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/start{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _startDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is no cluster-level start action. Start does not apply pending dynamic or static parameter changes; parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible state. */\nexport function start(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsStartOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _startDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _startSend(context, resourceGroupName, clusterName, poolName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _listSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: PoolsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_PoolListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _poolListResultDeserializer(result.body);\n}\n\n/** Lists all HorizonDB pools in a cluster. */\nexport function list(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: PoolsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Pool> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, clusterName, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints resources are not deleted. The delete long-running operation completes only after all required private endpoint disconnections have completed. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, clusterName, poolName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n properties: PoolForPatchUpdateUpdate,\n options: PoolsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: poolForPatchUpdateUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n properties: PoolForPatchUpdateUpdate,\n options: PoolsUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, clusterName, poolName, properties, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _createOrReplaceSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n resource: PoolCreateOrUpdate,\n options: PoolsCreateOrReplaceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: poolCreateOrUpdateSerializer(resource),\n });\n}\n\nexport async function _createOrReplaceDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot outlive or be deleted independently from it. When the first pool is created, the service automatically designates it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one Pool before a private endpoint connection can be created or approved. This API version supports at most one pool per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup is optional during creation. When omitted during creation, the service applies the default parameter group compatible with the parent cluster's PostgreSQL version. When parameterGroup is supplied, parameterGroupResourceId and applyMethod are required. When creating a new pool in this API version, a supplied parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter group is rejected. When replacing an existing pool, the request can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated before the resource is changed. */\nexport function createOrReplace(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n resource: PoolCreateOrUpdate,\n options: PoolsCreateOrReplaceOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Pool>, Pool> {\n return getLongRunningPoller(context, _createOrReplaceDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrReplaceSend(context, resourceGroupName, clusterName, poolName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2026-10-01-preview\",\n }) as PollerLike<OperationState<Pool>, Pool>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n poolName: poolName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-10-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Pool> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return poolDeserializer(result.body);\n}\n\n/** Gets information about a HorizonDB pool. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n poolName: string,\n options: PoolsGetOptionalParams = { requestOptions: {} },\n): Promise<Pool> {\n const result = await _getSend(context, resourceGroupName, clusterName, poolName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -28,7 +28,7 @@ export interface ClustersOperations {
|
|
|
28
28
|
beginUpdate: (resourceGroupName: string, clusterName: string, properties: ClusterForPatchUpdateUpdate, options?: ClustersUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;
|
|
29
29
|
/** @deprecated use update instead */
|
|
30
30
|
beginUpdateAndWait: (resourceGroupName: string, clusterName: string, properties: ClusterForPatchUpdateUpdate, options?: ClustersUpdateOptionalParams) => Promise<Cluster>;
|
|
31
|
-
/** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata;
|
|
31
|
+
/** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata. During restore creation, the service ignores the requested backup.geoRedundancy value and configures the new cluster with the same geo-redundancy setting as the source cluster; this applies to both same-location and cross-location restores. All remaining new-cluster configuration comes from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and restores the latest available backup. Cross-location responses omit pointInTimeUtc. */
|
|
32
32
|
createOrReplace: (resourceGroupName: string, clusterName: string, resource: ClusterCreateOrUpdate, options?: ClustersCreateOrReplaceOptionalParams) => PollerLike<OperationState<Cluster>, Cluster>;
|
|
33
33
|
/** @deprecated use createOrReplace instead */
|
|
34
34
|
beginCreateOrReplace: (resourceGroupName: string, clusterName: string, resource: ClusterCreateOrUpdate, options?: ClustersCreateOrReplaceOptionalParams) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/clusters/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,QAAQ,EAC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,OAA+C,EAC/C,EAAE;YACF,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;YAC3F,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;YACzB,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,2BAA2B,EAAE,KAAK,EAChC,iBAAyB,EACzB,WAAmB,EACnB,QAA+B,EAC/B,OAA+C,EAC/C,EAAE;YACF,OAAO,MAAM,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC3F,CAAC;QACD,GAAG,EAAE,CAAC,iBAAyB,EAAE,WAAmB,EAAE,OAAmC,EAAE,EAAE,CAC3F,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;KACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAAyB;IAC9D,OAAO;QACL,GAAG,YAAY,CAAC,OAAO,CAAC;KACzB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HorizonDbContext } from \"../../api/horizonDbContext.js\";\nimport {\n failover,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrReplace,\n get,\n} from \"../../api/clusters/operations.js\";\nimport type {\n ClustersFailoverOptionalParams,\n ClustersListBySubscriptionOptionalParams,\n ClustersListByResourceGroupOptionalParams,\n ClustersDeleteOptionalParams,\n ClustersUpdateOptionalParams,\n ClustersCreateOrReplaceOptionalParams,\n ClustersGetOptionalParams,\n} from \"../../api/clusters/options.js\";\nimport type {\n Cluster,\n ClusterCreateOrUpdate,\n ClusterForPatchUpdateUpdate,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport type { SimplePollerLike } from \"../../static-helpers/simplePollerHelpers.js\";\nimport { getSimplePoller } from \"../../static-helpers/simplePollerHelpers.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Clusters operations. */\nexport interface ClustersOperations {\n /** Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the designated pool is not eligible for failover or another conflicting operation is in progress. */\n failover: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use failover instead */\n beginFailover: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use failover instead */\n beginFailoverAndWait: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => Promise<Cluster>;\n /** Lists all HorizonDB clusters in a subscription. */\n listBySubscription: (\n options?: ClustersListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<Cluster>;\n /** Lists all HorizonDB clusters in a resource group. */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Cluster>;\n /** Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns 404 Not Found. */\n delete: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** @deprecated use delete instead */\n beginDelete: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<void>, void>>;\n /** @deprecated use delete instead */\n beginDeleteAndWait: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => Promise<void>;\n /** Updates an existing HorizonDB cluster. */\n update: (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use update instead */\n beginUpdate: (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use update instead */\n beginUpdateAndWait: (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => Promise<Cluster>;\n /** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and restores the latest available backup. Cross-location responses omit pointInTimeUtc. */\n createOrReplace: (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use createOrReplace instead */\n beginCreateOrReplace: (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use createOrReplace instead */\n beginCreateOrReplaceAndWait: (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => Promise<Cluster>;\n /** Gets information about a HorizonDB cluster. */\n get: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersGetOptionalParams,\n ) => Promise<Cluster>;\n}\n\nfunction _getClusters(context: HorizonDbContext) {\n return {\n failover: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => failover(context, resourceGroupName, clusterName, options),\n beginFailover: async (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => {\n const poller = failover(context, resourceGroupName, clusterName, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginFailoverAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => {\n return await failover(context, resourceGroupName, clusterName, options);\n },\n listBySubscription: (options?: ClustersListBySubscriptionOptionalParams) =>\n listBySubscription(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, clusterName, options),\n beginDelete: async (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => {\n const poller = $delete(context, resourceGroupName, clusterName, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginDeleteAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => {\n return await $delete(context, resourceGroupName, clusterName, options);\n },\n update: (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => update(context, resourceGroupName, clusterName, properties, options),\n beginUpdate: async (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => {\n const poller = update(context, resourceGroupName, clusterName, properties, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginUpdateAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => {\n return await update(context, resourceGroupName, clusterName, properties, options);\n },\n createOrReplace: (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => createOrReplace(context, resourceGroupName, clusterName, resource, options),\n beginCreateOrReplace: async (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => {\n const poller = createOrReplace(context, resourceGroupName, clusterName, resource, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginCreateOrReplaceAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => {\n return await createOrReplace(context, resourceGroupName, clusterName, resource, options);\n },\n get: (resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams) =>\n get(context, resourceGroupName, clusterName, options),\n };\n}\n\nexport function _getClustersOperations(context: HorizonDbContext): ClustersOperations {\n return {\n ..._getClusters(context),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/clusters/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,eAAe,EACf,GAAG,GACJ,MAAM,kCAAkC,CAAC;AAiB1C,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAoG9E,SAAS,YAAY,CAAC,OAAyB;IAC7C,OAAO;QACL,QAAQ,EAAE,CACR,iBAAyB,EACzB,WAAmB,EACnB,OAAwC,EACxC,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;QAC/D,aAAa,EAAE,KAAK,EAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAwC,EACxC,EAAE;YACF,M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3F,CAAC;QACD,GAAG,EAAE,CAAC,iBAAyB,EAAE,WAAmB,EAAE,OAAmC,EAAE,EAAE,CAC3F,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;KACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAAyB;IAC9D,OAAO;QACL,GAAG,YAAY,CAAC,OAAO,CAAC;KACzB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HorizonDbContext } from \"../../api/horizonDbContext.js\";\nimport {\n failover,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrReplace,\n get,\n} from \"../../api/clusters/operations.js\";\nimport type {\n ClustersFailoverOptionalParams,\n ClustersListBySubscriptionOptionalParams,\n ClustersListByResourceGroupOptionalParams,\n ClustersDeleteOptionalParams,\n ClustersUpdateOptionalParams,\n ClustersCreateOrReplaceOptionalParams,\n ClustersGetOptionalParams,\n} from \"../../api/clusters/options.js\";\nimport type {\n Cluster,\n ClusterCreateOrUpdate,\n ClusterForPatchUpdateUpdate,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport type { SimplePollerLike } from \"../../static-helpers/simplePollerHelpers.js\";\nimport { getSimplePoller } from \"../../static-helpers/simplePollerHelpers.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Clusters operations. */\nexport interface ClustersOperations {\n /** Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the designated pool is not eligible for failover or another conflicting operation is in progress. */\n failover: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use failover instead */\n beginFailover: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use failover instead */\n beginFailoverAndWait: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => Promise<Cluster>;\n /** Lists all HorizonDB clusters in a subscription. */\n listBySubscription: (\n options?: ClustersListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<Cluster>;\n /** Lists all HorizonDB clusters in a resource group. */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<Cluster>;\n /** Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns 404 Not Found. */\n delete: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** @deprecated use delete instead */\n beginDelete: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<void>, void>>;\n /** @deprecated use delete instead */\n beginDeleteAndWait: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => Promise<void>;\n /** Updates an existing HorizonDB cluster. */\n update: (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use update instead */\n beginUpdate: (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use update instead */\n beginUpdateAndWait: (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => Promise<Cluster>;\n /** Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster resource and hydrates its service-owned database storage from an available source backup. It does not clone source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion must be omitted because the service obtains it from backup metadata. During restore creation, the service ignores the requested backup.geoRedundancy value and configures the new cluster with the same geo-redundancy setting as the source cluster; this applies to both same-location and cross-location restores. All remaining new-cluster configuration comes from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and restores the latest available backup. Cross-location responses omit pointInTimeUtc. */\n createOrReplace: (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => PollerLike<OperationState<Cluster>, Cluster>;\n /** @deprecated use createOrReplace instead */\n beginCreateOrReplace: (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => Promise<SimplePollerLike<OperationState<Cluster>, Cluster>>;\n /** @deprecated use createOrReplace instead */\n beginCreateOrReplaceAndWait: (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => Promise<Cluster>;\n /** Gets information about a HorizonDB cluster. */\n get: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersGetOptionalParams,\n ) => Promise<Cluster>;\n}\n\nfunction _getClusters(context: HorizonDbContext) {\n return {\n failover: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => failover(context, resourceGroupName, clusterName, options),\n beginFailover: async (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => {\n const poller = failover(context, resourceGroupName, clusterName, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginFailoverAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersFailoverOptionalParams,\n ) => {\n return await failover(context, resourceGroupName, clusterName, options);\n },\n listBySubscription: (options?: ClustersListBySubscriptionOptionalParams) =>\n listBySubscription(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: ClustersListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, clusterName, options),\n beginDelete: async (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => {\n const poller = $delete(context, resourceGroupName, clusterName, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginDeleteAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n options?: ClustersDeleteOptionalParams,\n ) => {\n return await $delete(context, resourceGroupName, clusterName, options);\n },\n update: (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => update(context, resourceGroupName, clusterName, properties, options),\n beginUpdate: async (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => {\n const poller = update(context, resourceGroupName, clusterName, properties, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginUpdateAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n properties: ClusterForPatchUpdateUpdate,\n options?: ClustersUpdateOptionalParams,\n ) => {\n return await update(context, resourceGroupName, clusterName, properties, options);\n },\n createOrReplace: (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => createOrReplace(context, resourceGroupName, clusterName, resource, options),\n beginCreateOrReplace: async (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => {\n const poller = createOrReplace(context, resourceGroupName, clusterName, resource, options);\n await poller.submitted();\n return getSimplePoller(poller);\n },\n beginCreateOrReplaceAndWait: async (\n resourceGroupName: string,\n clusterName: string,\n resource: ClusterCreateOrUpdate,\n options?: ClustersCreateOrReplaceOptionalParams,\n ) => {\n return await createOrReplace(context, resourceGroupName, clusterName, resource, options);\n },\n get: (resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams) =>\n get(context, resourceGroupName, clusterName, options),\n };\n}\n\nexport function _getClustersOperations(context: HorizonDbContext): ClustersOperations {\n return {\n ..._getClusters(context),\n };\n}\n"]}
|
|
@@ -38,7 +38,7 @@ export interface PoolsOperations {
|
|
|
38
38
|
beginUpdate: (resourceGroupName: string, clusterName: string, poolName: string, properties: PoolForPatchUpdateUpdate, options?: PoolsUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<Pool>, Pool>>;
|
|
39
39
|
/** @deprecated use update instead */
|
|
40
40
|
beginUpdateAndWait: (resourceGroupName: string, clusterName: string, poolName: string, properties: PoolForPatchUpdateUpdate, options?: PoolsUpdateOptionalParams) => Promise<Pool>;
|
|
41
|
-
/** Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot outlive or be deleted independently from it. When the first pool is created, the service automatically designates it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one Pool before a private endpoint connection can be created or approved. This API version supports at most one pool per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup,
|
|
41
|
+
/** Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot outlive or be deleted independently from it. When the first pool is created, the service automatically designates it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one Pool before a private endpoint connection can be created or approved. This API version supports at most one pool per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup is optional during creation. When omitted during creation, the service applies the default parameter group compatible with the parent cluster's PostgreSQL version. When parameterGroup is supplied, parameterGroupResourceId and applyMethod are required. When creating a new pool in this API version, a supplied parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter group is rejected. When replacing an existing pool, the request can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated before the resource is changed. */
|
|
42
42
|
createOrReplace: (resourceGroupName: string, clusterName: string, poolName: string, resource: PoolCreateOrUpdate, options?: PoolsCreateOrReplaceOptionalParams) => PollerLike<OperationState<Pool>, Pool>;
|
|
43
43
|
/** @deprecated use createOrReplace instead */
|
|
44
44
|
beginCreateOrReplace: (resourceGroupName: string, clusterName: string, poolName: string, resource: PoolCreateOrUpdate, options?: PoolsCreateOrReplaceOptionalParams) => Promise<SimplePollerLike<OperationState<Pool>, Pool>>;
|