waldur-js-client 8.0.8-dev.10 → 8.0.8-dev.12

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
@@ -36235,6 +36235,117 @@ export const openstackHealthMonitorsPull = (options) => {
36235
36235
  ...options
36236
36236
  });
36237
36237
  };
36238
+ export const openstackHypervisorsList = (options) => {
36239
+ return (options?.client ?? _heyApiClient).get({
36240
+ security: [
36241
+ {
36242
+ name: 'Authorization',
36243
+ type: 'apiKey'
36244
+ },
36245
+ {
36246
+ scheme: 'bearer',
36247
+ type: 'http'
36248
+ },
36249
+ {
36250
+ scheme: 'bearer',
36251
+ type: 'http'
36252
+ }
36253
+ ],
36254
+ url: '/api/openstack-hypervisors/',
36255
+ ...options
36256
+ });
36257
+ };
36258
+ /**
36259
+ * Get number of items in the collection matching the request parameters.
36260
+ */
36261
+ export const openstackHypervisorsCount = (options) => {
36262
+ return (options?.client ?? _heyApiClient).head({
36263
+ security: [
36264
+ {
36265
+ name: 'Authorization',
36266
+ type: 'apiKey'
36267
+ },
36268
+ {
36269
+ scheme: 'bearer',
36270
+ type: 'http'
36271
+ },
36272
+ {
36273
+ scheme: 'bearer',
36274
+ type: 'http'
36275
+ }
36276
+ ],
36277
+ url: '/api/openstack-hypervisors/',
36278
+ ...options
36279
+ });
36280
+ };
36281
+ export const openstackHypervisorsRetrieve = (options) => {
36282
+ return (options.client ?? _heyApiClient).get({
36283
+ security: [
36284
+ {
36285
+ name: 'Authorization',
36286
+ type: 'apiKey'
36287
+ },
36288
+ {
36289
+ scheme: 'bearer',
36290
+ type: 'http'
36291
+ },
36292
+ {
36293
+ scheme: 'bearer',
36294
+ type: 'http'
36295
+ }
36296
+ ],
36297
+ url: '/api/openstack-hypervisors/{uuid}/',
36298
+ ...options
36299
+ });
36300
+ };
36301
+ /**
36302
+ * Get hypervisor summary statistics
36303
+ * Return aggregated vCPU, RAM and disk totals across all hypervisors matching the current filter (e.g. settings_uuid).
36304
+ */
36305
+ export const openstackHypervisorsSummaryRetrieve = (options) => {
36306
+ return (options?.client ?? _heyApiClient).get({
36307
+ security: [
36308
+ {
36309
+ name: 'Authorization',
36310
+ type: 'apiKey'
36311
+ },
36312
+ {
36313
+ scheme: 'bearer',
36314
+ type: 'http'
36315
+ },
36316
+ {
36317
+ scheme: 'bearer',
36318
+ type: 'http'
36319
+ }
36320
+ ],
36321
+ url: '/api/openstack-hypervisors/summary/',
36322
+ ...options
36323
+ });
36324
+ };
36325
+ /**
36326
+ * Get hypervisor summary statistics
36327
+ * Get number of items in the collection matching the request parameters.
36328
+ */
36329
+ export const openstackHypervisorsSummaryCount = (options) => {
36330
+ return (options?.client ?? _heyApiClient).head({
36331
+ security: [
36332
+ {
36333
+ name: 'Authorization',
36334
+ type: 'apiKey'
36335
+ },
36336
+ {
36337
+ scheme: 'bearer',
36338
+ type: 'http'
36339
+ },
36340
+ {
36341
+ scheme: 'bearer',
36342
+ type: 'http'
36343
+ }
36344
+ ],
36345
+ url: '/api/openstack-hypervisors/summary/',
36346
+ ...options
36347
+ });
36348
+ };
36238
36349
  /**
36239
36350
  * List images
36240
36351
  * Get a list of available VM instance images.
@@ -7514,6 +7514,62 @@ export type GroupInvitationUpdateRequest = {
7514
7514
  export type GrowthPeriodEnum = 'weekly' | 'monthly';
7515
7515
  export type GuestOsEnum = 'DOS' | 'WIN_31' | 'WIN_95' | 'WIN_98' | 'WIN_ME' | 'WIN_NT' | 'WIN_2000_PRO' | 'WIN_2000_SERV' | 'WIN_2000_ADV_SERV' | 'WIN_XP_HOME' | 'WIN_XP_PRO' | 'WIN_XP_PRO_64' | 'WIN_NET_WEB' | 'WIN_NET_STANDARD' | 'WIN_NET_ENTERPRISE' | 'WIN_NET_DATACENTER' | 'WIN_NET_BUSINESS' | 'WIN_NET_STANDARD_64' | 'WIN_NET_ENTERPRISE_64' | 'WIN_LONGHORN' | 'WIN_LONGHORN_64' | 'WIN_NET_DATACENTER_64' | 'WIN_VISTA' | 'WIN_VISTA_64' | 'WINDOWS_7' | 'WINDOWS_7_64' | 'WINDOWS_7_SERVER_64' | 'WINDOWS_8' | 'WINDOWS_8_64' | 'WINDOWS_8_SERVER_64' | 'WINDOWS_9' | 'WINDOWS_9_64' | 'WINDOWS_9_SERVER_64' | 'WINDOWS_HYPERV' | 'FREEBSD' | 'FREEBSD_64' | 'REDHAT' | 'RHEL_2' | 'RHEL_3' | 'RHEL_3_64' | 'RHEL_4' | 'RHEL_4_64' | 'RHEL_5' | 'RHEL_5_64' | 'RHEL_6' | 'RHEL_6_64' | 'RHEL_7' | 'RHEL_7_64' | 'CENTOS' | 'CENTOS_64' | 'CENTOS_6' | 'CENTOS_6_64' | 'CENTOS_7' | 'CENTOS_7_64' | 'ORACLE_LINUX' | 'ORACLE_LINUX_64' | 'ORACLE_LINUX_6' | 'ORACLE_LINUX_6_64' | 'ORACLE_LINUX_7' | 'ORACLE_LINUX_7_64' | 'SUSE' | 'SUSE_64' | 'SLES' | 'SLES_64' | 'SLES_10' | 'SLES_10_64' | 'SLES_11' | 'SLES_11_64' | 'SLES_12' | 'SLES_12_64' | 'NLD_9' | 'OES' | 'SJDS' | 'MANDRAKE' | 'MANDRIVA' | 'MANDRIVA_64' | 'TURBO_LINUX' | 'TURBO_LINUX_64' | 'UBUNTU' | 'UBUNTU_64' | 'DEBIAN_4' | 'DEBIAN_4_64' | 'DEBIAN_5' | 'DEBIAN_5_64' | 'DEBIAN_6' | 'DEBIAN_6_64' | 'DEBIAN_7' | 'DEBIAN_7_64' | 'DEBIAN_8' | 'DEBIAN_8_64' | 'DEBIAN_9' | 'DEBIAN_9_64' | 'DEBIAN_10' | 'DEBIAN_10_64' | 'ASIANUX_3' | 'ASIANUX_3_64' | 'ASIANUX_4' | 'ASIANUX_4_64' | 'ASIANUX_5_64' | 'ASIANUX_7_64' | 'OPENSUSE' | 'OPENSUSE_64' | 'FEDORA' | 'FEDORA_64' | 'COREOS_64' | 'VMWARE_PHOTON_64' | 'OTHER_24X_LINUX' | 'OTHER_24X_LINUX_64' | 'OTHER_26X_LINUX' | 'OTHER_26X_LINUX_64' | 'OTHER_3X_LINUX' | 'OTHER_3X_LINUX_64' | 'OTHER_LINUX' | 'GENERIC_LINUX' | 'OTHER_LINUX_64' | 'SOLARIS_6' | 'SOLARIS_7' | 'SOLARIS_8' | 'SOLARIS_9' | 'SOLARIS_10' | 'SOLARIS_10_64' | 'SOLARIS_11_64' | 'OS2' | 'ECOMSTATION' | 'ECOMSTATION_2' | 'NETWARE_4' | 'NETWARE_5' | 'NETWARE_6' | 'OPENSERVER_5' | 'OPENSERVER_6' | 'UNIXWARE_7' | 'DARWIN' | 'DARWIN_64' | 'DARWIN_10' | 'DARWIN_10_64' | 'DARWIN_11' | 'DARWIN_11_64' | 'DARWIN_12_64' | 'DARWIN_13_64' | 'DARWIN_14_64' | 'DARWIN_15_64' | 'DARWIN_16_64' | 'VMKERNEL' | 'VMKERNEL_5' | 'VMKERNEL_6' | 'VMKERNEL_65' | 'OTHER' | 'OTHER_64';
7516
7516
  export type GuestPowerStateEnum = 'RUNNING' | 'SHUTTING_DOWN' | 'RESETTING' | 'STANDBY' | 'NOT_RUNNING' | 'UNAVAILABLE';
7517
+ export type Hypervisor = {
7518
+ readonly url: string;
7519
+ readonly uuid: string;
7520
+ name: string;
7521
+ settings: string;
7522
+ backend_id: string;
7523
+ /**
7524
+ * Hypervisor type, e.g. KVM, QEMU, VMware
7525
+ */
7526
+ hypervisor_type?: string;
7527
+ /**
7528
+ * Total vCPUs
7529
+ */
7530
+ vcpus?: number;
7531
+ /**
7532
+ * Used vCPUs
7533
+ */
7534
+ vcpus_used?: number;
7535
+ /**
7536
+ * Total RAM in MiB
7537
+ */
7538
+ memory_mb?: number;
7539
+ /**
7540
+ * Used RAM in MiB
7541
+ */
7542
+ memory_mb_used?: number;
7543
+ /**
7544
+ * Total disk in GiB
7545
+ */
7546
+ local_gb?: number;
7547
+ /**
7548
+ * Used disk in GiB
7549
+ */
7550
+ local_gb_used?: number;
7551
+ /**
7552
+ * Number of running VMs
7553
+ */
7554
+ running_vms?: number;
7555
+ /**
7556
+ * Hypervisor state, e.g. up or down
7557
+ */
7558
+ state?: string;
7559
+ /**
7560
+ * Hypervisor status, e.g. enabled or disabled
7561
+ */
7562
+ status?: string;
7563
+ };
7564
+ export type HypervisorSummary = {
7565
+ total_vcpus: number;
7566
+ used_vcpus: number;
7567
+ total_memory_mb: number;
7568
+ used_memory_mb: number;
7569
+ total_local_gb: number;
7570
+ used_local_gb: number;
7571
+ total_running_vms: number;
7572
+ };
7517
7573
  export type IpMapping = {
7518
7574
  /**
7519
7575
  * Floating IP
@@ -7557,6 +7613,7 @@ export type IdentityBridgeRemoveResult = {
7557
7613
  uuid: string;
7558
7614
  deactivated: boolean;
7559
7615
  };
7616
+ export type IdentityBridgeRequestGenderEnum = 'male' | 'female' | 'unknown';
7560
7617
  export type IdentityBridgeRequestRequest = {
7561
7618
  /**
7562
7619
  * CUID / username of the user to create or update.
@@ -7574,7 +7631,7 @@ export type IdentityBridgeRequestRequest = {
7574
7631
  civil_number?: string;
7575
7632
  phone_number?: string;
7576
7633
  identity_source?: string;
7577
- gender?: number | null;
7634
+ gender?: IdentityBridgeRequestGenderEnum | NullEnum | null;
7578
7635
  personal_title?: string;
7579
7636
  birth_date?: string | null;
7580
7637
  place_of_birth?: string;
@@ -21182,54 +21239,18 @@ export type ResourceLimitPeriod = {
21182
21239
  total?: string;
21183
21240
  };
21184
21241
  export type ResourceMissingUsage = {
21185
- /**
21186
- * UUID of the resource
21187
- */
21188
- uuid: string;
21189
- /**
21190
- * Name of the resource
21191
- */
21242
+ readonly uuid: string;
21192
21243
  name: string;
21193
- /**
21194
- * Current state of the resource
21195
- */
21196
- state: string;
21197
- /**
21198
- * Creation date of the resource
21199
- */
21200
- created: string;
21201
- /**
21202
- * Name of the offering
21203
- */
21204
- offering_name: string;
21205
- /**
21206
- * UUID of the offering
21207
- */
21208
- offering_uuid: string;
21209
- /**
21210
- * Name of the service provider
21211
- */
21212
- provider_name: string;
21213
- /**
21214
- * UUID of the service provider
21215
- */
21216
- provider_uuid: string;
21217
- /**
21218
- * Name of the customer organization
21219
- */
21220
- customer_name: string;
21221
- /**
21222
- * UUID of the customer organization
21223
- */
21224
- customer_uuid: string;
21225
- /**
21226
- * Name of the project
21227
- */
21228
- project_name: string;
21229
- /**
21230
- * UUID of the project
21231
- */
21232
- project_uuid: string;
21244
+ readonly state: string;
21245
+ readonly created: string;
21246
+ readonly offering_name: string;
21247
+ readonly offering_uuid: string;
21248
+ readonly provider_name: string;
21249
+ readonly provider_uuid: string;
21250
+ readonly customer_name: string;
21251
+ readonly customer_uuid: string;
21252
+ readonly project_name: string;
21253
+ readonly project_uuid: string;
21233
21254
  /**
21234
21255
  * Date of the last usage report
21235
21256
  */
@@ -21237,7 +21258,7 @@ export type ResourceMissingUsage = {
21237
21258
  /**
21238
21259
  * Number of days since last usage report
21239
21260
  */
21240
- days_since_last_report: number | null;
21261
+ readonly days_since_last_report: number | null;
21241
21262
  };
21242
21263
  export type ResourceOffering = {
21243
21264
  name: string;
@@ -62855,6 +62876,118 @@ export type OpenstackHealthMonitorsPullResponses = {
62855
62876
  */
62856
62877
  202: unknown;
62857
62878
  };
62879
+ export type OpenstackHypervisorsListData = {
62880
+ body?: never;
62881
+ path?: never;
62882
+ query?: {
62883
+ hypervisor_type?: string;
62884
+ /**
62885
+ * Name
62886
+ */
62887
+ name?: string;
62888
+ /**
62889
+ * Name (exact)
62890
+ */
62891
+ name_exact?: string;
62892
+ /**
62893
+ * A page number within the paginated result set.
62894
+ */
62895
+ page?: number;
62896
+ /**
62897
+ * Number of results to return per page.
62898
+ */
62899
+ page_size?: number;
62900
+ /**
62901
+ * Settings URL
62902
+ */
62903
+ settings?: string;
62904
+ /**
62905
+ * Settings UUID
62906
+ */
62907
+ settings_uuid?: string;
62908
+ state?: string;
62909
+ status?: string;
62910
+ };
62911
+ url: '/api/openstack-hypervisors/';
62912
+ };
62913
+ export type OpenstackHypervisorsListResponses = {
62914
+ 200: Array<Hypervisor>;
62915
+ };
62916
+ export type OpenstackHypervisorsListResponse = OpenstackHypervisorsListResponses[keyof OpenstackHypervisorsListResponses];
62917
+ export type OpenstackHypervisorsCountData = {
62918
+ body?: never;
62919
+ path?: never;
62920
+ query?: {
62921
+ hypervisor_type?: string;
62922
+ /**
62923
+ * Name
62924
+ */
62925
+ name?: string;
62926
+ /**
62927
+ * Name (exact)
62928
+ */
62929
+ name_exact?: string;
62930
+ /**
62931
+ * A page number within the paginated result set.
62932
+ */
62933
+ page?: number;
62934
+ /**
62935
+ * Number of results to return per page.
62936
+ */
62937
+ page_size?: number;
62938
+ /**
62939
+ * Settings URL
62940
+ */
62941
+ settings?: string;
62942
+ /**
62943
+ * Settings UUID
62944
+ */
62945
+ settings_uuid?: string;
62946
+ state?: string;
62947
+ status?: string;
62948
+ };
62949
+ url: '/api/openstack-hypervisors/';
62950
+ };
62951
+ export type OpenstackHypervisorsCountResponses = {
62952
+ /**
62953
+ * No response body
62954
+ */
62955
+ 200: unknown;
62956
+ };
62957
+ export type OpenstackHypervisorsRetrieveData = {
62958
+ body?: never;
62959
+ path: {
62960
+ uuid: string;
62961
+ };
62962
+ query?: never;
62963
+ url: '/api/openstack-hypervisors/{uuid}/';
62964
+ };
62965
+ export type OpenstackHypervisorsRetrieveResponses = {
62966
+ 200: Hypervisor;
62967
+ };
62968
+ export type OpenstackHypervisorsRetrieveResponse = OpenstackHypervisorsRetrieveResponses[keyof OpenstackHypervisorsRetrieveResponses];
62969
+ export type OpenstackHypervisorsSummaryRetrieveData = {
62970
+ body?: never;
62971
+ path?: never;
62972
+ query?: never;
62973
+ url: '/api/openstack-hypervisors/summary/';
62974
+ };
62975
+ export type OpenstackHypervisorsSummaryRetrieveResponses = {
62976
+ 200: HypervisorSummary;
62977
+ };
62978
+ export type OpenstackHypervisorsSummaryRetrieveResponse = OpenstackHypervisorsSummaryRetrieveResponses[keyof OpenstackHypervisorsSummaryRetrieveResponses];
62979
+ export type OpenstackHypervisorsSummaryCountData = {
62980
+ body?: never;
62981
+ path?: never;
62982
+ query?: never;
62983
+ url: '/api/openstack-hypervisors/summary/';
62984
+ };
62985
+ export type OpenstackHypervisorsSummaryCountResponses = {
62986
+ /**
62987
+ * No response body
62988
+ */
62989
+ 200: unknown;
62990
+ };
62858
62991
  export type OpenstackImagesListData = {
62859
62992
  body?: never;
62860
62993
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.8-dev.10",
3
+ "version": "8.0.8-dev.12",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",