waldur-js-client 8.0.8-dev.37 → 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.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
  *
@@ -37704,6 +37812,30 @@ export const openstackInstancesFloatingIpsList = (options) => {
37704
37812
  ...options
37705
37813
  });
37706
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
+ };
37707
37839
  /**
37708
37840
  * List instance ports
37709
37841
  * Get a list of instance ports
@@ -37752,6 +37884,34 @@ export const openstackInstancesPull = (options) => {
37752
37884
  ...options
37753
37885
  });
37754
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
+ };
37755
37915
  /**
37756
37916
  * Restart instance
37757
37917
  * Restart the instance
@@ -37902,6 +38062,30 @@ export const openstackInstancesUnlink = (options) => {
37902
38062
  ...options
37903
38063
  });
37904
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
+ };
37905
38089
  /**
37906
38090
  * Update instance allowed address pairs
37907
38091
  * Update allowed address pairs of the instance
@@ -8078,6 +8078,19 @@ export type InstanceFlavorChangeRequest = {
8078
8078
  */
8079
8079
  flavor: string;
8080
8080
  };
8081
+ export type InstancePlacementAllocation = {
8082
+ resource_provider_uuid: string;
8083
+ resource_provider_name: string;
8084
+ resources: {
8085
+ [key: string]: number;
8086
+ };
8087
+ };
8088
+ export type InstanceRescueRequest = {
8089
+ /**
8090
+ * Optional rescue image. Required for volume-backed instances; must be a Glance image with hw_rescue_device or hw_rescue_bus set (a 'stable device rescue' image).
8091
+ */
8092
+ rescue_image?: string | null;
8093
+ };
8081
8094
  export type IntegrationStatus = {
8082
8095
  agent_type?: AgentTypeEnum;
8083
8096
  readonly status?: string;
@@ -13338,6 +13351,15 @@ export type OpenStackImage = {
13338
13351
  settings: string;
13339
13352
  backend_id: string;
13340
13353
  backend_created_at?: string | null;
13354
+ /**
13355
+ * Glance hw_rescue_device property (cdrom/disk/floppy).
13356
+ */
13357
+ hw_rescue_device?: string;
13358
+ /**
13359
+ * Glance hw_rescue_bus property (scsi/virtio/ide/usb).
13360
+ */
13361
+ hw_rescue_bus?: string;
13362
+ readonly is_rescue_image: boolean;
13341
13363
  };
13342
13364
  export type OpenStackInstance = {
13343
13365
  readonly url?: string;
@@ -50951,6 +50973,38 @@ export type MarketplaceProviderResourcesUpdateResponses = {
50951
50973
  200: ResourceUpdate;
50952
50974
  };
50953
50975
  export type MarketplaceProviderResourcesUpdateResponse = MarketplaceProviderResourcesUpdateResponses[keyof MarketplaceProviderResourcesUpdateResponses];
50976
+ export type MarketplaceProviderResourcesAddUserData = {
50977
+ body: UserRoleCreateRequest;
50978
+ path: {
50979
+ uuid: string;
50980
+ };
50981
+ query?: never;
50982
+ url: '/api/marketplace-provider-resources/{uuid}/add_user/';
50983
+ };
50984
+ export type MarketplaceProviderResourcesAddUserErrors = {
50985
+ /**
50986
+ * Validation error, for example when trying to add a user to a terminated project.
50987
+ */
50988
+ 400: unknown;
50989
+ };
50990
+ export type MarketplaceProviderResourcesAddUserResponses = {
50991
+ 201: UserRoleExpirationTime;
50992
+ };
50993
+ export type MarketplaceProviderResourcesAddUserResponse = MarketplaceProviderResourcesAddUserResponses[keyof MarketplaceProviderResourcesAddUserResponses];
50994
+ export type MarketplaceProviderResourcesDeleteUserData = {
50995
+ body: UserRoleDeleteRequest;
50996
+ path: {
50997
+ uuid: string;
50998
+ };
50999
+ query?: never;
51000
+ url: '/api/marketplace-provider-resources/{uuid}/delete_user/';
51001
+ };
51002
+ export type MarketplaceProviderResourcesDeleteUserResponses = {
51003
+ /**
51004
+ * Role revoked successfully.
51005
+ */
51006
+ 200: unknown;
51007
+ };
50954
51008
  export type MarketplaceProviderResourcesDetailsRetrieveData = {
50955
51009
  body?: never;
50956
51010
  path: {
@@ -51208,6 +51262,67 @@ export type MarketplaceProviderResourcesHistoryAtRetrieveResponses = {
51208
51262
  200: VersionHistory;
51209
51263
  };
51210
51264
  export type MarketplaceProviderResourcesHistoryAtRetrieveResponse = MarketplaceProviderResourcesHistoryAtRetrieveResponses[keyof MarketplaceProviderResourcesHistoryAtRetrieveResponses];
51265
+ export type MarketplaceProviderResourcesListUsersListData = {
51266
+ body?: never;
51267
+ path: {
51268
+ uuid: string;
51269
+ };
51270
+ query?: {
51271
+ /**
51272
+ * Fields to include in response
51273
+ */
51274
+ field?: Array<UserRoleDetailsFieldEnum>;
51275
+ /**
51276
+ * User full name
51277
+ */
51278
+ full_name?: string;
51279
+ /**
51280
+ * User native name
51281
+ */
51282
+ native_name?: string;
51283
+ /**
51284
+ * Ordering fields
51285
+ */
51286
+ o?: Array<UserRoleDetailsOEnum>;
51287
+ /**
51288
+ * A page number within the paginated result set.
51289
+ */
51290
+ page?: number;
51291
+ /**
51292
+ * Number of results to return per page.
51293
+ */
51294
+ page_size?: number;
51295
+ /**
51296
+ * Role UUID or name
51297
+ */
51298
+ role?: string;
51299
+ /**
51300
+ * Search string for user
51301
+ */
51302
+ search_string?: string;
51303
+ /**
51304
+ * User UUID
51305
+ */
51306
+ user?: string;
51307
+ /**
51308
+ * User slug
51309
+ */
51310
+ user_slug?: string;
51311
+ /**
51312
+ * User URL
51313
+ */
51314
+ user_url?: string;
51315
+ /**
51316
+ * User username
51317
+ */
51318
+ username?: string;
51319
+ };
51320
+ url: '/api/marketplace-provider-resources/{uuid}/list_users/';
51321
+ };
51322
+ export type MarketplaceProviderResourcesListUsersListResponses = {
51323
+ 200: Array<UserRoleDetails>;
51324
+ };
51325
+ export type MarketplaceProviderResourcesListUsersListResponse = MarketplaceProviderResourcesListUsersListResponses[keyof MarketplaceProviderResourcesListUsersListResponses];
51211
51326
  export type MarketplaceProviderResourcesMoveResourceData = {
51212
51327
  body: MoveResourceRequest;
51213
51328
  path: {
@@ -51575,6 +51690,18 @@ export type MarketplaceProviderResourcesUpdateOptionsDirectResponses = {
51575
51690
  200: ResourceResponseStatus;
51576
51691
  };
51577
51692
  export type MarketplaceProviderResourcesUpdateOptionsDirectResponse = MarketplaceProviderResourcesUpdateOptionsDirectResponses[keyof MarketplaceProviderResourcesUpdateOptionsDirectResponses];
51693
+ export type MarketplaceProviderResourcesUpdateUserData = {
51694
+ body: UserRoleUpdateRequest;
51695
+ path: {
51696
+ uuid: string;
51697
+ };
51698
+ query?: never;
51699
+ url: '/api/marketplace-provider-resources/{uuid}/update_user/';
51700
+ };
51701
+ export type MarketplaceProviderResourcesUpdateUserResponses = {
51702
+ 200: UserRoleExpirationTime;
51703
+ };
51704
+ export type MarketplaceProviderResourcesUpdateUserResponse = MarketplaceProviderResourcesUpdateUserResponses[keyof MarketplaceProviderResourcesUpdateUserResponses];
51578
51705
  export type MarketplacePublicApiCheckSignatureData = {
51579
51706
  body: ServiceProviderSignatureRequest;
51580
51707
  path?: never;
@@ -64281,6 +64408,10 @@ export type OpenstackImagesListData = {
64281
64408
  body?: never;
64282
64409
  path?: never;
64283
64410
  query?: {
64411
+ /**
64412
+ * Filter to images usable as Nova rescue images.
64413
+ */
64414
+ is_rescue_image?: boolean;
64284
64415
  /**
64285
64416
  * Name
64286
64417
  */
@@ -64332,6 +64463,10 @@ export type OpenstackImagesCountData = {
64332
64463
  body?: never;
64333
64464
  path?: never;
64334
64465
  query?: {
64466
+ /**
64467
+ * Filter to images usable as Nova rescue images.
64468
+ */
64469
+ is_rescue_image?: boolean;
64335
64470
  /**
64336
64471
  * Name
64337
64472
  */
@@ -64857,6 +64992,27 @@ export type OpenstackInstancesFloatingIpsListResponses = {
64857
64992
  200: Array<OpenStackNestedFloatingIp>;
64858
64993
  };
64859
64994
  export type OpenstackInstancesFloatingIpsListResponse = OpenstackInstancesFloatingIpsListResponses[keyof OpenstackInstancesFloatingIpsListResponses];
64995
+ export type OpenstackInstancesPlacementAllocationsListData = {
64996
+ body?: never;
64997
+ path: {
64998
+ uuid: string;
64999
+ };
65000
+ query?: {
65001
+ /**
65002
+ * A page number within the paginated result set.
65003
+ */
65004
+ page?: number;
65005
+ /**
65006
+ * Number of results to return per page.
65007
+ */
65008
+ page_size?: number;
65009
+ };
65010
+ url: '/api/openstack-instances/{uuid}/placement_allocations/';
65011
+ };
65012
+ export type OpenstackInstancesPlacementAllocationsListResponses = {
65013
+ 200: Array<InstancePlacementAllocation>;
65014
+ };
65015
+ export type OpenstackInstancesPlacementAllocationsListResponse = OpenstackInstancesPlacementAllocationsListResponses[keyof OpenstackInstancesPlacementAllocationsListResponses];
64860
65016
  export type OpenstackInstancesPortsListData = {
64861
65017
  body?: never;
64862
65018
  path: {
@@ -64894,6 +65050,20 @@ export type OpenstackInstancesPullResponses = {
64894
65050
  202: PullResponse;
64895
65051
  };
64896
65052
  export type OpenstackInstancesPullResponse = OpenstackInstancesPullResponses[keyof OpenstackInstancesPullResponses];
65053
+ export type OpenstackInstancesRescueData = {
65054
+ body?: InstanceRescueRequest;
65055
+ path: {
65056
+ uuid: string;
65057
+ };
65058
+ query?: never;
65059
+ url: '/api/openstack-instances/{uuid}/rescue/';
65060
+ };
65061
+ export type OpenstackInstancesRescueResponses = {
65062
+ /**
65063
+ * No response body
65064
+ */
65065
+ 200: unknown;
65066
+ };
64897
65067
  export type OpenstackInstancesRestartData = {
64898
65068
  body?: never;
64899
65069
  path: {
@@ -64975,6 +65145,20 @@ export type OpenstackInstancesUnlinkResponses = {
64975
65145
  204: void;
64976
65146
  };
64977
65147
  export type OpenstackInstancesUnlinkResponse = OpenstackInstancesUnlinkResponses[keyof OpenstackInstancesUnlinkResponses];
65148
+ export type OpenstackInstancesUnrescueData = {
65149
+ body?: never;
65150
+ path: {
65151
+ uuid: string;
65152
+ };
65153
+ query?: never;
65154
+ url: '/api/openstack-instances/{uuid}/unrescue/';
65155
+ };
65156
+ export type OpenstackInstancesUnrescueResponses = {
65157
+ /**
65158
+ * No response body
65159
+ */
65160
+ 200: unknown;
65161
+ };
64978
65162
  export type OpenstackInstancesUpdateAllowedAddressPairsData = {
64979
65163
  body: OpenStackInstanceAllowedAddressPairsUpdateRequest;
64980
65164
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.8-dev.37",
3
+ "version": "8.0.8-dev.38",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",