Skip to content

Commit 4c2954b

Browse files
committed
feat: update
1 parent 8d8f0af commit 4c2954b

20 files changed

+201
-182
lines changed

packages/clients/src/api/baremetal/v1/marshalling.gen.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -572,16 +572,16 @@ export const marshalCreateServerRequest = (
572572
option_ids: request.optionIds,
573573
tags: request.tags,
574574
...resolveOneOf([
575-
{
576-
default: defaults.defaultOrganizationId,
577-
param: 'organization_id',
578-
value: request.organizationId,
579-
},
580575
{
581576
default: defaults.defaultProjectId,
582577
param: 'project_id',
583578
value: request.projectId,
584579
},
580+
{
581+
default: defaults.defaultOrganizationId,
582+
param: 'organization_id',
583+
value: request.organizationId,
584+
},
585585
]),
586586
})
587587

packages/clients/src/api/baremetal/v1/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,14 @@ export type CreateServerRequest = {
428428
/**
429429
* @deprecated Organization ID with which the server will be created.
430430
*
431-
* One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId'
431+
* One-of ('projectIdentifier'): at most one of 'projectId', 'organizationId'
432432
* could be set.
433433
*/
434434
organizationId?: string
435435
/**
436436
* Project ID with which the server will be created.
437437
*
438-
* One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId'
438+
* One-of ('projectIdentifier'): at most one of 'projectId', 'organizationId'
439439
* could be set.
440440
*/
441441
projectId?: string

packages/clients/src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export * as Instance from './instance'
1414
export * as IOT from './iot'
1515
export * as IPAM from './ipam'
1616
export * as IPFS from './ipfs'
17+
export * as Jobs from './jobs'
1718
export * as K8S from './k8s'
1819
export * as LB from './lb'
1920
export * as Marketplace from './marketplace'

packages/clients/src/api/instance/v1/marshalling.gen.ts

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,16 +1555,16 @@ const marshalVolumeTemplate = (
15551555
size: request.size,
15561556
volume_type: request.volumeType,
15571557
...resolveOneOf([
1558-
{
1559-
default: defaults.defaultOrganizationId,
1560-
param: 'organization',
1561-
value: request.organization,
1562-
},
15631558
{
15641559
default: defaults.defaultProjectId,
15651560
param: 'project',
15661561
value: request.project,
15671562
},
1563+
{
1564+
default: defaults.defaultOrganizationId,
1565+
param: 'organization',
1566+
value: request.organization,
1567+
},
15681568
]),
15691569
})
15701570

@@ -1589,16 +1589,16 @@ export const marshalCreateImageRequest = (
15891589
root_volume: request.rootVolume,
15901590
tags: request.tags,
15911591
...resolveOneOf([
1592-
{
1593-
default: defaults.defaultOrganizationId,
1594-
param: 'organization',
1595-
value: request.organization,
1596-
},
15971592
{
15981593
default: defaults.defaultProjectId,
15991594
param: 'project',
16001595
value: request.project,
16011596
},
1597+
{
1598+
default: defaults.defaultOrganizationId,
1599+
param: 'organization',
1600+
value: request.organization,
1601+
},
16021602
]),
16031603
})
16041604

@@ -1610,16 +1610,16 @@ export const marshalCreateIpRequest = (
16101610
tags: request.tags,
16111611
type: request.type,
16121612
...resolveOneOf([
1613-
{
1614-
default: defaults.defaultOrganizationId,
1615-
param: 'organization',
1616-
value: request.organization,
1617-
},
16181613
{
16191614
default: defaults.defaultProjectId,
16201615
param: 'project',
16211616
value: request.project,
16221617
},
1618+
{
1619+
default: defaults.defaultOrganizationId,
1620+
param: 'organization',
1621+
value: request.organization,
1622+
},
16231623
]),
16241624
})
16251625

@@ -1632,16 +1632,16 @@ export const marshalCreatePlacementGroupRequest = (
16321632
policy_type: request.policyType,
16331633
tags: request.tags,
16341634
...resolveOneOf([
1635-
{
1636-
default: defaults.defaultOrganizationId,
1637-
param: 'organization',
1638-
value: request.organization,
1639-
},
16401635
{
16411636
default: defaults.defaultProjectId,
16421637
param: 'project',
16431638
value: request.project,
16441639
},
1640+
{
1641+
default: defaults.defaultOrganizationId,
1642+
param: 'organization',
1643+
value: request.organization,
1644+
},
16451645
]),
16461646
})
16471647

@@ -1666,16 +1666,16 @@ export const marshalCreateSecurityGroupRequest = (
16661666
stateful: request.stateful,
16671667
tags: request.tags,
16681668
...resolveOneOf([
1669-
{
1670-
default: defaults.defaultOrganizationId,
1671-
param: 'organization',
1672-
value: request.organization,
1673-
},
16741669
{
16751670
default: defaults.defaultProjectId,
16761671
param: 'project',
16771672
value: request.project,
16781673
},
1674+
{
1675+
default: defaults.defaultOrganizationId,
1676+
param: 'organization',
1677+
value: request.organization,
1678+
},
16791679
]),
16801680
...resolveOneOf([
16811681
{ param: 'organization_default', value: request.organizationDefault },
@@ -1739,16 +1739,16 @@ export const marshalCreateServerRequest = (
17391739
)
17401740
: undefined,
17411741
...resolveOneOf([
1742-
{
1743-
default: defaults.defaultOrganizationId,
1744-
param: 'organization',
1745-
value: request.organization,
1746-
},
17471742
{
17481743
default: defaults.defaultProjectId,
17491744
param: 'project',
17501745
value: request.project,
17511746
},
1747+
{
1748+
default: defaults.defaultOrganizationId,
1749+
param: 'organization',
1750+
value: request.organization,
1751+
},
17521752
]),
17531753
})
17541754

@@ -1764,16 +1764,16 @@ export const marshalCreateSnapshotRequest = (
17641764
volume_id: request.volumeId,
17651765
volume_type: request.volumeType,
17661766
...resolveOneOf([
1767-
{
1768-
default: defaults.defaultOrganizationId,
1769-
param: 'organization',
1770-
value: request.organization,
1771-
},
17721767
{
17731768
default: defaults.defaultProjectId,
17741769
param: 'project',
17751770
value: request.project,
17761771
},
1772+
{
1773+
default: defaults.defaultOrganizationId,
1774+
param: 'organization',
1775+
value: request.organization,
1776+
},
17771777
]),
17781778
})
17791779

@@ -1785,16 +1785,16 @@ export const marshalCreateVolumeRequest = (
17851785
tags: request.tags,
17861786
volume_type: request.volumeType,
17871787
...resolveOneOf([
1788-
{
1789-
default: defaults.defaultOrganizationId,
1790-
param: 'organization',
1791-
value: request.organization,
1792-
},
17931788
{
17941789
default: defaults.defaultProjectId,
17951790
param: 'project',
17961791
value: request.project,
17971792
},
1793+
{
1794+
default: defaults.defaultOrganizationId,
1795+
param: 'organization',
1796+
value: request.organization,
1797+
},
17981798
]),
17991799
...resolveOneOf<number | string>([
18001800
{ param: 'size', value: request.size },

packages/clients/src/api/instance/v1/types.gen.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,14 @@ export interface VolumeTemplate {
381381
/**
382382
* @deprecated Organization ID of the volume.
383383
*
384-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
384+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
385385
* could be set.
386386
*/
387387
organization?: string
388388
/**
389389
* Project ID of the volume.
390390
*
391-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
391+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
392392
* could be set.
393393
*/
394394
project?: string
@@ -758,14 +758,14 @@ export type CreateImageRequest = {
758758
/**
759759
* @deprecated Organization ID of the image.
760760
*
761-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
761+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
762762
* could be set.
763763
*/
764764
organization?: string
765765
/**
766766
* Project ID of the image.
767767
*
768-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
768+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
769769
* could be set.
770770
*/
771771
project?: string
@@ -785,14 +785,14 @@ export type CreateIpRequest = {
785785
/**
786786
* @deprecated Organization ID in which the IP is reserved.
787787
*
788-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
788+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
789789
* could be set.
790790
*/
791791
organization?: string
792792
/**
793793
* Project ID in which the IP is reserved.
794794
*
795-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
795+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
796796
* could be set.
797797
*/
798798
project?: string
@@ -816,14 +816,14 @@ export type CreatePlacementGroupRequest = {
816816
/**
817817
* @deprecated Organization ID of the placement group.
818818
*
819-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
819+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
820820
* could be set.
821821
*/
822822
organization?: string
823823
/**
824824
* Project ID of the placement group.
825825
*
826-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
826+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
827827
* could be set.
828828
*/
829829
project?: string
@@ -866,14 +866,14 @@ export type CreateSecurityGroupRequest = {
866866
/**
867867
* @deprecated Organization ID the security group belongs to.
868868
*
869-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
869+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
870870
* could be set.
871871
*/
872872
organization?: string
873873
/**
874874
* Project ID the security group belong to.
875875
*
876-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
876+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
877877
* could be set.
878878
*/
879879
project?: string
@@ -963,14 +963,14 @@ export type CreateServerRequest = {
963963
/**
964964
* @deprecated Instance Organization ID.
965965
*
966-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
966+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
967967
* could be set.
968968
*/
969969
organization?: string
970970
/**
971971
* Instance Project ID.
972972
*
973-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
973+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
974974
* could be set.
975975
*/
976976
project?: string
@@ -998,14 +998,14 @@ export type CreateSnapshotRequest = {
998998
/**
999999
* @deprecated Organization ID of the snapshot.
10001000
*
1001-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
1001+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
10021002
* could be set.
10031003
*/
10041004
organization?: string
10051005
/**
10061006
* Project ID of the snapshot.
10071007
*
1008-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
1008+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
10091009
* could be set.
10101010
*/
10111011
project?: string
@@ -1035,14 +1035,14 @@ export type CreateVolumeRequest = {
10351035
/**
10361036
* @deprecated Volume Organization ID.
10371037
*
1038-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
1038+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
10391039
* could be set.
10401040
*/
10411041
organization?: string
10421042
/**
10431043
* Volume Project ID.
10441044
*
1045-
* One-of ('projectIdentifier'): at most one of 'organization', 'project'
1045+
* One-of ('projectIdentifier'): at most one of 'project', 'organization'
10461046
* could be set.
10471047
*/
10481048
project?: string
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * as v1alpha1 from './v1alpha1/index.gen'

packages/clients/src/api/jobs/v1alpha1/api.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class API extends ParentAPI {
9696
request.region ?? this.client.settings.defaultRegion,
9797
)}/job-definitions`,
9898
urlParams: urlParams(
99-
['order_by', request.orderBy ?? 'created_at_asc'],
99+
['order_by', request.orderBy],
100100
['page', request.page],
101101
[
102102
'page_size',
@@ -199,7 +199,7 @@ export class API extends ParentAPI {
199199
)}/job-runs`,
200200
urlParams: urlParams(
201201
['job_definition_id', request.jobDefinitionId],
202-
['order_by', request.orderBy ?? 'created_at_asc'],
202+
['order_by', request.orderBy],
203203
['page', request.page],
204204
[
205205
'page_size',

0 commit comments

Comments
 (0)