waldur-js-client 7.7.5 → 7.7.6-dev.1

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.
Files changed (2) hide show
  1. package/dist/types.gen.d.ts +191 -34
  2. package/package.json +1 -1
@@ -18,6 +18,20 @@ export type AdminAnnouncement = {
18
18
  readonly is_active?: boolean;
19
19
  type?: AdminAnnouncementTypeEnum;
20
20
  readonly created?: string;
21
+ readonly maintenance_uuid?: string;
22
+ readonly maintenance_name?: string;
23
+ readonly maintenance_type?: string;
24
+ readonly maintenance_state?: string;
25
+ readonly maintenance_scheduled_start?: string;
26
+ readonly maintenance_scheduled_end?: string;
27
+ readonly maintenance_service_provider?: string;
28
+ readonly maintenance_affected_offerings?: Array<{
29
+ uuid?: string;
30
+ name?: string;
31
+ impact_level?: string;
32
+ impact_level_display?: string;
33
+ impact_description?: string;
34
+ }>;
21
35
  };
22
36
  export type AdminAnnouncementRequest = {
23
37
  description?: string;
@@ -820,13 +834,13 @@ export type BasicCustomer = {
820
834
  name: string;
821
835
  };
822
836
  export type BasicUser = {
823
- readonly url: string;
824
- readonly uuid: string;
837
+ readonly url?: string;
838
+ readonly uuid?: string;
825
839
  /**
826
840
  * Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
827
841
  */
828
- username: string;
829
- readonly full_name: string;
842
+ username?: string;
843
+ readonly full_name?: string;
830
844
  native_name?: string;
831
845
  /**
832
846
  * Email address
@@ -1951,7 +1965,6 @@ export type Customer = {
1951
1965
  readonly url?: string;
1952
1966
  readonly uuid?: string;
1953
1967
  readonly created?: string;
1954
- readonly organization_groups?: Array<OrganizationGroup>;
1955
1968
  readonly display_name?: string;
1956
1969
  /**
1957
1970
  * Organization identifier in another application.
@@ -1966,7 +1979,6 @@ export type Customer = {
1966
1979
  */
1967
1980
  readonly accounting_start_date?: string;
1968
1981
  readonly projects_count?: number;
1969
- readonly users_count?: number;
1970
1982
  /**
1971
1983
  * External ID of the sponsor covering the costs
1972
1984
  */
@@ -2501,9 +2513,9 @@ export type FinancialReportEmailRequest = {
2501
2513
  month: number;
2502
2514
  };
2503
2515
  export type Fingerprint = {
2504
- readonly md5: string;
2505
- readonly sha256: string;
2506
- readonly sha512: string;
2516
+ readonly md5?: string;
2517
+ readonly sha256?: string;
2518
+ readonly sha512?: string;
2507
2519
  };
2508
2520
  export type FirecrestJob = {
2509
2521
  readonly url?: string;
@@ -6302,7 +6314,10 @@ export type OrderCreate = {
6302
6314
  export type OrderCreateRequest = {
6303
6315
  offering: string;
6304
6316
  plan?: string;
6305
- attributes?: unknown;
6317
+ /**
6318
+ * Attributes structure depends on the offering type specified in the parent object
6319
+ */
6320
+ attributes?: AzureVirtualMachineCreateOrderAttributes | AzureSqlServerCreateOrderAttributes | OpenStackTenantCreateOrderAttributes | OpenStackInstanceCreateOrderAttributes | OpenStackVolumeCreateOrderAttributes | MarketplaceRancherCreateOrderAttributes | MarketplaceManagedRancherCreateOrderAttributes | SlurmInvoicesSlurmPackageCreateOrderAttributes | VMwareVirtualMachineCreateOrderAttributes;
6306
6321
  limits?: {
6307
6322
  [key: string]: number;
6308
6323
  };
@@ -9732,34 +9747,34 @@ export type RobotAccount = {
9732
9747
  state?: RobotAccountStates;
9733
9748
  };
9734
9749
  export type RobotAccountDetails = {
9735
- readonly url: string;
9736
- readonly uuid: string;
9737
- readonly created: string;
9738
- readonly modified: string;
9750
+ readonly url?: string;
9751
+ readonly uuid?: string;
9752
+ readonly created?: string;
9753
+ readonly modified?: string;
9739
9754
  username?: string;
9740
9755
  description?: string;
9741
9756
  readonly error_message?: string;
9742
9757
  readonly error_traceback?: string;
9743
- resource: string;
9758
+ resource?: string;
9744
9759
  /**
9745
9760
  * Type of the robot account.
9746
9761
  */
9747
- type: string;
9748
- readonly users: Array<BasicUser>;
9762
+ type?: string;
9763
+ readonly users?: Array<BasicUser>;
9749
9764
  keys?: unknown;
9750
- readonly backend_id: string;
9751
- readonly fingerprints: Array<Fingerprint>;
9752
- responsible_user: BasicUser | null;
9765
+ readonly backend_id?: string;
9766
+ readonly fingerprints?: Array<Fingerprint>;
9767
+ responsible_user?: BasicUser | null;
9753
9768
  state?: RobotAccountStates;
9754
- readonly user_keys: Array<SshKey>;
9755
- readonly resource_name: string;
9756
- readonly resource_uuid: string;
9757
- readonly project_name: string;
9758
- readonly project_uuid: string;
9759
- readonly customer_uuid: string;
9760
- readonly customer_name: string;
9761
- readonly offering_customer_uuid: string;
9762
- offering_plugin_options: MergedPluginOptions;
9769
+ readonly user_keys?: Array<SshKey>;
9770
+ readonly resource_name?: string;
9771
+ readonly resource_uuid?: string;
9772
+ readonly project_name?: string;
9773
+ readonly project_uuid?: string;
9774
+ readonly customer_uuid?: string;
9775
+ readonly customer_name?: string;
9776
+ readonly offering_customer_uuid?: string;
9777
+ offering_plugin_options?: MergedPluginOptions;
9763
9778
  };
9764
9779
  export type RobotAccountErrorRequest = {
9765
9780
  /**
@@ -11037,6 +11052,145 @@ export type WebHookRequest = {
11037
11052
  };
11038
11053
  export type WebhookEventEnum = 'jira:issue_updated' | 'jira:issue_deleted' | 'comment_created' | 'comment_updated' | 'comment_deleted';
11039
11054
  export type WidgetEnum = 'csv' | 'filesize' | 'attached_instance';
11055
+ /**
11056
+ * This mixin allows to specify list of fields to be rendered by serializer.
11057
+ * It expects that request is available in serializer's context.
11058
+ */
11059
+ export type AzureVirtualMachineCreateOrderAttributes = {
11060
+ name: string;
11061
+ description?: string;
11062
+ size: string;
11063
+ image: string;
11064
+ location: string;
11065
+ };
11066
+ /**
11067
+ * This mixin allows to specify list of fields to be rendered by serializer.
11068
+ * It expects that request is available in serializer's context.
11069
+ */
11070
+ export type AzureSqlServerCreateOrderAttributes = {
11071
+ name: string;
11072
+ description?: string;
11073
+ location: string;
11074
+ };
11075
+ /**
11076
+ * This mixin allows to specify list of fields to be rendered by serializer.
11077
+ * It expects that request is available in serializer's context.
11078
+ */
11079
+ export type OpenStackTenantCreateOrderAttributes = {
11080
+ name: string;
11081
+ description?: string;
11082
+ subnet_cidr?: string;
11083
+ skip_connection_extnet?: boolean;
11084
+ skip_creation_of_default_router?: boolean;
11085
+ /**
11086
+ * Optional availability group. Will be used for all instances provisioned in this tenant
11087
+ */
11088
+ availability_zone?: string;
11089
+ };
11090
+ /**
11091
+ * This mixin allows to specify list of fields to be rendered by serializer.
11092
+ * It expects that request is available in serializer's context.
11093
+ */
11094
+ export type OpenStackInstanceCreateOrderAttributes = {
11095
+ name: string;
11096
+ description?: string;
11097
+ flavor: string;
11098
+ image: string;
11099
+ ports: Array<OpenStackNestedPortRequest>;
11100
+ floating_ips?: Array<OpenStackNestedFloatingIpRequest>;
11101
+ system_volume_size: number;
11102
+ system_volume_type?: string | null;
11103
+ data_volume_size?: number;
11104
+ data_volume_type?: string | null;
11105
+ ssh_public_key?: string;
11106
+ /**
11107
+ * Additional data that will be added to instance on provisioning
11108
+ */
11109
+ user_data?: string;
11110
+ availability_zone?: string | null;
11111
+ connect_directly_to_external_network?: boolean;
11112
+ };
11113
+ /**
11114
+ * This mixin allows to specify list of fields to be rendered by serializer.
11115
+ * It expects that request is available in serializer's context.
11116
+ */
11117
+ export type OpenStackVolumeCreateOrderAttributes = {
11118
+ name: string;
11119
+ description?: string;
11120
+ image?: string | null;
11121
+ /**
11122
+ * Size in MiB
11123
+ */
11124
+ size?: number | null;
11125
+ availability_zone?: string | null;
11126
+ type?: string | null;
11127
+ };
11128
+ /**
11129
+ * This mixin allows to specify list of fields to be rendered by serializer.
11130
+ * It expects that request is available in serializer's context.
11131
+ */
11132
+ export type MarketplaceRancherCreateOrderAttributes = {
11133
+ name: string;
11134
+ description?: string;
11135
+ nodes: Array<RancherNestedNodeRequest>;
11136
+ tenant?: string;
11137
+ ssh_public_key?: string;
11138
+ /**
11139
+ * Longhorn is a distributed block storage deployed on top of Kubernetes cluster
11140
+ */
11141
+ install_longhorn?: boolean;
11142
+ vm_project?: string | null;
11143
+ };
11144
+ export type MarketplaceManagedRancherCreateOrderAttributes = {
11145
+ /**
11146
+ * Unique identifier for the cluster
11147
+ */
11148
+ name: string;
11149
+ worker_nodes_count: number;
11150
+ worker_nodes_flavor_name: string;
11151
+ /**
11152
+ * Data volume size for worker nodes in MB (consistent with OpenStack)
11153
+ */
11154
+ worker_nodes_data_volume_size: number;
11155
+ worker_nodes_data_volume_type_name?: string;
11156
+ /**
11157
+ * List of UUID of OpenStack offerings where tenant can be created
11158
+ */
11159
+ openstack_offering_uuid_list?: Array<string>;
11160
+ /**
11161
+ * Longhorn is a distributed block storage deployed on top of Kubernetes cluster
11162
+ */
11163
+ install_longhorn?: boolean;
11164
+ /**
11165
+ * Longhorn storage volume size for worker nodes in MB (consistent with OpenStack)
11166
+ */
11167
+ worker_nodes_longhorn_volume_size?: number;
11168
+ worker_nodes_longhorn_volume_type_name?: string;
11169
+ };
11170
+ /**
11171
+ * This mixin allows to specify list of fields to be rendered by serializer.
11172
+ * It expects that request is available in serializer's context.
11173
+ */
11174
+ export type SlurmInvoicesSlurmPackageCreateOrderAttributes = {
11175
+ name: string;
11176
+ description?: string;
11177
+ };
11178
+ /**
11179
+ * This mixin allows to specify list of fields to be rendered by serializer.
11180
+ * It expects that request is available in serializer's context.
11181
+ */
11182
+ export type VMwareVirtualMachineCreateOrderAttributes = {
11183
+ name: string;
11184
+ description?: string;
11185
+ guest_os?: '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' | null;
11186
+ /**
11187
+ * Number of cores per socket in a VM
11188
+ */
11189
+ cores_per_socket?: number;
11190
+ template?: string | null;
11191
+ cluster?: string | null;
11192
+ datastore?: string | null;
11193
+ };
11040
11194
  /**
11041
11195
  * A page number within the paginated result set.
11042
11196
  */
@@ -11342,7 +11496,7 @@ export type AdminAnnouncementsListData = {
11342
11496
  path?: never;
11343
11497
  query?: {
11344
11498
  description?: string;
11345
- field?: Array<'active_from' | 'active_to' | 'created' | 'description' | 'is_active' | 'type' | 'uuid'>;
11499
+ field?: Array<'active_from' | 'active_to' | 'created' | 'description' | 'is_active' | 'maintenance_affected_offerings' | 'maintenance_name' | 'maintenance_scheduled_end' | 'maintenance_scheduled_start' | 'maintenance_service_provider' | 'maintenance_state' | 'maintenance_type' | 'maintenance_uuid' | 'type' | 'uuid'>;
11346
11500
  is_active?: boolean;
11347
11501
  /**
11348
11502
  * Ordering
@@ -11427,7 +11581,7 @@ export type AdminAnnouncementsRetrieveData = {
11427
11581
  uuid: string;
11428
11582
  };
11429
11583
  query?: {
11430
- field?: Array<'active_from' | 'active_to' | 'created' | 'description' | 'is_active' | 'type' | 'uuid'>;
11584
+ field?: Array<'active_from' | 'active_to' | 'created' | 'description' | 'is_active' | 'maintenance_affected_offerings' | 'maintenance_name' | 'maintenance_scheduled_end' | 'maintenance_scheduled_start' | 'maintenance_service_provider' | 'maintenance_state' | 'maintenance_type' | 'maintenance_uuid' | 'type' | 'uuid'>;
11431
11585
  };
11432
11586
  url: '/api/admin-announcements/{uuid}/';
11433
11587
  };
@@ -15493,7 +15647,7 @@ export type CustomersListData = {
15493
15647
  archived?: boolean;
15494
15648
  backend_id?: string;
15495
15649
  contact_details?: string;
15496
- field?: Array<'abbreviation' | 'access_subnets' | 'accounting_start_date' | 'address' | 'agreement_number' | 'archived' | 'backend_id' | 'bank_account' | 'bank_name' | 'billing_price_estimate' | 'blocked' | 'call_managing_organization_uuid' | 'contact_details' | 'country' | 'country_name' | 'created' | 'customer_credit' | 'customer_unallocated_credit' | 'default_tax_percent' | 'display_name' | 'domain' | 'email' | 'homepage' | 'image' | 'is_service_provider' | 'latitude' | 'longitude' | 'max_service_accounts' | 'name' | 'native_name' | 'organization_groups' | 'payment_profiles' | 'phone_number' | 'postal' | 'projects_count' | 'registration_code' | 'service_provider' | 'service_provider_uuid' | 'slug' | 'sponsor_number' | 'url' | 'users_count' | 'uuid' | 'vat_code'>;
15650
+ field?: Array<'abbreviation' | 'access_subnets' | 'accounting_start_date' | 'address' | 'agreement_number' | 'archived' | 'backend_id' | 'bank_account' | 'bank_name' | 'billing_price_estimate' | 'blocked' | 'call_managing_organization_uuid' | 'contact_details' | 'country' | 'country_name' | 'created' | 'customer_credit' | 'customer_unallocated_credit' | 'default_tax_percent' | 'display_name' | 'domain' | 'email' | 'homepage' | 'image' | 'is_service_provider' | 'latitude' | 'longitude' | 'max_service_accounts' | 'name' | 'native_name' | 'payment_profiles' | 'phone_number' | 'postal' | 'projects_count' | 'registration_code' | 'service_provider' | 'service_provider_uuid' | 'slug' | 'sponsor_number' | 'url' | 'uuid' | 'vat_code'>;
15497
15651
  name?: string;
15498
15652
  name_exact?: string;
15499
15653
  native_name?: string;
@@ -15608,7 +15762,7 @@ export type CustomersRetrieveData = {
15608
15762
  uuid: string;
15609
15763
  };
15610
15764
  query?: {
15611
- field?: Array<'abbreviation' | 'access_subnets' | 'accounting_start_date' | 'address' | 'agreement_number' | 'archived' | 'backend_id' | 'bank_account' | 'bank_name' | 'billing_price_estimate' | 'blocked' | 'call_managing_organization_uuid' | 'contact_details' | 'country' | 'country_name' | 'created' | 'customer_credit' | 'customer_unallocated_credit' | 'default_tax_percent' | 'display_name' | 'domain' | 'email' | 'homepage' | 'image' | 'is_service_provider' | 'latitude' | 'longitude' | 'max_service_accounts' | 'name' | 'native_name' | 'organization_groups' | 'payment_profiles' | 'phone_number' | 'postal' | 'projects_count' | 'registration_code' | 'service_provider' | 'service_provider_uuid' | 'slug' | 'sponsor_number' | 'url' | 'users_count' | 'uuid' | 'vat_code'>;
15765
+ field?: Array<'abbreviation' | 'access_subnets' | 'accounting_start_date' | 'address' | 'agreement_number' | 'archived' | 'backend_id' | 'bank_account' | 'bank_name' | 'billing_price_estimate' | 'blocked' | 'call_managing_organization_uuid' | 'contact_details' | 'country' | 'country_name' | 'created' | 'customer_credit' | 'customer_unallocated_credit' | 'default_tax_percent' | 'display_name' | 'domain' | 'email' | 'homepage' | 'image' | 'is_service_provider' | 'latitude' | 'longitude' | 'max_service_accounts' | 'name' | 'native_name' | 'payment_profiles' | 'phone_number' | 'postal' | 'projects_count' | 'registration_code' | 'service_provider' | 'service_provider_uuid' | 'slug' | 'sponsor_number' | 'url' | 'uuid' | 'vat_code'>;
15612
15766
  };
15613
15767
  url: '/api/customers/{uuid}/';
15614
15768
  };
@@ -25077,6 +25231,7 @@ export type MarketplaceRobotAccountsListData = {
25077
25231
  */
25078
25232
  created?: string;
25079
25233
  customer_uuid?: string;
25234
+ field?: Array<'backend_id' | 'created' | 'customer_name' | 'customer_uuid' | 'description' | 'error_message' | 'error_traceback' | 'fingerprints' | 'keys' | 'modified' | 'offering_customer_uuid' | 'offering_plugin_options' | 'project_name' | 'project_uuid' | 'resource' | 'resource_name' | 'resource_uuid' | 'responsible_user' | 'state' | 'type' | 'url' | 'user_keys' | 'username' | 'users' | 'uuid'>;
25080
25235
  /**
25081
25236
  * Modified after
25082
25237
  */
@@ -25168,7 +25323,9 @@ export type MarketplaceRobotAccountsRetrieveData = {
25168
25323
  path: {
25169
25324
  uuid: string;
25170
25325
  };
25171
- query?: never;
25326
+ query?: {
25327
+ field?: Array<'backend_id' | 'created' | 'customer_name' | 'customer_uuid' | 'description' | 'error_message' | 'error_traceback' | 'fingerprints' | 'keys' | 'modified' | 'offering_customer_uuid' | 'offering_plugin_options' | 'project_name' | 'project_uuid' | 'resource' | 'resource_name' | 'resource_uuid' | 'responsible_user' | 'state' | 'type' | 'url' | 'user_keys' | 'username' | 'users' | 'uuid'>;
25328
+ };
25172
25329
  url: '/api/marketplace-robot-accounts/{uuid}/';
25173
25330
  };
25174
25331
  export type MarketplaceRobotAccountsRetrieveResponses = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "7.7.5",
3
+ "version": "7.7.6-dev.1",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",