@homeflare/distilled-proxmox 0.3.2 → 0.3.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.
@@ -17,6 +17,26 @@ export class FirewallAliasNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyEr
17
17
  message: S.String,
18
18
  }).pipe(C.withBadRequestError), [{ status: 400, message: { matches: "^no such alias$" } }]) {
19
19
  }
20
+ /** The HA resource does not exist. pve-ha-manager 5.2.5, 28c31e4124ab2440753e7bf843c4dba97637aed8, PVE/API2/HA/Resources.pm:27 (GET, via the read method at line 179) raises no such resource '<sid>', and line 320 (DELETE) raises cannot delete service '<sid>', not HA managed. Both are wire 500. PUT does not raise either sentence and is not attached. */
21
+ export class HaResourceNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
22
+ /*@__PURE__*/ S.TaggedError()("HaResourceNotFound", {
23
+ message: S.String,
24
+ }).pipe(C.withBadRequestError), [
25
+ { status: 500, message: { matches: "^no such resource '[^']+'\\n?$" } },
26
+ {
27
+ status: 500,
28
+ message: {
29
+ matches: "^cannot delete service '[^']+', not HA managed!\\n?$",
30
+ },
31
+ },
32
+ ]) {
33
+ }
34
+ /** The HA rule does not exist. pve-ha-manager 5.2.5, 28c31e4124ab2440753e7bf843c4dba97637aed8, PVE/API2/HA/Rules.pm:25 (GET, via the read method at line 247) raises no such ha rule '<ruleid>' as a wire 500. DELETE removes the id with no absence check and is not attached. PUT of a missing rule raises a different sentence and is not this tag. */
35
+ export class HaRuleNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
36
+ /*@__PURE__*/ S.TaggedError()("HaRuleNotFound", {
37
+ message: S.String,
38
+ }).pipe(C.withBadRequestError), [{ status: 500, message: { matches: "^no such ha rule '[^']+'\\n?$" } }]) {
39
+ }
20
40
  /** The metrics server does not exist. pve-manager 9.2.11, f6997e698c7933ea8e62319e2bf1bf7262daa56a, PVE/API2/Cluster/MetricServer.pm:136 throws status server entry '<id>' does not exist on GET, and line 228 throws no such server '<id>' on PUT. Both are wire 500. DELETE dereferences the plugin config without an explicit absence check and is not declared to return this tag. */
21
41
  export class MetricServerNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
22
42
  /*@__PURE__*/ S.TaggedError()("MetricServerNotFound", {
@@ -5695,7 +5715,7 @@ export const deleteClusterHaGroup = /*@__PURE__*/ API.make(() => ({
5695
5715
  export const deleteClusterHaResource = /*@__PURE__*/ API.make(() => ({
5696
5716
  input: DeleteClusterHaResourceRequest,
5697
5717
  output: DeleteClusterHaResourceResponse,
5698
- errors: [],
5718
+ errors: [HaResourceNotFound],
5699
5719
  protocol: ProxmoxProtocol,
5700
5720
  retry: Retry.Retry,
5701
5721
  }));
@@ -6087,7 +6107,7 @@ export const getClusterHaGroup = /*@__PURE__*/ API.make(() => ({
6087
6107
  export const getClusterHaResource = /*@__PURE__*/ API.make(() => ({
6088
6108
  input: GetClusterHaResourceRequest,
6089
6109
  output: GetClusterHaResourceResponse,
6090
- errors: [],
6110
+ errors: [HaResourceNotFound],
6091
6111
  protocol: ProxmoxProtocol,
6092
6112
  retry: Retry.Retry,
6093
6113
  }));
@@ -6095,7 +6115,7 @@ export const getClusterHaResource = /*@__PURE__*/ API.make(() => ({
6095
6115
  export const getClusterHaRule = /*@__PURE__*/ API.make(() => ({
6096
6116
  input: GetClusterHaRuleRequest,
6097
6117
  output: GetClusterHaRuleResponse,
6098
- errors: [],
6118
+ errors: [HaRuleNotFound],
6099
6119
  protocol: ProxmoxProtocol,
6100
6120
  retry: Retry.Retry,
6101
6121
  }));