waldur-js-client 8.0.8-dev.1 → 8.0.8-dev.3

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
@@ -16023,6 +16023,54 @@ export const marketplaceCategoryHelpArticlesUpdate = (options) => {
16023
16023
  }
16024
16024
  });
16025
16025
  };
16026
+ /**
16027
+ * List monthly component usage summaries globally
16028
+ * Returns paginated monthly component usage across all offerings and service providers. Results are automatically filtered by the user's permissions. Defaults to the current month if no time filters ('billing_period', 'start', 'end') are provided.
16029
+ */
16030
+ export const marketplaceComponentUsageMonthlyList = (options) => {
16031
+ return (options?.client ?? _heyApiClient).get({
16032
+ security: [
16033
+ {
16034
+ name: 'Authorization',
16035
+ type: 'apiKey'
16036
+ },
16037
+ {
16038
+ scheme: 'bearer',
16039
+ type: 'http'
16040
+ },
16041
+ {
16042
+ scheme: 'bearer',
16043
+ type: 'http'
16044
+ }
16045
+ ],
16046
+ url: '/api/marketplace-component-usage-monthly/',
16047
+ ...options
16048
+ });
16049
+ };
16050
+ /**
16051
+ * List monthly component usage summaries globally
16052
+ * Get number of items in the collection matching the request parameters.
16053
+ */
16054
+ export const marketplaceComponentUsageMonthlyCount = (options) => {
16055
+ return (options?.client ?? _heyApiClient).head({
16056
+ security: [
16057
+ {
16058
+ name: 'Authorization',
16059
+ type: 'apiKey'
16060
+ },
16061
+ {
16062
+ scheme: 'bearer',
16063
+ type: 'http'
16064
+ },
16065
+ {
16066
+ scheme: 'bearer',
16067
+ type: 'http'
16068
+ }
16069
+ ],
16070
+ url: '/api/marketplace-component-usage-monthly/',
16071
+ ...options
16072
+ });
16073
+ };
16026
16074
  /**
16027
16075
  * List component usage records
16028
16076
  * Returns a paginated list of component usage records for resources. This data is used for billing and usage tracking.
@@ -37150,6 +37198,34 @@ export const openstackLoadbalancersPull = (options) => {
37150
37198
  ...options
37151
37199
  });
37152
37200
  };
37201
+ /**
37202
+ * Set security groups on VIP port
37203
+ * Set security groups on the load balancer VIP port to control access.
37204
+ */
37205
+ export const openstackLoadbalancersSetSecurityGroups = (options) => {
37206
+ return (options.client ?? _heyApiClient).post({
37207
+ security: [
37208
+ {
37209
+ name: 'Authorization',
37210
+ type: 'apiKey'
37211
+ },
37212
+ {
37213
+ scheme: 'bearer',
37214
+ type: 'http'
37215
+ },
37216
+ {
37217
+ scheme: 'bearer',
37218
+ type: 'http'
37219
+ }
37220
+ ],
37221
+ url: '/api/openstack-loadbalancers/{uuid}/set_security_groups/',
37222
+ ...options,
37223
+ headers: {
37224
+ 'Content-Type': 'application/json',
37225
+ ...options.headers
37226
+ }
37227
+ });
37228
+ };
37153
37229
  /**
37154
37230
  * Unlink load balancer
37155
37231
  * Delete the load balancer from the Waldur database without scheduling operations on the OpenStack backend and without checking resource state. Staff-only; intended for cleaning up records stuck in transitional states.
@@ -4025,6 +4025,25 @@ export type ComponentUsageItemRequest = {
4025
4025
  */
4026
4026
  recurring?: boolean;
4027
4027
  };
4028
+ export type ComponentUsageMonthly = {
4029
+ readonly offering_uuid?: string;
4030
+ readonly offering_name?: string;
4031
+ readonly offering_type?: string;
4032
+ readonly service_provider_uuid?: string;
4033
+ readonly service_provider_name?: string;
4034
+ readonly category_uuid?: string;
4035
+ readonly category_title?: string;
4036
+ readonly component_type?: string;
4037
+ readonly component_name?: string;
4038
+ readonly measured_unit?: string;
4039
+ readonly billing_type?: string;
4040
+ readonly limit_amount?: number;
4041
+ readonly limit_period?: string;
4042
+ billing_period?: string;
4043
+ total_consumed?: string;
4044
+ total_allocated?: string;
4045
+ usage_percent?: string | null;
4046
+ };
4028
4047
  export type ComponentUsagesPerMonthStats = {
4029
4048
  /**
4030
4049
  * Total usage amount
@@ -5126,6 +5145,7 @@ export type CreatePool = {
5126
5145
  */
5127
5146
  load_balancer: string;
5128
5147
  protocol: LoadBalancerProtocolEnum;
5148
+ lb_algorithm?: LbAlgorithmEnum;
5129
5149
  };
5130
5150
  export type CreatePoolMember = {
5131
5151
  readonly url: string;
@@ -5170,6 +5190,7 @@ export type CreatePoolRequest = {
5170
5190
  */
5171
5191
  load_balancer: string;
5172
5192
  protocol: LoadBalancerProtocolEnum;
5193
+ lb_algorithm?: LbAlgorithmEnum;
5173
5194
  };
5174
5195
  export type CreateRouter = {
5175
5196
  readonly url: string;
@@ -6419,7 +6440,7 @@ export type DryRunRequest = {
6419
6440
  };
6420
6441
  export type DryRunStateEnum = 1 | 2 | 3 | 4;
6421
6442
  export type DryRunTypeEnum = 'Create' | 'Update' | 'Terminate' | 'Restore' | 'Pull';
6422
- export type EnabledreportingscreensEnum = 'resource-usage' | 'user-usage' | 'quotas' | 'usage-monitoring' | 'usage-trends' | 'organization-summary' | 'project-detail' | 'resources-geography' | 'project-classification' | 'usage-by-customer' | 'usage-by-org-type' | 'usage-by-creator' | 'call-performance' | 'review-progress' | 'resource-demand' | 'capacity' | 'provider-overview' | 'provider-revenue' | 'provider-orders' | 'provider-resources' | 'provider-customers' | 'provider-offerings' | 'openstack-instances' | 'user-analytics' | 'user-demographics' | 'user-organizations' | 'user-affiliations' | 'user-roles' | 'growth' | 'revenue' | 'pricelist' | 'orders' | 'offering-costs' | 'maintenance-overview' | 'provisioning-stats';
6443
+ export type EnabledreportingscreensEnum = 'resource-usage' | 'user-usage' | 'quotas' | 'usage-monitoring' | 'usage-trends' | 'organization-summary' | 'project-detail' | 'resources-geography' | 'project-classification' | 'usage-by-customer' | 'usage-by-org-type' | 'usage-by-creator' | 'call-performance' | 'review-progress' | 'resource-demand' | 'capacity' | 'provider-overview' | 'provider-revenue' | 'provider-orders' | 'provider-resources' | 'provider-customers' | 'provider-offerings' | 'openstack-instances' | 'offering-usage' | 'user-analytics' | 'user-demographics' | 'user-organizations' | 'user-affiliations' | 'user-roles' | 'growth' | 'revenue' | 'pricelist' | 'orders' | 'offering-costs' | 'maintenance-overview' | 'provisioning-stats';
6423
6444
  export type EligibilityCheck = {
6424
6445
  is_eligible: boolean;
6425
6446
  restrictions: Array<string>;
@@ -8553,6 +8574,7 @@ export type KeycloakUserGroupMembershipState = 'pending' | 'active';
8553
8574
  export type KeywordSearchModeEnum = 'expertise_only' | 'full_text';
8554
8575
  export type KindEnum = 'default' | 'course' | 'public';
8555
8576
  export type LoginpagelayoutEnum = 'split-screen' | 'centered-card' | 'minimal' | 'full-hero' | 'gradient' | 'stacked' | 'right-split' | 'glassmorphism' | 'neumorphism' | 'animated-gradient' | 'video-background' | 'bottom-sheet' | 'tabbed' | 'wizard' | 'stats' | 'news' | 'carousel' | 'logo-watermark' | 'brand-pattern' | 'duotone' | 'diagonal' | 'time-based' | 'seasonal' | 'weather';
8577
+ export type LbAlgorithmEnum = 'ROUND_ROBIN' | 'LEAST_CONNECTIONS' | 'SOURCE_IP' | 'SOURCE_IP_PORT';
8556
8578
  export type LexisLink = {
8557
8579
  readonly url: string;
8558
8580
  readonly uuid: string;
@@ -8627,6 +8649,9 @@ export type LoadBalancerAttachFloatingIpRequest = {
8627
8649
  floating_ip: string;
8628
8650
  };
8629
8651
  export type LoadBalancerProtocolEnum = 'TCP' | 'UDP';
8652
+ export type LoadBalancerSetSecurityGroupsRequest = {
8653
+ security_groups: Array<string>;
8654
+ };
8630
8655
  export type LockStats = {
8631
8656
  /**
8632
8657
  * Total number of locks currently held
@@ -10445,6 +10470,7 @@ export type NestedParentSoftware = {
10445
10470
  readonly uuid: string;
10446
10471
  name: string;
10447
10472
  readonly url: string;
10473
+ readonly versions: Array<string>;
10448
10474
  };
10449
10475
  export type NestedParentSoftwareRequest = {
10450
10476
  name: string;
@@ -13472,6 +13498,12 @@ export type OpenStackLoadBalancer = {
13472
13498
  readonly provider?: string;
13473
13499
  readonly provisioning_status?: string;
13474
13500
  readonly operating_status?: string;
13501
+ /**
13502
+ * Security groups assigned to the VIP port.
13503
+ */
13504
+ readonly vip_security_groups?: Array<{
13505
+ [key: string]: unknown;
13506
+ }>;
13475
13507
  readonly marketplace_offering_uuid?: string | null;
13476
13508
  readonly marketplace_offering_name?: string | null;
13477
13509
  readonly marketplace_offering_type?: string | null;
@@ -27565,6 +27597,7 @@ export type ResourceFieldEnum = 'attributes' | 'available_actions' | 'backend_id
27565
27597
  export type MarketplaceCategoryFieldEnum = 'articles' | 'available_offerings_count' | 'columns' | 'components' | 'default_tenant_category' | 'default_vm_category' | 'default_volume_category' | 'description' | 'group' | 'icon' | 'offering_count' | 'sections' | 'title' | 'url' | 'uuid';
27566
27598
  export type CategoryComponentUsageFieldEnum = 'category_title' | 'category_uuid' | 'date' | 'fixed_usage' | 'measured_unit' | 'name' | 'reported_usage' | 'scope' | 'type';
27567
27599
  export type CategoryGroupFieldEnum = 'description' | 'icon' | 'title' | 'url' | 'uuid';
27600
+ export type ComponentUsageMonthlyFieldEnum = 'billing_period' | 'billing_type' | 'category_title' | 'category_uuid' | 'component_name' | 'component_type' | 'limit_amount' | 'limit_period' | 'measured_unit' | 'offering_name' | 'offering_type' | 'offering_uuid' | 'service_provider_name' | 'service_provider_uuid' | 'total_allocated' | 'total_consumed' | 'usage_percent';
27568
27601
  export type ComponentUsageFieldEnum = 'billing_period' | 'created' | 'customer_name' | 'customer_uuid' | 'date' | 'description' | 'measured_unit' | 'modified_by' | 'name' | 'offering_name' | 'offering_uuid' | 'project_name' | 'project_uuid' | 'recurring' | 'resource_name' | 'resource_uuid' | 'type' | 'usage' | 'uuid';
27569
27602
  export type ComponentUsageOEnum = '-billing_period' | '-usage' | 'billing_period' | 'usage';
27570
27603
  export type ComponentUserUsageFieldEnum = 'backend_id' | 'billing_period' | 'component_type' | 'component_usage' | 'created' | 'customer_name' | 'customer_uuid' | 'date' | 'description' | 'measured_unit' | 'modified' | 'offering_name' | 'offering_uuid' | 'project_name' | 'project_uuid' | 'resource_name' | 'resource_uuid' | 'usage' | 'user' | 'username' | 'uuid';
@@ -27623,7 +27656,7 @@ export type OpenStackHealthMonitorFieldEnum = 'access_url' | 'backend_id' | 'cre
27623
27656
  export type OpenStackInstanceFieldEnum = 'access_url' | 'action' | 'action_details' | 'availability_zone' | 'availability_zone_name' | 'backend_id' | 'connect_directly_to_external_network' | 'cores' | 'created' | 'customer' | 'customer_abbreviation' | 'customer_name' | 'customer_native_name' | 'customer_uuid' | 'description' | 'disk' | 'error_message' | 'error_traceback' | 'external_address' | 'external_ips' | 'flavor_disk' | 'flavor_name' | 'floating_ips' | 'hypervisor_hostname' | 'image_name' | 'internal_ips' | 'is_limit_based' | 'is_usage_based' | 'key_fingerprint' | 'key_name' | 'latitude' | 'longitude' | 'marketplace_category_name' | 'marketplace_category_uuid' | 'marketplace_offering_name' | 'marketplace_offering_plugin_options' | 'marketplace_offering_type' | 'marketplace_offering_uuid' | 'marketplace_plan_uuid' | 'marketplace_resource_state' | 'marketplace_resource_uuid' | 'min_disk' | 'min_ram' | 'modified' | 'name' | 'ports' | 'project' | 'project_name' | 'project_uuid' | 'ram' | 'rancher_cluster' | 'resource_type' | 'runtime_state' | 'security_groups' | 'server_group' | 'service_name' | 'service_settings' | 'service_settings_error_message' | 'service_settings_state' | 'service_settings_uuid' | 'ssh_public_key' | 'start_time' | 'state' | 'tenant' | 'tenant_uuid' | 'url' | 'user_data' | 'uuid' | 'volumes';
27624
27657
  export type OpenStackInstanceOEnum = 'start_time' | '-start_time';
27625
27658
  export type OpenStackListenerFieldEnum = 'access_url' | 'backend_id' | 'created' | 'customer' | 'customer_abbreviation' | 'customer_name' | 'customer_native_name' | 'customer_uuid' | 'default_pool' | 'description' | 'error_message' | 'error_traceback' | 'is_limit_based' | 'is_usage_based' | 'load_balancer' | 'load_balancer_name' | 'load_balancer_uuid' | 'marketplace_category_name' | 'marketplace_category_uuid' | 'marketplace_offering_name' | 'marketplace_offering_plugin_options' | 'marketplace_offering_type' | 'marketplace_offering_uuid' | 'marketplace_plan_uuid' | 'marketplace_resource_state' | 'marketplace_resource_uuid' | 'modified' | 'name' | 'operating_status' | 'project' | 'project_name' | 'project_uuid' | 'protocol' | 'protocol_port' | 'provisioning_status' | 'resource_type' | 'service_name' | 'service_settings' | 'service_settings_error_message' | 'service_settings_state' | 'service_settings_uuid' | 'state' | 'url' | 'uuid';
27626
- export type OpenStackLoadBalancerFieldEnum = 'access_url' | 'attached_floating_ip' | 'backend_id' | 'created' | 'customer' | 'customer_abbreviation' | 'customer_name' | 'customer_native_name' | 'customer_uuid' | 'description' | 'error_message' | 'error_traceback' | 'is_limit_based' | 'is_usage_based' | 'marketplace_category_name' | 'marketplace_category_uuid' | 'marketplace_offering_name' | 'marketplace_offering_plugin_options' | 'marketplace_offering_type' | 'marketplace_offering_uuid' | 'marketplace_plan_uuid' | 'marketplace_resource_state' | 'marketplace_resource_uuid' | 'modified' | 'name' | 'operating_status' | 'project' | 'project_name' | 'project_uuid' | 'provider' | 'provisioning_status' | 'resource_type' | 'service_name' | 'service_settings' | 'service_settings_error_message' | 'service_settings_state' | 'service_settings_uuid' | 'state' | 'tenant' | 'tenant_name' | 'tenant_uuid' | 'url' | 'uuid' | 'vip_address' | 'vip_port' | 'vip_subnet';
27659
+ export type OpenStackLoadBalancerFieldEnum = 'access_url' | 'attached_floating_ip' | 'backend_id' | 'created' | 'customer' | 'customer_abbreviation' | 'customer_name' | 'customer_native_name' | 'customer_uuid' | 'description' | 'error_message' | 'error_traceback' | 'is_limit_based' | 'is_usage_based' | 'marketplace_category_name' | 'marketplace_category_uuid' | 'marketplace_offering_name' | 'marketplace_offering_plugin_options' | 'marketplace_offering_type' | 'marketplace_offering_uuid' | 'marketplace_plan_uuid' | 'marketplace_resource_state' | 'marketplace_resource_uuid' | 'modified' | 'name' | 'operating_status' | 'project' | 'project_name' | 'project_uuid' | 'provider' | 'provisioning_status' | 'resource_type' | 'service_name' | 'service_settings' | 'service_settings_error_message' | 'service_settings_state' | 'service_settings_uuid' | 'state' | 'tenant' | 'tenant_name' | 'tenant_uuid' | 'url' | 'uuid' | 'vip_address' | 'vip_port' | 'vip_security_groups' | 'vip_subnet';
27627
27660
  export type OpenStackNetworkFieldEnum = 'access_url' | 'backend_id' | 'created' | 'customer' | 'customer_abbreviation' | 'customer_name' | 'customer_native_name' | 'customer_uuid' | 'description' | 'error_message' | 'error_traceback' | 'is_external' | 'is_limit_based' | 'is_usage_based' | 'marketplace_category_name' | 'marketplace_category_uuid' | 'marketplace_offering_name' | 'marketplace_offering_plugin_options' | 'marketplace_offering_type' | 'marketplace_offering_uuid' | 'marketplace_plan_uuid' | 'marketplace_resource_state' | 'marketplace_resource_uuid' | 'modified' | 'mtu' | 'name' | 'project' | 'project_name' | 'project_uuid' | 'rbac_policies' | 'resource_type' | 'segmentation_id' | 'service_name' | 'service_settings' | 'service_settings_error_message' | 'service_settings_state' | 'service_settings_uuid' | 'state' | 'subnets' | 'tenant' | 'tenant_name' | 'tenant_uuid' | 'type' | 'url' | 'uuid';
27628
27661
  export type OpenStackPoolMemberFieldEnum = 'access_url' | 'address' | 'backend_id' | 'created' | 'customer' | 'customer_abbreviation' | 'customer_name' | 'customer_native_name' | 'customer_uuid' | 'description' | 'error_message' | 'error_traceback' | 'is_limit_based' | 'is_usage_based' | 'load_balancer_uuid' | 'marketplace_category_name' | 'marketplace_category_uuid' | 'marketplace_offering_name' | 'marketplace_offering_plugin_options' | 'marketplace_offering_type' | 'marketplace_offering_uuid' | 'marketplace_plan_uuid' | 'marketplace_resource_state' | 'marketplace_resource_uuid' | 'modified' | 'name' | 'operating_status' | 'pool' | 'pool_name' | 'pool_uuid' | 'project' | 'project_name' | 'project_uuid' | 'protocol_port' | 'provisioning_status' | 'resource_type' | 'service_name' | 'service_settings' | 'service_settings_error_message' | 'service_settings_state' | 'service_settings_uuid' | 'state' | 'subnet' | 'url' | 'uuid' | 'weight';
27629
27662
  export type OpenStackPoolFieldEnum = 'access_url' | 'backend_id' | 'created' | 'customer' | 'customer_abbreviation' | 'customer_name' | 'customer_native_name' | 'customer_uuid' | 'description' | 'error_message' | 'error_traceback' | 'is_limit_based' | 'is_usage_based' | 'lb_algorithm' | 'load_balancer' | 'load_balancer_name' | 'load_balancer_uuid' | 'marketplace_category_name' | 'marketplace_category_uuid' | 'marketplace_offering_name' | 'marketplace_offering_plugin_options' | 'marketplace_offering_type' | 'marketplace_offering_uuid' | 'marketplace_plan_uuid' | 'marketplace_resource_state' | 'marketplace_resource_uuid' | 'modified' | 'name' | 'operating_status' | 'project' | 'project_name' | 'project_uuid' | 'protocol' | 'provisioning_status' | 'resource_type' | 'service_name' | 'service_settings' | 'service_settings_error_message' | 'service_settings_state' | 'service_settings_uuid' | 'state' | 'url' | 'uuid';
@@ -41784,6 +41817,73 @@ export type MarketplaceCategoryHelpArticlesUpdateResponses = {
41784
41817
  200: CategoryHelpArticles;
41785
41818
  };
41786
41819
  export type MarketplaceCategoryHelpArticlesUpdateResponse = MarketplaceCategoryHelpArticlesUpdateResponses[keyof MarketplaceCategoryHelpArticlesUpdateResponses];
41820
+ export type MarketplaceComponentUsageMonthlyListData = {
41821
+ body?: never;
41822
+ path?: never;
41823
+ query?: {
41824
+ billing_period?: string;
41825
+ billing_type?: string;
41826
+ component_type?: string;
41827
+ customer_uuid?: string;
41828
+ end?: string;
41829
+ field?: Array<ComponentUsageMonthlyFieldEnum>;
41830
+ /**
41831
+ * Which field to use when ordering the results.
41832
+ */
41833
+ o?: string;
41834
+ offering_type?: string;
41835
+ offering_uuid?: string;
41836
+ /**
41837
+ * A page number within the paginated result set.
41838
+ */
41839
+ page?: number;
41840
+ /**
41841
+ * Number of results to return per page.
41842
+ */
41843
+ page_size?: number;
41844
+ project_uuid?: string;
41845
+ start?: string;
41846
+ };
41847
+ url: '/api/marketplace-component-usage-monthly/';
41848
+ };
41849
+ export type MarketplaceComponentUsageMonthlyListResponses = {
41850
+ 200: Array<ComponentUsageMonthly>;
41851
+ };
41852
+ export type MarketplaceComponentUsageMonthlyListResponse = MarketplaceComponentUsageMonthlyListResponses[keyof MarketplaceComponentUsageMonthlyListResponses];
41853
+ export type MarketplaceComponentUsageMonthlyCountData = {
41854
+ body?: never;
41855
+ path?: never;
41856
+ query?: {
41857
+ billing_period?: string;
41858
+ billing_type?: string;
41859
+ component_type?: string;
41860
+ customer_uuid?: string;
41861
+ end?: string;
41862
+ /**
41863
+ * Which field to use when ordering the results.
41864
+ */
41865
+ o?: string;
41866
+ offering_type?: string;
41867
+ offering_uuid?: string;
41868
+ /**
41869
+ * A page number within the paginated result set.
41870
+ */
41871
+ page?: number;
41872
+ /**
41873
+ * Number of results to return per page.
41874
+ */
41875
+ page_size?: number;
41876
+ project_uuid?: string;
41877
+ start?: string;
41878
+ };
41879
+ url: '/api/marketplace-component-usage-monthly/';
41880
+ };
41881
+ export type MarketplaceComponentUsageMonthlyCountResponses = {
41882
+ /**
41883
+ * No response body
41884
+ */
41885
+ 200: unknown;
41886
+ };
41787
41887
  export type MarketplaceComponentUsagesListData = {
41788
41888
  body?: never;
41789
41889
  path?: never;
@@ -63461,6 +63561,18 @@ export type OpenstackLoadbalancersPullResponses = {
63461
63561
  */
63462
63562
  202: unknown;
63463
63563
  };
63564
+ export type OpenstackLoadbalancersSetSecurityGroupsData = {
63565
+ body: LoadBalancerSetSecurityGroupsRequest;
63566
+ path: {
63567
+ uuid: string;
63568
+ };
63569
+ query?: never;
63570
+ url: '/api/openstack-loadbalancers/{uuid}/set_security_groups/';
63571
+ };
63572
+ export type OpenstackLoadbalancersSetSecurityGroupsResponses = {
63573
+ 202: LoadBalancerAsyncOperationResponse;
63574
+ };
63575
+ export type OpenstackLoadbalancersSetSecurityGroupsResponse = OpenstackLoadbalancersSetSecurityGroupsResponses[keyof OpenstackLoadbalancersSetSecurityGroupsResponses];
63464
63576
  export type OpenstackLoadbalancersUnlinkData = {
63465
63577
  body?: never;
63466
63578
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.8-dev.1",
3
+ "version": "8.0.8-dev.3",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",