@nirvana-labs/nirvana 1.91.3 → 1.91.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/bin/migration-config.json +37 -0
- package/client.d.mts +2 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -0
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/compute/vms/availability.d.mts +1 -1
- package/resources/compute/vms/availability.d.ts +1 -1
- package/resources/compute/vms/availability.js +1 -1
- package/resources/compute/vms/availability.mjs +1 -1
- package/resources/compute/vms/cost.d.mts +149 -0
- package/resources/compute/vms/cost.d.mts.map +1 -0
- package/resources/compute/vms/cost.d.ts +149 -0
- package/resources/compute/vms/cost.d.ts.map +1 -0
- package/resources/compute/vms/cost.js +47 -0
- package/resources/compute/vms/cost.js.map +1 -0
- package/resources/compute/vms/cost.mjs +43 -0
- package/resources/compute/vms/cost.mjs.map +1 -0
- package/resources/compute/vms/index.d.mts +1 -0
- package/resources/compute/vms/index.d.mts.map +1 -1
- package/resources/compute/vms/index.d.ts +1 -0
- package/resources/compute/vms/index.d.ts.map +1 -1
- package/resources/compute/vms/index.js +3 -1
- package/resources/compute/vms/index.js.map +1 -1
- package/resources/compute/vms/index.mjs +1 -0
- package/resources/compute/vms/index.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +5 -1
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +5 -1
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +5 -1
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +5 -1
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes/cost.d.mts +81 -0
- package/resources/compute/volumes/cost.d.mts.map +1 -0
- package/resources/compute/volumes/cost.d.ts +81 -0
- package/resources/compute/volumes/cost.d.ts.map +1 -0
- package/resources/compute/volumes/cost.js +40 -0
- package/resources/compute/volumes/cost.js.map +1 -0
- package/resources/compute/volumes/cost.mjs +36 -0
- package/resources/compute/volumes/cost.mjs.map +1 -0
- package/resources/compute/volumes/index.d.mts +1 -0
- package/resources/compute/volumes/index.d.mts.map +1 -1
- package/resources/compute/volumes/index.d.ts +1 -0
- package/resources/compute/volumes/index.d.ts.map +1 -1
- package/resources/compute/volumes/index.js +3 -1
- package/resources/compute/volumes/index.js.map +1 -1
- package/resources/compute/volumes/index.mjs +1 -0
- package/resources/compute/volumes/index.mjs.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +4 -0
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +4 -0
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.js +4 -0
- package/resources/compute/volumes/volumes.js.map +1 -1
- package/resources/compute/volumes/volumes.mjs +4 -0
- package/resources/compute/volumes/volumes.mjs.map +1 -1
- package/resources/networking/connect/connect.d.mts +2 -2
- package/resources/networking/connect/connect.d.mts.map +1 -1
- package/resources/networking/connect/connect.d.ts +2 -2
- package/resources/networking/connect/connect.d.ts.map +1 -1
- package/resources/networking/connect/connect.js +2 -2
- package/resources/networking/connect/connect.js.map +1 -1
- package/resources/networking/connect/connect.mjs +2 -2
- package/resources/networking/connect/connect.mjs.map +1 -1
- package/resources/networking/connect/connections/connections.d.mts +136 -0
- package/resources/networking/connect/connections/connections.d.mts.map +1 -0
- package/resources/networking/connect/connections/connections.d.ts +136 -0
- package/resources/networking/connect/connections/connections.d.ts.map +1 -0
- package/resources/networking/connect/connections/connections.js +96 -0
- package/resources/networking/connect/connections/connections.js.map +1 -0
- package/resources/networking/connect/connections/connections.mjs +91 -0
- package/resources/networking/connect/connections/connections.mjs.map +1 -0
- package/resources/networking/connect/connections/cost.d.mts +85 -0
- package/resources/networking/connect/connections/cost.d.mts.map +1 -0
- package/resources/networking/connect/connections/cost.d.ts +85 -0
- package/resources/networking/connect/connections/cost.d.ts.map +1 -0
- package/resources/networking/connect/connections/cost.js +47 -0
- package/resources/networking/connect/connections/cost.js.map +1 -0
- package/resources/networking/connect/connections/cost.mjs +43 -0
- package/resources/networking/connect/connections/cost.mjs.map +1 -0
- package/resources/networking/connect/connections/index.d.mts +3 -0
- package/resources/networking/connect/connections/index.d.mts.map +1 -0
- package/resources/networking/connect/connections/index.d.ts +3 -0
- package/resources/networking/connect/connections/index.d.ts.map +1 -0
- package/resources/networking/connect/connections/index.js +9 -0
- package/resources/networking/connect/connections/index.js.map +1 -0
- package/resources/networking/connect/connections/index.mjs +4 -0
- package/resources/networking/connect/connections/index.mjs.map +1 -0
- package/resources/networking/connect/connections.d.mts +1 -131
- package/resources/networking/connect/connections.d.mts.map +1 -1
- package/resources/networking/connect/connections.d.ts +1 -131
- package/resources/networking/connect/connections.d.ts.map +1 -1
- package/resources/networking/connect/connections.js +2 -84
- package/resources/networking/connect/connections.js.map +1 -1
- package/resources/networking/connect/connections.mjs +1 -82
- package/resources/networking/connect/connections.mjs.map +1 -1
- package/resources/networking/connect/index.d.mts +1 -1
- package/resources/networking/connect/index.d.mts.map +1 -1
- package/resources/networking/connect/index.d.ts +1 -1
- package/resources/networking/connect/index.d.ts.map +1 -1
- package/resources/networking/connect/index.js +2 -2
- package/resources/networking/connect/index.js.map +1 -1
- package/resources/networking/connect/index.mjs +1 -1
- package/resources/networking/connect/index.mjs.map +1 -1
- package/resources/networking/vpcs/cost.d.mts +71 -0
- package/resources/networking/vpcs/cost.d.mts.map +1 -0
- package/resources/networking/vpcs/cost.d.ts +71 -0
- package/resources/networking/vpcs/cost.d.ts.map +1 -0
- package/resources/networking/vpcs/cost.js +39 -0
- package/resources/networking/vpcs/cost.js.map +1 -0
- package/resources/networking/vpcs/cost.mjs +35 -0
- package/resources/networking/vpcs/cost.mjs.map +1 -0
- package/resources/networking/vpcs/index.d.mts +1 -0
- package/resources/networking/vpcs/index.d.mts.map +1 -1
- package/resources/networking/vpcs/index.d.ts +1 -0
- package/resources/networking/vpcs/index.d.ts.map +1 -1
- package/resources/networking/vpcs/index.js +3 -1
- package/resources/networking/vpcs/index.js.map +1 -1
- package/resources/networking/vpcs/index.mjs +1 -0
- package/resources/networking/vpcs/index.mjs.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +4 -0
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +4 -0
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.js +4 -0
- package/resources/networking/vpcs/vpcs.js.map +1 -1
- package/resources/networking/vpcs/vpcs.mjs +4 -0
- package/resources/networking/vpcs/vpcs.mjs.map +1 -1
- package/resources/nks/clusters/clusters.d.mts +4 -0
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +4 -0
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js +4 -0
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs +4 -0
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/cost.d.mts +81 -0
- package/resources/nks/clusters/cost.d.mts.map +1 -0
- package/resources/nks/clusters/cost.d.ts +81 -0
- package/resources/nks/clusters/cost.d.ts.map +1 -0
- package/resources/nks/clusters/cost.js +41 -0
- package/resources/nks/clusters/cost.js.map +1 -0
- package/resources/nks/clusters/cost.mjs +37 -0
- package/resources/nks/clusters/cost.mjs.map +1 -0
- package/resources/nks/clusters/index.d.mts +1 -0
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +1 -0
- package/resources/nks/clusters/index.d.ts.map +1 -1
- package/resources/nks/clusters/index.js +3 -1
- package/resources/nks/clusters/index.js.map +1 -1
- package/resources/nks/clusters/index.mjs +1 -0
- package/resources/nks/clusters/index.mjs.map +1 -1
- package/resources/nks/clusters/pools/cost.d.mts +97 -0
- package/resources/nks/clusters/pools/cost.d.mts.map +1 -0
- package/resources/nks/clusters/pools/cost.d.ts +97 -0
- package/resources/nks/clusters/pools/cost.d.ts.map +1 -0
- package/resources/nks/clusters/pools/cost.js +51 -0
- package/resources/nks/clusters/pools/cost.js.map +1 -0
- package/resources/nks/clusters/pools/cost.mjs +47 -0
- package/resources/nks/clusters/pools/cost.mjs.map +1 -0
- package/resources/nks/clusters/pools/index.d.mts +1 -0
- package/resources/nks/clusters/pools/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/index.d.ts +1 -0
- package/resources/nks/clusters/pools/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/index.js +3 -1
- package/resources/nks/clusters/pools/index.js.map +1 -1
- package/resources/nks/clusters/pools/index.mjs +1 -0
- package/resources/nks/clusters/pools/index.mjs.map +1 -1
- package/resources/nks/clusters/pools/pools.d.mts +4 -0
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.ts +4 -0
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.js +4 -0
- package/resources/nks/clusters/pools/pools.js.map +1 -1
- package/resources/nks/clusters/pools/pools.mjs +4 -0
- package/resources/nks/clusters/pools/pools.mjs.map +1 -1
- package/resources/shared.d.mts +226 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +226 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/compute/api.md +14 -0
- package/src/resources/compute/vms/availability.ts +1 -1
- package/src/resources/compute/vms/cost.ts +180 -0
- package/src/resources/compute/vms/index.ts +1 -0
- package/src/resources/compute/vms/vms.ts +11 -1
- package/src/resources/compute/volumes/cost.ts +104 -0
- package/src/resources/compute/volumes/index.ts +1 -0
- package/src/resources/compute/volumes/volumes.ts +10 -0
- package/src/resources/networking/api.md +19 -5
- package/src/resources/networking/connect/connect.ts +4 -4
- package/src/resources/networking/connect/connections/connections.ts +189 -0
- package/src/resources/networking/connect/connections/cost.ts +111 -0
- package/src/resources/networking/connect/connections/index.ts +9 -0
- package/src/resources/networking/connect/connections.ts +1 -175
- package/src/resources/networking/connect/index.ts +1 -1
- package/src/resources/networking/vpcs/cost.ts +92 -0
- package/src/resources/networking/vpcs/index.ts +1 -0
- package/src/resources/networking/vpcs/vpcs.ts +10 -0
- package/src/resources/nks/api.md +14 -0
- package/src/resources/nks/clusters/clusters.ts +10 -0
- package/src/resources/nks/clusters/cost.ts +104 -0
- package/src/resources/nks/clusters/index.ts +1 -0
- package/src/resources/nks/clusters/pools/cost.ts +124 -0
- package/src/resources/nks/clusters/pools/index.ts +1 -0
- package/src/resources/nks/clusters/pools/pools.ts +10 -0
- package/src/resources/shared.ts +267 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import * as Shared from '../../../shared';
|
|
5
|
+
import * as PoolsAPI from './pools';
|
|
6
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Cost extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Return a priced cost quote for the proposed NKS node pool.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const costQuote =
|
|
17
|
+
* await client.nks.clusters.pools.cost.create(
|
|
18
|
+
* 'cluster_id',
|
|
19
|
+
* {
|
|
20
|
+
* name: 'my-node-pool',
|
|
21
|
+
* node_config: {
|
|
22
|
+
* boot_volume: { size: 100, type: 'abs' },
|
|
23
|
+
* instance_type: 'n1-standard-8',
|
|
24
|
+
* },
|
|
25
|
+
* node_count: 3,
|
|
26
|
+
* },
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
create(clusterID: string, body: CostCreateParams, options?: RequestOptions): APIPromise<Shared.CostQuote> {
|
|
31
|
+
return this._client.post(path`/v1/nks/clusters/${clusterID}/pools/cost`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Return a priced cost quote for the proposed NKS node pool update plus a diff
|
|
36
|
+
* against the current state.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const costQuoteUpdate =
|
|
41
|
+
* await client.nks.clusters.pools.cost.update('pool_id', {
|
|
42
|
+
* cluster_id: 'cluster_id',
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
update(
|
|
47
|
+
poolID: string,
|
|
48
|
+
params: CostUpdateParams,
|
|
49
|
+
options?: RequestOptions,
|
|
50
|
+
): APIPromise<Shared.CostQuoteUpdate> {
|
|
51
|
+
const { cluster_id, ...body } = params;
|
|
52
|
+
return this._client.patch(path`/v1/nks/clusters/${cluster_id}/pools/${poolID}/cost`, {
|
|
53
|
+
body,
|
|
54
|
+
...options,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface CostCreateParams {
|
|
60
|
+
/**
|
|
61
|
+
* Name of the node pool.
|
|
62
|
+
*/
|
|
63
|
+
name: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Node configuration.
|
|
67
|
+
*/
|
|
68
|
+
node_config: PoolsAPI.NKSNodePoolNodeConfig;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Number of nodes. Must be between 1 and 100.
|
|
72
|
+
*/
|
|
73
|
+
node_count: number;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Tags to attach to the node pool.
|
|
77
|
+
*/
|
|
78
|
+
tags?: Array<string>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface CostUpdateParams {
|
|
82
|
+
/**
|
|
83
|
+
* Path param: Cluster ID
|
|
84
|
+
*/
|
|
85
|
+
cluster_id: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Body param: Name of the node pool.
|
|
89
|
+
*/
|
|
90
|
+
name?: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Body param: Partial node configuration update.
|
|
94
|
+
*/
|
|
95
|
+
node_config?: CostUpdateParams.NodeConfig;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Body param: Number of nodes.
|
|
99
|
+
*/
|
|
100
|
+
node_count?: number;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Body param: Tags to attach to the node pool.
|
|
104
|
+
*/
|
|
105
|
+
tags?: Array<string>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export namespace CostUpdateParams {
|
|
109
|
+
/**
|
|
110
|
+
* Partial node configuration update.
|
|
111
|
+
*/
|
|
112
|
+
export interface NodeConfig {
|
|
113
|
+
/**
|
|
114
|
+
* Kubernetes labels to apply to each node in the pool. Each entry is "key=value".
|
|
115
|
+
* When provided, the list fully replaces the current labels on the pool and on
|
|
116
|
+
* live nodes.
|
|
117
|
+
*/
|
|
118
|
+
labels?: Array<string>;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export declare namespace Cost {
|
|
123
|
+
export { type CostCreateParams as CostCreateParams, type CostUpdateParams as CostUpdateParams };
|
|
124
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Availability, type AvailabilityCreateParams, type AvailabilityUpdateParams } from './availability';
|
|
4
|
+
export { Cost, type CostCreateParams, type CostUpdateParams } from './cost';
|
|
4
5
|
export {
|
|
5
6
|
Nodes,
|
|
6
7
|
type NKSNode,
|
|
@@ -6,6 +6,8 @@ import * as OperationsAPI from '../../../operations/operations';
|
|
|
6
6
|
import * as VolumesAPI from '../../../compute/volumes/volumes';
|
|
7
7
|
import * as AvailabilityAPI from './availability';
|
|
8
8
|
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from './availability';
|
|
9
|
+
import * as CostAPI from './cost';
|
|
10
|
+
import { Cost, CostCreateParams, CostUpdateParams } from './cost';
|
|
9
11
|
import * as NodesAPI from './nodes/nodes';
|
|
10
12
|
import {
|
|
11
13
|
NKSNode,
|
|
@@ -23,6 +25,7 @@ import { path } from '../../../../internal/utils/path';
|
|
|
23
25
|
|
|
24
26
|
export class Pools extends APIResource {
|
|
25
27
|
availability: AvailabilityAPI.Availability = new AvailabilityAPI.Availability(this._client);
|
|
28
|
+
cost: CostAPI.Cost = new CostAPI.Cost(this._client);
|
|
26
29
|
nodes: NodesAPI.Nodes = new NodesAPI.Nodes(this._client);
|
|
27
30
|
|
|
28
31
|
/**
|
|
@@ -357,6 +360,7 @@ export interface PoolDeleteParams {
|
|
|
357
360
|
export interface PoolListParams extends CursorParams {}
|
|
358
361
|
|
|
359
362
|
Pools.Availability = Availability;
|
|
363
|
+
Pools.Cost = Cost;
|
|
360
364
|
Pools.Nodes = Nodes;
|
|
361
365
|
|
|
362
366
|
export declare namespace Pools {
|
|
@@ -381,6 +385,12 @@ export declare namespace Pools {
|
|
|
381
385
|
type AvailabilityUpdateParams as AvailabilityUpdateParams,
|
|
382
386
|
};
|
|
383
387
|
|
|
388
|
+
export {
|
|
389
|
+
Cost as Cost,
|
|
390
|
+
type CostCreateParams as CostCreateParams,
|
|
391
|
+
type CostUpdateParams as CostUpdateParams,
|
|
392
|
+
};
|
|
393
|
+
|
|
384
394
|
export {
|
|
385
395
|
Nodes as Nodes,
|
|
386
396
|
type NKSNode as NKSNode,
|
package/src/resources/shared.ts
CHANGED
|
@@ -1,5 +1,272 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Cost quote returned by POST /cost.
|
|
5
|
+
*/
|
|
6
|
+
export interface CostQuote {
|
|
7
|
+
/**
|
|
8
|
+
* Currency the quote is denominated in. Always "USD" in v1.
|
|
9
|
+
*/
|
|
10
|
+
currency: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
14
|
+
*/
|
|
15
|
+
monthly_total: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Timestamp the quote was priced at.
|
|
19
|
+
*/
|
|
20
|
+
priced_at: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Priced rows, one per usage dimension emitted by the resource.
|
|
24
|
+
*/
|
|
25
|
+
usage_dimensions: Array<CostQuote.UsageDimension>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace CostQuote {
|
|
29
|
+
/**
|
|
30
|
+
* Priced row for a single usage dimension emitted by a resource.
|
|
31
|
+
*/
|
|
32
|
+
export interface UsageDimension {
|
|
33
|
+
/**
|
|
34
|
+
* Usage dimension being priced (e.g. compute_vcpu, storage_abs_gb).
|
|
35
|
+
*/
|
|
36
|
+
dimension: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* User-facing label for the dimension (e.g. "vCPU (hours)").
|
|
40
|
+
*/
|
|
41
|
+
dimension_display_name: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
45
|
+
*/
|
|
46
|
+
monthly_amount: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Quantity of the dimension being priced.
|
|
50
|
+
*/
|
|
51
|
+
quantity: number;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
55
|
+
*/
|
|
56
|
+
unit_price: string;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Cost quote returned by PATCH /:id/cost: the current-state quote, the post-update
|
|
62
|
+
* quote, and the signed diff.
|
|
63
|
+
*/
|
|
64
|
+
export interface CostQuoteUpdate {
|
|
65
|
+
/**
|
|
66
|
+
* Quote for the proposed (post-update) resource state.
|
|
67
|
+
*/
|
|
68
|
+
after: CostQuoteUpdate.After;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Quote for the proposed (post-update) resource state.
|
|
72
|
+
*/
|
|
73
|
+
before: CostQuoteUpdate.Before;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Currency the quote is denominated in. Always "USD" in v1.
|
|
77
|
+
*/
|
|
78
|
+
currency: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Per-dimension and total deltas: after minus before.
|
|
82
|
+
*/
|
|
83
|
+
diff: CostQuoteUpdate.Diff;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Timestamp the quote was priced at.
|
|
87
|
+
*/
|
|
88
|
+
priced_at: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export namespace CostQuoteUpdate {
|
|
92
|
+
/**
|
|
93
|
+
* Quote for the proposed (post-update) resource state.
|
|
94
|
+
*/
|
|
95
|
+
export interface After {
|
|
96
|
+
/**
|
|
97
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
98
|
+
*/
|
|
99
|
+
monthly_total: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Priced rows, one per usage dimension emitted by the resource.
|
|
103
|
+
*/
|
|
104
|
+
usage_dimensions: Array<After.UsageDimension>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export namespace After {
|
|
108
|
+
/**
|
|
109
|
+
* Priced row for a single usage dimension emitted by a resource.
|
|
110
|
+
*/
|
|
111
|
+
export interface UsageDimension {
|
|
112
|
+
/**
|
|
113
|
+
* Usage dimension being priced (e.g. compute_vcpu, storage_abs_gb).
|
|
114
|
+
*/
|
|
115
|
+
dimension: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* User-facing label for the dimension (e.g. "vCPU (hours)").
|
|
119
|
+
*/
|
|
120
|
+
dimension_display_name: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
124
|
+
*/
|
|
125
|
+
monthly_amount: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Quantity of the dimension being priced.
|
|
129
|
+
*/
|
|
130
|
+
quantity: number;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
134
|
+
*/
|
|
135
|
+
unit_price: string;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Quote for the proposed (post-update) resource state.
|
|
141
|
+
*/
|
|
142
|
+
export interface Before {
|
|
143
|
+
/**
|
|
144
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
145
|
+
*/
|
|
146
|
+
monthly_total: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Priced rows, one per usage dimension emitted by the resource.
|
|
150
|
+
*/
|
|
151
|
+
usage_dimensions: Array<Before.UsageDimension>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export namespace Before {
|
|
155
|
+
/**
|
|
156
|
+
* Priced row for a single usage dimension emitted by a resource.
|
|
157
|
+
*/
|
|
158
|
+
export interface UsageDimension {
|
|
159
|
+
/**
|
|
160
|
+
* Usage dimension being priced (e.g. compute_vcpu, storage_abs_gb).
|
|
161
|
+
*/
|
|
162
|
+
dimension: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* User-facing label for the dimension (e.g. "vCPU (hours)").
|
|
166
|
+
*/
|
|
167
|
+
dimension_display_name: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
171
|
+
*/
|
|
172
|
+
monthly_amount: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Quantity of the dimension being priced.
|
|
176
|
+
*/
|
|
177
|
+
quantity: number;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
181
|
+
*/
|
|
182
|
+
unit_price: string;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Per-dimension and total deltas: after minus before.
|
|
188
|
+
*/
|
|
189
|
+
export interface Diff {
|
|
190
|
+
/**
|
|
191
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
192
|
+
*/
|
|
193
|
+
monthly_total_delta: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Per-dimension diff entries. Includes every dimension touched by the update.
|
|
197
|
+
*/
|
|
198
|
+
usage_dimensions: Array<Diff.UsageDimension>;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export namespace Diff {
|
|
202
|
+
/**
|
|
203
|
+
* Per-dimension diff entry. Both before and after are always present.
|
|
204
|
+
*/
|
|
205
|
+
export interface UsageDimension {
|
|
206
|
+
/**
|
|
207
|
+
* Priced row after the update. Always present.
|
|
208
|
+
*/
|
|
209
|
+
after: UsageDimension.After;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Priced row after the update. Always present.
|
|
213
|
+
*/
|
|
214
|
+
before: UsageDimension.Before;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Usage dimension being priced (e.g. compute_vcpu, storage_abs_gb).
|
|
218
|
+
*/
|
|
219
|
+
dimension: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* User-facing label for the dimension (e.g. "vCPU (hours)").
|
|
223
|
+
*/
|
|
224
|
+
dimension_display_name: string;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
228
|
+
*/
|
|
229
|
+
monthly_amount_delta: string;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export namespace UsageDimension {
|
|
233
|
+
/**
|
|
234
|
+
* Priced row after the update. Always present.
|
|
235
|
+
*/
|
|
236
|
+
export interface After {
|
|
237
|
+
/**
|
|
238
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
239
|
+
*/
|
|
240
|
+
monthly_amount: string;
|
|
241
|
+
|
|
242
|
+
quantity: number;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
246
|
+
*/
|
|
247
|
+
unit_price: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Priced row after the update. Always present.
|
|
252
|
+
*/
|
|
253
|
+
export interface Before {
|
|
254
|
+
/**
|
|
255
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
256
|
+
*/
|
|
257
|
+
monthly_amount: string;
|
|
258
|
+
|
|
259
|
+
quantity: number;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
263
|
+
*/
|
|
264
|
+
unit_price: string;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
3
270
|
/**
|
|
4
271
|
* Pagination response details.
|
|
5
272
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.91.
|
|
1
|
+
export const VERSION = '1.91.5'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.91.
|
|
1
|
+
export declare const VERSION = "1.91.5";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.91.
|
|
1
|
+
export declare const VERSION = "1.91.5";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.91.
|
|
1
|
+
export const VERSION = '1.91.5'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|