Skip to content

Commit 13537b9

Browse files
refactor: generate index files (#355)
Co-authored-by: Vincent Germain <vgermain@scaleway.com>
1 parent e8bfe3e commit 13537b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1544
-129
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * as v2alpha1 from './v2alpha1'
2-
export * as v2 from './v2'
2+
export * as v2 from './v2/index.gen'

packages/clients/src/api/account/v2/api.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import {
4-
API,
4+
API as ParentAPI,
55
enrichForPagination,
66
urlParams,
77
validatePathParam,
@@ -31,7 +31,7 @@ const jsonContentHeaders = {
3131
*
3232
* This API allows you to manage projects.
3333
*/
34-
export class AccountV2GenAPI extends API {
34+
export class API extends ParentAPI {
3535
/**
3636
* Create project
3737
*
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
export { API } from './api.gen'
4+
export type {
5+
CreateProjectRequest,
6+
DeleteProjectRequest,
7+
GetProjectRequest,
8+
ListProjectsRequest,
9+
ListProjectsRequestOrderBy,
10+
ListProjectsResponse,
11+
Project,
12+
UpdateProjectRequest,
13+
} from './types.gen'

packages/clients/src/api/account/v2/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * as v1alpha1 from './v1alpha1'
1+
export * as v1alpha1 from './v1alpha1/index.gen'

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import {
4-
API,
4+
API as ParentAPI,
55
enrichForPagination,
66
urlParams,
77
validatePathParam,
@@ -64,7 +64,7 @@ const jsonContentHeaders = {
6464
* Cisco in the U.S. and other countries and is used by Apple under license.
6565
* Scaleway is not affiliated with Apple Inc.
6666
*/
67-
export class ApplesiliconV1Alpha1GenAPI extends API {
67+
export class API extends ParentAPI {
6868
/** Lists the available zones of the API. */
6969
public static readonly LOCALITIES: Zone[] = ['fr-par-3']
7070

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
export { API } from './api.gen'
4+
export * from './content.gen'
5+
export type {
6+
CreateServerRequest,
7+
DeleteServerRequest,
8+
GetOSRequest,
9+
GetServerRequest,
10+
GetServerTypeRequest,
11+
ListOSRequest,
12+
ListOSResponse,
13+
ListServerTypesRequest,
14+
ListServerTypesResponse,
15+
ListServersRequest,
16+
ListServersRequestOrderBy,
17+
ListServersResponse,
18+
OS,
19+
RebootServerRequest,
20+
ReinstallServerRequest,
21+
Server,
22+
ServerStatus,
23+
ServerType,
24+
ServerTypeCPU,
25+
ServerTypeDisk,
26+
ServerTypeMemory,
27+
ServerTypeStock,
28+
UpdateServerRequest,
29+
} from './types.gen'

packages/clients/src/api/applesilicon/v1alpha1/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import {
4-
API,
4+
API as ParentAPI,
55
enrichForPagination,
66
urlParams,
77
validatePathParam,
@@ -97,7 +97,7 @@ const jsonContentHeaders = {
9797
*
9898
* This API allows to manage your Bare metal server.
9999
*/
100-
export class BaremetalV1GenAPI extends API {
100+
export class API extends ParentAPI {
101101
/** Lists the available zones of the API. */
102102
public static readonly LOCALITIES: Zone[] = [
103103
'fr-par-1',
@@ -732,7 +732,7 @@ export class BaremetalV1GenAPI extends API {
732732
}
733733

734734
/** Elastic Metal Private Network API. */
735-
export class BaremetalPrivateNetworkV1GenAPI extends API {
735+
export class PrivateNetworkAPI extends ParentAPI {
736736
/** Lists the available zones of the API. */
737737
public static readonly LOCALITIES: Zone[] = ['fr-par-2']
738738

packages/clients/src/api/baremetal/v1/api.utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import {
33
tryAtIntervals,
44
} from '../../../internal/async/interval-retrier'
55
import type { WaitForOptions } from '../../../internal/async/interval-retrier'
6-
import { BaremetalV1GenAPI } from './api.gen'
6+
import { API } from './api.gen'
77
import { SERVER_INSTALL_TRANSIENT_STATUSES } from './content.gen'
88
import type { GetServerRequest, ServerInstall } from './types.gen'
99

10-
export class BaremetalV1UtilsAPI extends BaremetalV1GenAPI {
10+
export class BaremetalV1UtilsAPI extends API {
1111
/**
1212
* Waits for {@link ServerInstall} to be in a final state.
1313
*
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
export { API, PrivateNetworkAPI } from './api.gen'
4+
export * from './content.gen'
5+
export type {
6+
AddOptionServerRequest,
7+
BMCAccess,
8+
CPU,
9+
CreateServerRequest,
10+
CreateServerRequestInstall,
11+
DeleteOptionServerRequest,
12+
DeleteServerRequest,
13+
Disk,
14+
GetBMCAccessRequest,
15+
GetOSRequest,
16+
GetOfferRequest,
17+
GetOptionRequest,
18+
GetServerMetricsRequest,
19+
GetServerMetricsResponse,
20+
GetServerRequest,
21+
IP,
22+
IPReverseStatus,
23+
IPVersion,
24+
InstallServerRequest,
25+
ListOSRequest,
26+
ListOSResponse,
27+
ListOffersRequest,
28+
ListOffersResponse,
29+
ListOptionsRequest,
30+
ListOptionsResponse,
31+
ListServerEventsRequest,
32+
ListServerEventsRequestOrderBy,
33+
ListServerEventsResponse,
34+
ListServerPrivateNetworksRequestOrderBy,
35+
ListServerPrivateNetworksResponse,
36+
ListServersRequest,
37+
ListServersRequestOrderBy,
38+
ListServersResponse,
39+
ListSettingsRequest,
40+
ListSettingsRequestOrderBy,
41+
ListSettingsResponse,
42+
Memory,
43+
OS,
44+
OSOSField,
45+
Offer,
46+
OfferOptionOffer,
47+
OfferStock,
48+
OfferSubscriptionPeriod,
49+
Option,
50+
PersistentMemory,
51+
PrivateNetworkApiAddServerPrivateNetworkRequest,
52+
PrivateNetworkApiDeleteServerPrivateNetworkRequest,
53+
PrivateNetworkApiListServerPrivateNetworksRequest,
54+
PrivateNetworkApiSetServerPrivateNetworksRequest,
55+
RaidController,
56+
RebootServerRequest,
57+
Server,
58+
ServerBootType,
59+
ServerEvent,
60+
ServerInstall,
61+
ServerInstallStatus,
62+
ServerOption,
63+
ServerOptionOptionStatus,
64+
ServerPingStatus,
65+
ServerPrivateNetwork,
66+
ServerPrivateNetworkStatus,
67+
ServerRescueServer,
68+
ServerStatus,
69+
SetServerPrivateNetworksResponse,
70+
Setting,
71+
SettingType,
72+
StartBMCAccessRequest,
73+
StartServerRequest,
74+
StopBMCAccessRequest,
75+
StopServerRequest,
76+
UpdateIPRequest,
77+
UpdateServerRequest,
78+
UpdateSettingRequest,
79+
} from './types.gen'
80+
export * as ValidationRules from './validation-rules.gen'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { BaremetalV1UtilsAPI as API } from './api.utils'
2-
export { BaremetalPrivateNetworkV1GenAPI as PrivateNetworkAPI } from './api.gen'
2+
export { PrivateNetworkAPI } from './api.gen'
33
export * from './content.gen'
44
export * from './types.gen'
55
export * as ValidationRules from './validation-rules.gen'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * as v1beta1 from './v1beta1'
1+
export * as v1beta1 from './v1beta1/index.gen'

packages/clients/src/api/container/v1beta1/api.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import {
4-
API,
4+
API as ParentAPI,
55
enrichForPagination,
66
resolveOneOf,
77
urlParams,
@@ -86,7 +86,7 @@ const jsonContentHeaders = {
8686
*
8787
* Serverless Containers API.
8888
*/
89-
export class ContainerV1Beta1GenAPI extends API {
89+
export class API extends ParentAPI {
9090
/** Lists the available regions of the API. */
9191
public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw']
9292

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
export { API } from './api.gen'
4+
export * from './content.gen'
5+
export type {
6+
Container,
7+
ContainerHttpOption,
8+
ContainerPrivacy,
9+
ContainerProtocol,
10+
ContainerStatus,
11+
CreateContainerRequest,
12+
CreateCronRequest,
13+
CreateDomainRequest,
14+
CreateNamespaceRequest,
15+
CreateTokenRequest,
16+
Cron,
17+
CronStatus,
18+
DeleteContainerRequest,
19+
DeleteCronRequest,
20+
DeleteDomainRequest,
21+
DeleteNamespaceRequest,
22+
DeleteTokenRequest,
23+
DeployContainerRequest,
24+
Domain,
25+
DomainStatus,
26+
GetContainerRequest,
27+
GetCronRequest,
28+
GetDomainRequest,
29+
GetNamespaceRequest,
30+
GetTokenRequest,
31+
IssueJWTRequest,
32+
ListContainersRequest,
33+
ListContainersRequestOrderBy,
34+
ListContainersResponse,
35+
ListCronsRequest,
36+
ListCronsRequestOrderBy,
37+
ListCronsResponse,
38+
ListDomainsRequest,
39+
ListDomainsRequestOrderBy,
40+
ListDomainsResponse,
41+
ListLogsRequest,
42+
ListLogsRequestOrderBy,
43+
ListLogsResponse,
44+
ListNamespacesRequest,
45+
ListNamespacesRequestOrderBy,
46+
ListNamespacesResponse,
47+
ListTokensRequest,
48+
ListTokensRequestOrderBy,
49+
ListTokensResponse,
50+
Log,
51+
LogStream,
52+
Namespace,
53+
NamespaceStatus,
54+
NullValue,
55+
Secret,
56+
SecretHashedValue,
57+
Token,
58+
TokenStatus,
59+
UpdateContainerRequest,
60+
UpdateCronRequest,
61+
UpdateNamespaceRequest,
62+
} from './types.gen'

packages/clients/src/api/container/v1beta1/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * as v2beta1 from './v2beta1'
1+
export * as v2beta1 from './v2beta1/index.gen'

packages/clients/src/api/domain/v2beta1/api.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import {
4-
API,
4+
API as ParentAPI,
55
enrichForPagination,
66
unmarshalScwFile,
77
urlParams,
@@ -164,7 +164,7 @@ const jsonContentHeaders = {
164164
*
165165
* Manage your DNS zones and records.
166166
*/
167-
export class DomainV2Beta1GenAPI extends API {
167+
export class API extends ParentAPI {
168168
protected pageOfListDNSZones = (request: Readonly<ListDNSZonesRequest>) =>
169169
this.client.fetch<ListDNSZonesResponse>(
170170
{
@@ -773,7 +773,7 @@ export class DomainV2Beta1GenAPI extends API {
773773
*
774774
* Manage your domains and contacts.
775775
*/
776-
export class DomainRegistrarV2Beta1GenAPI extends API {
776+
export class RegistrarAPI extends ParentAPI {
777777
protected pageOfListTasks = (
778778
request: Readonly<RegistrarApiListTasksRequest>,
779779
) =>

0 commit comments

Comments
 (0)