waldur-js-client 8.0.8-dev.36 → 8.0.8-dev.38
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 +52 -1
- package/dist/sdk.gen.js +295 -0
- package/dist/types.gen.d.ts +327 -0
- package/package.json +1 -1
package/dist/sdk.gen.js
CHANGED
|
@@ -23946,6 +23946,62 @@ export const marketplaceProviderResourcesUpdate = (options) => {
|
|
|
23946
23946
|
}
|
|
23947
23947
|
});
|
|
23948
23948
|
};
|
|
23949
|
+
/**
|
|
23950
|
+
* Grant a role to a user
|
|
23951
|
+
* Assigns a specific role to a user within the current scope. An optional expiration time for the role can be set.
|
|
23952
|
+
*/
|
|
23953
|
+
export const marketplaceProviderResourcesAddUser = (options) => {
|
|
23954
|
+
return (options.client ?? _heyApiClient).post({
|
|
23955
|
+
security: [
|
|
23956
|
+
{
|
|
23957
|
+
name: 'Authorization',
|
|
23958
|
+
type: 'apiKey'
|
|
23959
|
+
},
|
|
23960
|
+
{
|
|
23961
|
+
scheme: 'bearer',
|
|
23962
|
+
type: 'http'
|
|
23963
|
+
},
|
|
23964
|
+
{
|
|
23965
|
+
scheme: 'bearer',
|
|
23966
|
+
type: 'http'
|
|
23967
|
+
}
|
|
23968
|
+
],
|
|
23969
|
+
url: '/api/marketplace-provider-resources/{uuid}/add_user/',
|
|
23970
|
+
...options,
|
|
23971
|
+
headers: {
|
|
23972
|
+
'Content-Type': 'application/json',
|
|
23973
|
+
...options.headers
|
|
23974
|
+
}
|
|
23975
|
+
});
|
|
23976
|
+
};
|
|
23977
|
+
/**
|
|
23978
|
+
* Revoke a role from a user
|
|
23979
|
+
* Removes a specific role from a user within the current scope. This effectively revokes their permissions associated with that role.
|
|
23980
|
+
*/
|
|
23981
|
+
export const marketplaceProviderResourcesDeleteUser = (options) => {
|
|
23982
|
+
return (options.client ?? _heyApiClient).post({
|
|
23983
|
+
security: [
|
|
23984
|
+
{
|
|
23985
|
+
name: 'Authorization',
|
|
23986
|
+
type: 'apiKey'
|
|
23987
|
+
},
|
|
23988
|
+
{
|
|
23989
|
+
scheme: 'bearer',
|
|
23990
|
+
type: 'http'
|
|
23991
|
+
},
|
|
23992
|
+
{
|
|
23993
|
+
scheme: 'bearer',
|
|
23994
|
+
type: 'http'
|
|
23995
|
+
}
|
|
23996
|
+
],
|
|
23997
|
+
url: '/api/marketplace-provider-resources/{uuid}/delete_user/',
|
|
23998
|
+
...options,
|
|
23999
|
+
headers: {
|
|
24000
|
+
'Content-Type': 'application/json',
|
|
24001
|
+
...options.headers
|
|
24002
|
+
}
|
|
24003
|
+
});
|
|
24004
|
+
};
|
|
23949
24005
|
/**
|
|
23950
24006
|
* Get resource details
|
|
23951
24007
|
* Returns the detailed representation of the backend resource associated with the marketplace resource. The format of the response depends on the resource type.
|
|
@@ -24045,6 +24101,30 @@ export const marketplaceProviderResourcesHistoryAtRetrieve = (options) => {
|
|
|
24045
24101
|
...options
|
|
24046
24102
|
});
|
|
24047
24103
|
};
|
|
24104
|
+
/**
|
|
24105
|
+
* List users and their roles in a scope
|
|
24106
|
+
* Retrieves a list of users who have a role within a specific scope (e.g., a project or an organization). The list can be filtered by user details or role.
|
|
24107
|
+
*/
|
|
24108
|
+
export const marketplaceProviderResourcesListUsersList = (options) => {
|
|
24109
|
+
return (options.client ?? _heyApiClient).get({
|
|
24110
|
+
security: [
|
|
24111
|
+
{
|
|
24112
|
+
name: 'Authorization',
|
|
24113
|
+
type: 'apiKey'
|
|
24114
|
+
},
|
|
24115
|
+
{
|
|
24116
|
+
scheme: 'bearer',
|
|
24117
|
+
type: 'http'
|
|
24118
|
+
},
|
|
24119
|
+
{
|
|
24120
|
+
scheme: 'bearer',
|
|
24121
|
+
type: 'http'
|
|
24122
|
+
}
|
|
24123
|
+
],
|
|
24124
|
+
url: '/api/marketplace-provider-resources/{uuid}/list_users/',
|
|
24125
|
+
...options
|
|
24126
|
+
});
|
|
24127
|
+
};
|
|
24048
24128
|
/**
|
|
24049
24129
|
* Move a resource to another project
|
|
24050
24130
|
* Moves a resource and its associated data to a different project. Requires staff permissions.
|
|
@@ -24763,6 +24843,34 @@ export const marketplaceProviderResourcesUpdateOptionsDirect = (options) => {
|
|
|
24763
24843
|
}
|
|
24764
24844
|
});
|
|
24765
24845
|
};
|
|
24846
|
+
/**
|
|
24847
|
+
* Update a user's role expiration
|
|
24848
|
+
* Updates the expiration time for a user's existing role in the current scope. This is useful for extending or shortening the duration of a permission. To make a role permanent, set expiration_time to null.
|
|
24849
|
+
*/
|
|
24850
|
+
export const marketplaceProviderResourcesUpdateUser = (options) => {
|
|
24851
|
+
return (options.client ?? _heyApiClient).post({
|
|
24852
|
+
security: [
|
|
24853
|
+
{
|
|
24854
|
+
name: 'Authorization',
|
|
24855
|
+
type: 'apiKey'
|
|
24856
|
+
},
|
|
24857
|
+
{
|
|
24858
|
+
scheme: 'bearer',
|
|
24859
|
+
type: 'http'
|
|
24860
|
+
},
|
|
24861
|
+
{
|
|
24862
|
+
scheme: 'bearer',
|
|
24863
|
+
type: 'http'
|
|
24864
|
+
}
|
|
24865
|
+
],
|
|
24866
|
+
url: '/api/marketplace-provider-resources/{uuid}/update_user/',
|
|
24867
|
+
...options,
|
|
24868
|
+
headers: {
|
|
24869
|
+
'Content-Type': 'application/json',
|
|
24870
|
+
...options.headers
|
|
24871
|
+
}
|
|
24872
|
+
});
|
|
24873
|
+
};
|
|
24766
24874
|
/**
|
|
24767
24875
|
* Check service provider signature
|
|
24768
24876
|
*
|
|
@@ -37034,6 +37142,69 @@ export const openstackHealthMonitorsPull = (options) => {
|
|
|
37034
37142
|
...options
|
|
37035
37143
|
});
|
|
37036
37144
|
};
|
|
37145
|
+
export const openstackHypervisorInventoriesList = (options) => {
|
|
37146
|
+
return (options?.client ?? _heyApiClient).get({
|
|
37147
|
+
security: [
|
|
37148
|
+
{
|
|
37149
|
+
name: 'Authorization',
|
|
37150
|
+
type: 'apiKey'
|
|
37151
|
+
},
|
|
37152
|
+
{
|
|
37153
|
+
scheme: 'bearer',
|
|
37154
|
+
type: 'http'
|
|
37155
|
+
},
|
|
37156
|
+
{
|
|
37157
|
+
scheme: 'bearer',
|
|
37158
|
+
type: 'http'
|
|
37159
|
+
}
|
|
37160
|
+
],
|
|
37161
|
+
url: '/api/openstack-hypervisor-inventories/',
|
|
37162
|
+
...options
|
|
37163
|
+
});
|
|
37164
|
+
};
|
|
37165
|
+
/**
|
|
37166
|
+
* Get number of items in the collection matching the request parameters.
|
|
37167
|
+
*/
|
|
37168
|
+
export const openstackHypervisorInventoriesCount = (options) => {
|
|
37169
|
+
return (options?.client ?? _heyApiClient).head({
|
|
37170
|
+
security: [
|
|
37171
|
+
{
|
|
37172
|
+
name: 'Authorization',
|
|
37173
|
+
type: 'apiKey'
|
|
37174
|
+
},
|
|
37175
|
+
{
|
|
37176
|
+
scheme: 'bearer',
|
|
37177
|
+
type: 'http'
|
|
37178
|
+
},
|
|
37179
|
+
{
|
|
37180
|
+
scheme: 'bearer',
|
|
37181
|
+
type: 'http'
|
|
37182
|
+
}
|
|
37183
|
+
],
|
|
37184
|
+
url: '/api/openstack-hypervisor-inventories/',
|
|
37185
|
+
...options
|
|
37186
|
+
});
|
|
37187
|
+
};
|
|
37188
|
+
export const openstackHypervisorInventoriesRetrieve = (options) => {
|
|
37189
|
+
return (options.client ?? _heyApiClient).get({
|
|
37190
|
+
security: [
|
|
37191
|
+
{
|
|
37192
|
+
name: 'Authorization',
|
|
37193
|
+
type: 'apiKey'
|
|
37194
|
+
},
|
|
37195
|
+
{
|
|
37196
|
+
scheme: 'bearer',
|
|
37197
|
+
type: 'http'
|
|
37198
|
+
},
|
|
37199
|
+
{
|
|
37200
|
+
scheme: 'bearer',
|
|
37201
|
+
type: 'http'
|
|
37202
|
+
}
|
|
37203
|
+
],
|
|
37204
|
+
url: '/api/openstack-hypervisor-inventories/{uuid}/',
|
|
37205
|
+
...options
|
|
37206
|
+
});
|
|
37207
|
+
};
|
|
37037
37208
|
export const openstackHypervisorsList = (options) => {
|
|
37038
37209
|
return (options?.client ?? _heyApiClient).get({
|
|
37039
37210
|
security: [
|
|
@@ -37097,6 +37268,54 @@ export const openstackHypervisorsRetrieve = (options) => {
|
|
|
37097
37268
|
...options
|
|
37098
37269
|
});
|
|
37099
37270
|
};
|
|
37271
|
+
/**
|
|
37272
|
+
* Pre-flight allocation candidates
|
|
37273
|
+
* 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.
|
|
37274
|
+
*/
|
|
37275
|
+
export const openstackHypervisorsAllocationCandidatesRetrieve = (options) => {
|
|
37276
|
+
return (options.client ?? _heyApiClient).get({
|
|
37277
|
+
security: [
|
|
37278
|
+
{
|
|
37279
|
+
name: 'Authorization',
|
|
37280
|
+
type: 'apiKey'
|
|
37281
|
+
},
|
|
37282
|
+
{
|
|
37283
|
+
scheme: 'bearer',
|
|
37284
|
+
type: 'http'
|
|
37285
|
+
},
|
|
37286
|
+
{
|
|
37287
|
+
scheme: 'bearer',
|
|
37288
|
+
type: 'http'
|
|
37289
|
+
}
|
|
37290
|
+
],
|
|
37291
|
+
url: '/api/openstack-hypervisors/allocation_candidates/',
|
|
37292
|
+
...options
|
|
37293
|
+
});
|
|
37294
|
+
};
|
|
37295
|
+
/**
|
|
37296
|
+
* Pre-flight allocation candidates
|
|
37297
|
+
* Get number of items in the collection matching the request parameters.
|
|
37298
|
+
*/
|
|
37299
|
+
export const openstackHypervisorsAllocationCandidatesCount = (options) => {
|
|
37300
|
+
return (options.client ?? _heyApiClient).head({
|
|
37301
|
+
security: [
|
|
37302
|
+
{
|
|
37303
|
+
name: 'Authorization',
|
|
37304
|
+
type: 'apiKey'
|
|
37305
|
+
},
|
|
37306
|
+
{
|
|
37307
|
+
scheme: 'bearer',
|
|
37308
|
+
type: 'http'
|
|
37309
|
+
},
|
|
37310
|
+
{
|
|
37311
|
+
scheme: 'bearer',
|
|
37312
|
+
type: 'http'
|
|
37313
|
+
}
|
|
37314
|
+
],
|
|
37315
|
+
url: '/api/openstack-hypervisors/allocation_candidates/',
|
|
37316
|
+
...options
|
|
37317
|
+
});
|
|
37318
|
+
};
|
|
37100
37319
|
/**
|
|
37101
37320
|
* Get hypervisor summary statistics
|
|
37102
37321
|
* Return aggregated vCPU, RAM and disk totals across all hypervisors matching the current filter (e.g. settings_uuid).
|
|
@@ -37593,6 +37812,30 @@ export const openstackInstancesFloatingIpsList = (options) => {
|
|
|
37593
37812
|
...options
|
|
37594
37813
|
});
|
|
37595
37814
|
};
|
|
37815
|
+
/**
|
|
37816
|
+
* Get Placement allocations for the instance
|
|
37817
|
+
* Return what the OpenStack Placement service records as currently allocated to this instance, broken down by resource provider. Useful for diagnostics — especially for non-classic resources (VGPU, PCI_DEVICE, custom classes) that the flavor alone does not describe. Returns an empty list when Placement has no record (e.g. transient state right after create, or pre-Placement clouds).
|
|
37818
|
+
*/
|
|
37819
|
+
export const openstackInstancesPlacementAllocationsList = (options) => {
|
|
37820
|
+
return (options.client ?? _heyApiClient).get({
|
|
37821
|
+
security: [
|
|
37822
|
+
{
|
|
37823
|
+
name: 'Authorization',
|
|
37824
|
+
type: 'apiKey'
|
|
37825
|
+
},
|
|
37826
|
+
{
|
|
37827
|
+
scheme: 'bearer',
|
|
37828
|
+
type: 'http'
|
|
37829
|
+
},
|
|
37830
|
+
{
|
|
37831
|
+
scheme: 'bearer',
|
|
37832
|
+
type: 'http'
|
|
37833
|
+
}
|
|
37834
|
+
],
|
|
37835
|
+
url: '/api/openstack-instances/{uuid}/placement_allocations/',
|
|
37836
|
+
...options
|
|
37837
|
+
});
|
|
37838
|
+
};
|
|
37596
37839
|
/**
|
|
37597
37840
|
* List instance ports
|
|
37598
37841
|
* Get a list of instance ports
|
|
@@ -37641,6 +37884,34 @@ export const openstackInstancesPull = (options) => {
|
|
|
37641
37884
|
...options
|
|
37642
37885
|
});
|
|
37643
37886
|
};
|
|
37887
|
+
/**
|
|
37888
|
+
* Rescue instance
|
|
37889
|
+
* Boot the instance from a separate rescue image while keeping the original disk attached. Volume-backed instances require an explicit rescue_image with hw_rescue_device or hw_rescue_bus set.
|
|
37890
|
+
*/
|
|
37891
|
+
export const openstackInstancesRescue = (options) => {
|
|
37892
|
+
return (options.client ?? _heyApiClient).post({
|
|
37893
|
+
security: [
|
|
37894
|
+
{
|
|
37895
|
+
name: 'Authorization',
|
|
37896
|
+
type: 'apiKey'
|
|
37897
|
+
},
|
|
37898
|
+
{
|
|
37899
|
+
scheme: 'bearer',
|
|
37900
|
+
type: 'http'
|
|
37901
|
+
},
|
|
37902
|
+
{
|
|
37903
|
+
scheme: 'bearer',
|
|
37904
|
+
type: 'http'
|
|
37905
|
+
}
|
|
37906
|
+
],
|
|
37907
|
+
url: '/api/openstack-instances/{uuid}/rescue/',
|
|
37908
|
+
...options,
|
|
37909
|
+
headers: {
|
|
37910
|
+
'Content-Type': 'application/json',
|
|
37911
|
+
...options.headers
|
|
37912
|
+
}
|
|
37913
|
+
});
|
|
37914
|
+
};
|
|
37644
37915
|
/**
|
|
37645
37916
|
* Restart instance
|
|
37646
37917
|
* Restart the instance
|
|
@@ -37791,6 +38062,30 @@ export const openstackInstancesUnlink = (options) => {
|
|
|
37791
38062
|
...options
|
|
37792
38063
|
});
|
|
37793
38064
|
};
|
|
38065
|
+
/**
|
|
38066
|
+
* Unrescue instance
|
|
38067
|
+
* Restore the instance from rescue mode.
|
|
38068
|
+
*/
|
|
38069
|
+
export const openstackInstancesUnrescue = (options) => {
|
|
38070
|
+
return (options.client ?? _heyApiClient).post({
|
|
38071
|
+
security: [
|
|
38072
|
+
{
|
|
38073
|
+
name: 'Authorization',
|
|
38074
|
+
type: 'apiKey'
|
|
38075
|
+
},
|
|
38076
|
+
{
|
|
38077
|
+
scheme: 'bearer',
|
|
38078
|
+
type: 'http'
|
|
38079
|
+
},
|
|
38080
|
+
{
|
|
38081
|
+
scheme: 'bearer',
|
|
38082
|
+
type: 'http'
|
|
38083
|
+
}
|
|
38084
|
+
],
|
|
38085
|
+
url: '/api/openstack-instances/{uuid}/unrescue/',
|
|
38086
|
+
...options
|
|
38087
|
+
});
|
|
38088
|
+
};
|
|
37794
38089
|
/**
|
|
37795
38090
|
* Update instance allowed address pairs
|
|
37796
38091
|
* Update allowed address pairs of the instance
|