Skip to content

refactor: generate index files #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/clients/src/api/account/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * as v2alpha1 from './v2alpha1'
export * as v2 from './v2'
export * as v2 from './v2/index.gen'
4 changes: 2 additions & 2 deletions packages/clients/src/api/account/v2/api.gen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import {
API,
API as ParentAPI,
enrichForPagination,
urlParams,
validatePathParam,
Expand Down Expand Up @@ -31,7 +31,7 @@ const jsonContentHeaders = {
*
* This API allows you to manage projects.
*/
export class AccountV2GenAPI extends API {
export class API extends ParentAPI {
/**
* Create project
*
Expand Down
13 changes: 13 additions & 0 deletions packages/clients/src/api/account/v2/index.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
export { API } from './api.gen'
export type {
CreateProjectRequest,
DeleteProjectRequest,
GetProjectRequest,
ListProjectsRequest,
ListProjectsRequestOrderBy,
ListProjectsResponse,
Project,
UpdateProjectRequest,
} from './types.gen'
2 changes: 0 additions & 2 deletions packages/clients/src/api/account/v2/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/clients/src/api/applesilicon/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * as v1alpha1 from './v1alpha1'
export * as v1alpha1 from './v1alpha1/index.gen'
4 changes: 2 additions & 2 deletions packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import {
API,
API as ParentAPI,
enrichForPagination,
urlParams,
validatePathParam,
Expand Down Expand Up @@ -64,7 +64,7 @@ const jsonContentHeaders = {
* Cisco in the U.S. and other countries and is used by Apple under license.
* Scaleway is not affiliated with Apple Inc.
*/
export class ApplesiliconV1Alpha1GenAPI extends API {
export class API extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: Zone[] = ['fr-par-3']

Expand Down
29 changes: 29 additions & 0 deletions packages/clients/src/api/applesilicon/v1alpha1/index.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
export { API } from './api.gen'
export * from './content.gen'
export type {
CreateServerRequest,
DeleteServerRequest,
GetOSRequest,
GetServerRequest,
GetServerTypeRequest,
ListOSRequest,
ListOSResponse,
ListServerTypesRequest,
ListServerTypesResponse,
ListServersRequest,
ListServersRequestOrderBy,
ListServersResponse,
OS,
RebootServerRequest,
ReinstallServerRequest,
Server,
ServerStatus,
ServerType,
ServerTypeCPU,
ServerTypeDisk,
ServerTypeMemory,
ServerTypeStock,
UpdateServerRequest,
} from './types.gen'
3 changes: 0 additions & 3 deletions packages/clients/src/api/applesilicon/v1alpha1/index.ts

This file was deleted.

6 changes: 3 additions & 3 deletions packages/clients/src/api/baremetal/v1/api.gen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import {
API,
API as ParentAPI,
enrichForPagination,
urlParams,
validatePathParam,
Expand Down Expand Up @@ -97,7 +97,7 @@ const jsonContentHeaders = {
*
* This API allows to manage your Bare metal server.
*/
export class BaremetalV1GenAPI extends API {
export class API extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: Zone[] = [
'fr-par-1',
Expand Down Expand Up @@ -732,7 +732,7 @@ export class BaremetalV1GenAPI extends API {
}

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

Expand Down
4 changes: 2 additions & 2 deletions packages/clients/src/api/baremetal/v1/api.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import {
tryAtIntervals,
} from '../../../internal/async/interval-retrier'
import type { WaitForOptions } from '../../../internal/async/interval-retrier'
import { BaremetalV1GenAPI } from './api.gen'
import { API } from './api.gen'
import { SERVER_INSTALL_TRANSIENT_STATUSES } from './content.gen'
import type { GetServerRequest, ServerInstall } from './types.gen'

export class BaremetalV1UtilsAPI extends BaremetalV1GenAPI {
export class BaremetalV1UtilsAPI extends API {
/**
* Waits for {@link ServerInstall} to be in a final state.
*
Expand Down
80 changes: 80 additions & 0 deletions packages/clients/src/api/baremetal/v1/index.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
export { API, PrivateNetworkAPI } from './api.gen'
export * from './content.gen'
export type {
AddOptionServerRequest,
BMCAccess,
CPU,
CreateServerRequest,
CreateServerRequestInstall,
DeleteOptionServerRequest,
DeleteServerRequest,
Disk,
GetBMCAccessRequest,
GetOSRequest,
GetOfferRequest,
GetOptionRequest,
GetServerMetricsRequest,
GetServerMetricsResponse,
GetServerRequest,
IP,
IPReverseStatus,
IPVersion,
InstallServerRequest,
ListOSRequest,
ListOSResponse,
ListOffersRequest,
ListOffersResponse,
ListOptionsRequest,
ListOptionsResponse,
ListServerEventsRequest,
ListServerEventsRequestOrderBy,
ListServerEventsResponse,
ListServerPrivateNetworksRequestOrderBy,
ListServerPrivateNetworksResponse,
ListServersRequest,
ListServersRequestOrderBy,
ListServersResponse,
ListSettingsRequest,
ListSettingsRequestOrderBy,
ListSettingsResponse,
Memory,
OS,
OSOSField,
Offer,
OfferOptionOffer,
OfferStock,
OfferSubscriptionPeriod,
Option,
PersistentMemory,
PrivateNetworkApiAddServerPrivateNetworkRequest,
PrivateNetworkApiDeleteServerPrivateNetworkRequest,
PrivateNetworkApiListServerPrivateNetworksRequest,
PrivateNetworkApiSetServerPrivateNetworksRequest,
RaidController,
RebootServerRequest,
Server,
ServerBootType,
ServerEvent,
ServerInstall,
ServerInstallStatus,
ServerOption,
ServerOptionOptionStatus,
ServerPingStatus,
ServerPrivateNetwork,
ServerPrivateNetworkStatus,
ServerRescueServer,
ServerStatus,
SetServerPrivateNetworksResponse,
Setting,
SettingType,
StartBMCAccessRequest,
StartServerRequest,
StopBMCAccessRequest,
StopServerRequest,
UpdateIPRequest,
UpdateServerRequest,
UpdateSettingRequest,
} from './types.gen'
export * as ValidationRules from './validation-rules.gen'
2 changes: 1 addition & 1 deletion packages/clients/src/api/baremetal/v1/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { BaremetalV1UtilsAPI as API } from './api.utils'
export { BaremetalPrivateNetworkV1GenAPI as PrivateNetworkAPI } from './api.gen'
export { PrivateNetworkAPI } from './api.gen'
export * from './content.gen'
export * from './types.gen'
export * as ValidationRules from './validation-rules.gen'
2 changes: 1 addition & 1 deletion packages/clients/src/api/container/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * as v1beta1 from './v1beta1'
export * as v1beta1 from './v1beta1/index.gen'
4 changes: 2 additions & 2 deletions packages/clients/src/api/container/v1beta1/api.gen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import {
API,
API as ParentAPI,
enrichForPagination,
resolveOneOf,
urlParams,
Expand Down Expand Up @@ -86,7 +86,7 @@ const jsonContentHeaders = {
*
* Serverless Containers API.
*/
export class ContainerV1Beta1GenAPI extends API {
export class API extends ParentAPI {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw']

Expand Down
62 changes: 62 additions & 0 deletions packages/clients/src/api/container/v1beta1/index.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
export { API } from './api.gen'
export * from './content.gen'
export type {
Container,
ContainerHttpOption,
ContainerPrivacy,
ContainerProtocol,
ContainerStatus,
CreateContainerRequest,
CreateCronRequest,
CreateDomainRequest,
CreateNamespaceRequest,
CreateTokenRequest,
Cron,
CronStatus,
DeleteContainerRequest,
DeleteCronRequest,
DeleteDomainRequest,
DeleteNamespaceRequest,
DeleteTokenRequest,
DeployContainerRequest,
Domain,
DomainStatus,
GetContainerRequest,
GetCronRequest,
GetDomainRequest,
GetNamespaceRequest,
GetTokenRequest,
IssueJWTRequest,
ListContainersRequest,
ListContainersRequestOrderBy,
ListContainersResponse,
ListCronsRequest,
ListCronsRequestOrderBy,
ListCronsResponse,
ListDomainsRequest,
ListDomainsRequestOrderBy,
ListDomainsResponse,
ListLogsRequest,
ListLogsRequestOrderBy,
ListLogsResponse,
ListNamespacesRequest,
ListNamespacesRequestOrderBy,
ListNamespacesResponse,
ListTokensRequest,
ListTokensRequestOrderBy,
ListTokensResponse,
Log,
LogStream,
Namespace,
NamespaceStatus,
NullValue,
Secret,
SecretHashedValue,
Token,
TokenStatus,
UpdateContainerRequest,
UpdateCronRequest,
UpdateNamespaceRequest,
} from './types.gen'
3 changes: 0 additions & 3 deletions packages/clients/src/api/container/v1beta1/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/clients/src/api/domain/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * as v2beta1 from './v2beta1'
export * as v2beta1 from './v2beta1/index.gen'
6 changes: 3 additions & 3 deletions packages/clients/src/api/domain/v2beta1/api.gen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import {
API,
API as ParentAPI,
enrichForPagination,
unmarshalScwFile,
urlParams,
Expand Down Expand Up @@ -164,7 +164,7 @@ const jsonContentHeaders = {
*
* Manage your DNS zones and records.
*/
export class DomainV2Beta1GenAPI extends API {
export class API extends ParentAPI {
protected pageOfListDNSZones = (request: Readonly<ListDNSZonesRequest>) =>
this.client.fetch<ListDNSZonesResponse>(
{
Expand Down Expand Up @@ -773,7 +773,7 @@ export class DomainV2Beta1GenAPI extends API {
*
* Manage your domains and contacts.
*/
export class DomainRegistrarV2Beta1GenAPI extends API {
export class RegistrarAPI extends ParentAPI {
protected pageOfListTasks = (
request: Readonly<RegistrarApiListTasksRequest>,
) =>
Expand Down
Loading