waldur-js-client 8.0.8-dev.36 → 8.0.8-dev.37
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/sdk.gen.d.ts +17 -1
- package/dist/sdk.gen.js +111 -0
- package/dist/types.gen.d.ts +143 -0
- package/package.json +1 -1
package/dist/sdk.gen.js
CHANGED
|
@@ -37034,6 +37034,69 @@ export const openstackHealthMonitorsPull = (options) => {
|
|
|
37034
37034
|
...options
|
|
37035
37035
|
});
|
|
37036
37036
|
};
|
|
37037
|
+
export const openstackHypervisorInventoriesList = (options) => {
|
|
37038
|
+
return (options?.client ?? _heyApiClient).get({
|
|
37039
|
+
security: [
|
|
37040
|
+
{
|
|
37041
|
+
name: 'Authorization',
|
|
37042
|
+
type: 'apiKey'
|
|
37043
|
+
},
|
|
37044
|
+
{
|
|
37045
|
+
scheme: 'bearer',
|
|
37046
|
+
type: 'http'
|
|
37047
|
+
},
|
|
37048
|
+
{
|
|
37049
|
+
scheme: 'bearer',
|
|
37050
|
+
type: 'http'
|
|
37051
|
+
}
|
|
37052
|
+
],
|
|
37053
|
+
url: '/api/openstack-hypervisor-inventories/',
|
|
37054
|
+
...options
|
|
37055
|
+
});
|
|
37056
|
+
};
|
|
37057
|
+
/**
|
|
37058
|
+
* Get number of items in the collection matching the request parameters.
|
|
37059
|
+
*/
|
|
37060
|
+
export const openstackHypervisorInventoriesCount = (options) => {
|
|
37061
|
+
return (options?.client ?? _heyApiClient).head({
|
|
37062
|
+
security: [
|
|
37063
|
+
{
|
|
37064
|
+
name: 'Authorization',
|
|
37065
|
+
type: 'apiKey'
|
|
37066
|
+
},
|
|
37067
|
+
{
|
|
37068
|
+
scheme: 'bearer',
|
|
37069
|
+
type: 'http'
|
|
37070
|
+
},
|
|
37071
|
+
{
|
|
37072
|
+
scheme: 'bearer',
|
|
37073
|
+
type: 'http'
|
|
37074
|
+
}
|
|
37075
|
+
],
|
|
37076
|
+
url: '/api/openstack-hypervisor-inventories/',
|
|
37077
|
+
...options
|
|
37078
|
+
});
|
|
37079
|
+
};
|
|
37080
|
+
export const openstackHypervisorInventoriesRetrieve = (options) => {
|
|
37081
|
+
return (options.client ?? _heyApiClient).get({
|
|
37082
|
+
security: [
|
|
37083
|
+
{
|
|
37084
|
+
name: 'Authorization',
|
|
37085
|
+
type: 'apiKey'
|
|
37086
|
+
},
|
|
37087
|
+
{
|
|
37088
|
+
scheme: 'bearer',
|
|
37089
|
+
type: 'http'
|
|
37090
|
+
},
|
|
37091
|
+
{
|
|
37092
|
+
scheme: 'bearer',
|
|
37093
|
+
type: 'http'
|
|
37094
|
+
}
|
|
37095
|
+
],
|
|
37096
|
+
url: '/api/openstack-hypervisor-inventories/{uuid}/',
|
|
37097
|
+
...options
|
|
37098
|
+
});
|
|
37099
|
+
};
|
|
37037
37100
|
export const openstackHypervisorsList = (options) => {
|
|
37038
37101
|
return (options?.client ?? _heyApiClient).get({
|
|
37039
37102
|
security: [
|
|
@@ -37097,6 +37160,54 @@ export const openstackHypervisorsRetrieve = (options) => {
|
|
|
37097
37160
|
...options
|
|
37098
37161
|
});
|
|
37099
37162
|
};
|
|
37163
|
+
/**
|
|
37164
|
+
* Pre-flight allocation candidates
|
|
37165
|
+
* Ask Placement which compute hosts could currently satisfy a request for the given resources (and required traits). Useful as a pre-flight check before placing an order on a fully-booked cloud. Returns 0 candidates when nothing fits, with the same provider_summaries Placement returns for diagnostic display.
|
|
37166
|
+
*/
|
|
37167
|
+
export const openstackHypervisorsAllocationCandidatesRetrieve = (options) => {
|
|
37168
|
+
return (options.client ?? _heyApiClient).get({
|
|
37169
|
+
security: [
|
|
37170
|
+
{
|
|
37171
|
+
name: 'Authorization',
|
|
37172
|
+
type: 'apiKey'
|
|
37173
|
+
},
|
|
37174
|
+
{
|
|
37175
|
+
scheme: 'bearer',
|
|
37176
|
+
type: 'http'
|
|
37177
|
+
},
|
|
37178
|
+
{
|
|
37179
|
+
scheme: 'bearer',
|
|
37180
|
+
type: 'http'
|
|
37181
|
+
}
|
|
37182
|
+
],
|
|
37183
|
+
url: '/api/openstack-hypervisors/allocation_candidates/',
|
|
37184
|
+
...options
|
|
37185
|
+
});
|
|
37186
|
+
};
|
|
37187
|
+
/**
|
|
37188
|
+
* Pre-flight allocation candidates
|
|
37189
|
+
* Get number of items in the collection matching the request parameters.
|
|
37190
|
+
*/
|
|
37191
|
+
export const openstackHypervisorsAllocationCandidatesCount = (options) => {
|
|
37192
|
+
return (options.client ?? _heyApiClient).head({
|
|
37193
|
+
security: [
|
|
37194
|
+
{
|
|
37195
|
+
name: 'Authorization',
|
|
37196
|
+
type: 'apiKey'
|
|
37197
|
+
},
|
|
37198
|
+
{
|
|
37199
|
+
scheme: 'bearer',
|
|
37200
|
+
type: 'http'
|
|
37201
|
+
},
|
|
37202
|
+
{
|
|
37203
|
+
scheme: 'bearer',
|
|
37204
|
+
type: 'http'
|
|
37205
|
+
}
|
|
37206
|
+
],
|
|
37207
|
+
url: '/api/openstack-hypervisors/allocation_candidates/',
|
|
37208
|
+
...options
|
|
37209
|
+
});
|
|
37210
|
+
};
|
|
37100
37211
|
/**
|
|
37101
37212
|
* Get hypervisor summary statistics
|
|
37102
37213
|
* Return aggregated vCPU, RAM and disk totals across all hypervisors matching the current filter (e.g. settings_uuid).
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -549,6 +549,20 @@ export type Allocation = {
|
|
|
549
549
|
readonly is_usage_based?: boolean | null;
|
|
550
550
|
readonly is_limit_based?: boolean | null;
|
|
551
551
|
};
|
|
552
|
+
export type AllocationCandidatesResponse = {
|
|
553
|
+
/**
|
|
554
|
+
* Total number of allocation candidates Placement returned.
|
|
555
|
+
*/
|
|
556
|
+
candidate_count: number;
|
|
557
|
+
/**
|
|
558
|
+
* Placement's per-provider summary: maps resource_provider_uuid → {resources: {CLASS: {used, capacity}, ...}, traits: [...]}.
|
|
559
|
+
*/
|
|
560
|
+
provider_summaries: {
|
|
561
|
+
[key: string]: {
|
|
562
|
+
[key: string]: unknown;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
};
|
|
552
566
|
export type AllocationRequest = {
|
|
553
567
|
name: string;
|
|
554
568
|
description?: string;
|
|
@@ -7695,6 +7709,27 @@ export type Hypervisor = {
|
|
|
7695
7709
|
*/
|
|
7696
7710
|
status?: string;
|
|
7697
7711
|
};
|
|
7712
|
+
export type HypervisorInventory = {
|
|
7713
|
+
readonly url: string;
|
|
7714
|
+
readonly uuid: string;
|
|
7715
|
+
readonly hypervisor: string;
|
|
7716
|
+
readonly hypervisor_uuid: string;
|
|
7717
|
+
readonly hypervisor_name: string;
|
|
7718
|
+
readonly settings: string;
|
|
7719
|
+
readonly settings_uuid: string;
|
|
7720
|
+
/**
|
|
7721
|
+
* Placement resource class, e.g. VCPU, MEMORY_MB, DISK_GB, VGPU, PCI_DEVICE, NUMA_CORE, CUSTOM_*.
|
|
7722
|
+
*/
|
|
7723
|
+
resource_class: string;
|
|
7724
|
+
total?: number;
|
|
7725
|
+
reserved?: number;
|
|
7726
|
+
allocation_ratio?: number;
|
|
7727
|
+
used?: number;
|
|
7728
|
+
/**
|
|
7729
|
+
* Capacity the Nova scheduler treats as available.
|
|
7730
|
+
*/
|
|
7731
|
+
readonly effective_total: number;
|
|
7732
|
+
};
|
|
7698
7733
|
export type HypervisorSummary = {
|
|
7699
7734
|
total_vcpus: number;
|
|
7700
7735
|
used_vcpus: number;
|
|
@@ -64012,6 +64047,64 @@ export type OpenstackHealthMonitorsPullResponses = {
|
|
|
64012
64047
|
*/
|
|
64013
64048
|
202: unknown;
|
|
64014
64049
|
};
|
|
64050
|
+
export type OpenstackHypervisorInventoriesListData = {
|
|
64051
|
+
body?: never;
|
|
64052
|
+
path?: never;
|
|
64053
|
+
query?: {
|
|
64054
|
+
hypervisor_uuid?: string;
|
|
64055
|
+
/**
|
|
64056
|
+
* A page number within the paginated result set.
|
|
64057
|
+
*/
|
|
64058
|
+
page?: number;
|
|
64059
|
+
/**
|
|
64060
|
+
* Number of results to return per page.
|
|
64061
|
+
*/
|
|
64062
|
+
page_size?: number;
|
|
64063
|
+
resource_class?: string;
|
|
64064
|
+
settings_uuid?: string;
|
|
64065
|
+
};
|
|
64066
|
+
url: '/api/openstack-hypervisor-inventories/';
|
|
64067
|
+
};
|
|
64068
|
+
export type OpenstackHypervisorInventoriesListResponses = {
|
|
64069
|
+
200: Array<HypervisorInventory>;
|
|
64070
|
+
};
|
|
64071
|
+
export type OpenstackHypervisorInventoriesListResponse = OpenstackHypervisorInventoriesListResponses[keyof OpenstackHypervisorInventoriesListResponses];
|
|
64072
|
+
export type OpenstackHypervisorInventoriesCountData = {
|
|
64073
|
+
body?: never;
|
|
64074
|
+
path?: never;
|
|
64075
|
+
query?: {
|
|
64076
|
+
hypervisor_uuid?: string;
|
|
64077
|
+
/**
|
|
64078
|
+
* A page number within the paginated result set.
|
|
64079
|
+
*/
|
|
64080
|
+
page?: number;
|
|
64081
|
+
/**
|
|
64082
|
+
* Number of results to return per page.
|
|
64083
|
+
*/
|
|
64084
|
+
page_size?: number;
|
|
64085
|
+
resource_class?: string;
|
|
64086
|
+
settings_uuid?: string;
|
|
64087
|
+
};
|
|
64088
|
+
url: '/api/openstack-hypervisor-inventories/';
|
|
64089
|
+
};
|
|
64090
|
+
export type OpenstackHypervisorInventoriesCountResponses = {
|
|
64091
|
+
/**
|
|
64092
|
+
* No response body
|
|
64093
|
+
*/
|
|
64094
|
+
200: unknown;
|
|
64095
|
+
};
|
|
64096
|
+
export type OpenstackHypervisorInventoriesRetrieveData = {
|
|
64097
|
+
body?: never;
|
|
64098
|
+
path: {
|
|
64099
|
+
uuid: string;
|
|
64100
|
+
};
|
|
64101
|
+
query?: never;
|
|
64102
|
+
url: '/api/openstack-hypervisor-inventories/{uuid}/';
|
|
64103
|
+
};
|
|
64104
|
+
export type OpenstackHypervisorInventoriesRetrieveResponses = {
|
|
64105
|
+
200: HypervisorInventory;
|
|
64106
|
+
};
|
|
64107
|
+
export type OpenstackHypervisorInventoriesRetrieveResponse = OpenstackHypervisorInventoriesRetrieveResponses[keyof OpenstackHypervisorInventoriesRetrieveResponses];
|
|
64015
64108
|
export type OpenstackHypervisorsListData = {
|
|
64016
64109
|
body?: never;
|
|
64017
64110
|
path?: never;
|
|
@@ -64102,6 +64195,56 @@ export type OpenstackHypervisorsRetrieveResponses = {
|
|
|
64102
64195
|
200: Hypervisor;
|
|
64103
64196
|
};
|
|
64104
64197
|
export type OpenstackHypervisorsRetrieveResponse = OpenstackHypervisorsRetrieveResponses[keyof OpenstackHypervisorsRetrieveResponses];
|
|
64198
|
+
export type OpenstackHypervisorsAllocationCandidatesRetrieveData = {
|
|
64199
|
+
body?: never;
|
|
64200
|
+
path?: never;
|
|
64201
|
+
query: {
|
|
64202
|
+
/**
|
|
64203
|
+
* Cap on returned candidates (default 10).
|
|
64204
|
+
*/
|
|
64205
|
+
limit?: number;
|
|
64206
|
+
/**
|
|
64207
|
+
* e.g. HW_CPU_X86_AVX2,STORAGE_DISK_SSD
|
|
64208
|
+
*/
|
|
64209
|
+
required?: string;
|
|
64210
|
+
/**
|
|
64211
|
+
* e.g. VCPU:4,MEMORY_MB:8192,DISK_GB:10
|
|
64212
|
+
*/
|
|
64213
|
+
resources: string;
|
|
64214
|
+
settings_uuid: string;
|
|
64215
|
+
};
|
|
64216
|
+
url: '/api/openstack-hypervisors/allocation_candidates/';
|
|
64217
|
+
};
|
|
64218
|
+
export type OpenstackHypervisorsAllocationCandidatesRetrieveResponses = {
|
|
64219
|
+
200: AllocationCandidatesResponse;
|
|
64220
|
+
};
|
|
64221
|
+
export type OpenstackHypervisorsAllocationCandidatesRetrieveResponse = OpenstackHypervisorsAllocationCandidatesRetrieveResponses[keyof OpenstackHypervisorsAllocationCandidatesRetrieveResponses];
|
|
64222
|
+
export type OpenstackHypervisorsAllocationCandidatesCountData = {
|
|
64223
|
+
body?: never;
|
|
64224
|
+
path?: never;
|
|
64225
|
+
query: {
|
|
64226
|
+
/**
|
|
64227
|
+
* Cap on returned candidates (default 10).
|
|
64228
|
+
*/
|
|
64229
|
+
limit?: number;
|
|
64230
|
+
/**
|
|
64231
|
+
* e.g. HW_CPU_X86_AVX2,STORAGE_DISK_SSD
|
|
64232
|
+
*/
|
|
64233
|
+
required?: string;
|
|
64234
|
+
/**
|
|
64235
|
+
* e.g. VCPU:4,MEMORY_MB:8192,DISK_GB:10
|
|
64236
|
+
*/
|
|
64237
|
+
resources: string;
|
|
64238
|
+
settings_uuid: string;
|
|
64239
|
+
};
|
|
64240
|
+
url: '/api/openstack-hypervisors/allocation_candidates/';
|
|
64241
|
+
};
|
|
64242
|
+
export type OpenstackHypervisorsAllocationCandidatesCountResponses = {
|
|
64243
|
+
/**
|
|
64244
|
+
* No response body
|
|
64245
|
+
*/
|
|
64246
|
+
200: unknown;
|
|
64247
|
+
};
|
|
64105
64248
|
export type OpenstackHypervisorsSummaryRetrieveData = {
|
|
64106
64249
|
body?: never;
|
|
64107
64250
|
path?: never;
|