Skip to content

Commit 342c399

Browse files
committed
feat: update generated APIs
1 parent 54576e5 commit 342c399

File tree

5 files changed

+90
-1
lines changed

5 files changed

+90
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* This file is automatically generated
3+
* PLEASE DO NOT EDIT HERE
4+
*/
5+
6+
export * as S2sVpnv1alpha1 from './v1alpha1/index.gen'
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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 * from './marshalling.gen'
6+
export type {
7+
BgpSession,
8+
BgpSessionStatus,
9+
Connection,
10+
ConnectionCipher,
11+
ConnectionDhGroup,
12+
ConnectionEncryption,
13+
ConnectionInitiationPolicy,
14+
ConnectionIntegrity,
15+
ConnectionStatus,
16+
CreateConnectionRequest,
17+
CreateConnectionRequestBgpConfig,
18+
CreateConnectionRequestInitiationPolicy,
19+
CreateConnectionResponse,
20+
CreateCustomerGatewayRequest,
21+
CreateRoutingPolicyRequest,
22+
CreateVpnGatewayRequest,
23+
CreateVpnGatewayRequestPublicConfig,
24+
CustomerGateway,
25+
DeleteConnectionRequest,
26+
DeleteCustomerGatewayRequest,
27+
DeleteRoutingPolicyRequest,
28+
DeleteVpnGatewayRequest,
29+
DetachRoutingPolicyRequest,
30+
DisableRoutePropagationRequest,
31+
EnableRoutePropagationRequest,
32+
GatewayType,
33+
GetConnectionRequest,
34+
GetCustomerGatewayRequest,
35+
GetRoutingPolicyRequest,
36+
GetVpnGatewayRequest,
37+
ListConnectionsRequest,
38+
ListConnectionsRequestOrderBy,
39+
ListConnectionsResponse,
40+
ListCustomerGatewaysRequest,
41+
ListCustomerGatewaysRequestOrderBy,
42+
ListCustomerGatewaysResponse,
43+
ListRoutingPoliciesRequest,
44+
ListRoutingPoliciesRequestOrderBy,
45+
ListRoutingPoliciesResponse,
46+
ListVpnGatewaysRequest,
47+
ListVpnGatewaysRequestOrderBy,
48+
ListVpnGatewaysResponse,
49+
ListVpnGatewayTypesRequest,
50+
ListVpnGatewayTypesResponse,
51+
RenewConnectionPskRequest,
52+
RenewConnectionPskResponse,
53+
RoutingPolicy,
54+
SetRoutingPolicyRequest,
55+
TunnelStatus,
56+
UpdateConnectionRequest,
57+
UpdateCustomerGatewayRequest,
58+
UpdateRoutingPolicyRequest,
59+
UpdateVpnGatewayRequest,
60+
VpnGateway,
61+
VpnGatewayPrivateConfig,
62+
VpnGatewayPublicConfig,
63+
VpnGatewayStatus,
64+
} from './types.gen'
65+
export * as ValidationRules from './validation-rules.gen'

packages_generated/webhosting/src/v1/api.gen.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929
marshalFtpAccountApiCreateFtpAccountRequest,
3030
marshalHostingApiAddCustomDomainRequest,
3131
marshalHostingApiCreateHostingRequest,
32+
marshalHostingApiRemoveCustomDomainRequest,
3233
marshalHostingApiUpdateHostingRequest,
3334
marshalMailAccountApiChangeMailAccountPasswordRequest,
3435
marshalMailAccountApiCreateMailAccountRequest,
@@ -984,7 +985,12 @@ export class HostingAPI extends ParentAPI {
984985
) =>
985986
this.client.fetch<HostingSummary>(
986987
{
987-
body: '{}',
988+
body: JSON.stringify(
989+
marshalHostingApiRemoveCustomDomainRequest(
990+
request,
991+
this.client.settings,
992+
),
993+
),
988994
headers: jsonContentHeaders,
989995
method: 'POST',
990996
path: `/webhosting/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam('hostingId', request.hostingId)}/remove-custom-domain`,

packages_generated/webhosting/src/v1/marshalling.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import type {
4141
Hosting,
4242
HostingApiAddCustomDomainRequest,
4343
HostingApiCreateHostingRequest,
44+
HostingApiRemoveCustomDomainRequest,
4445
HostingApiUpdateHostingRequest,
4546
HostingDomain,
4647
HostingDomainCustomDomain,
@@ -985,6 +986,13 @@ export const marshalHostingApiCreateHostingRequest = (
985986
tags: request.tags,
986987
})
987988

989+
export const marshalHostingApiRemoveCustomDomainRequest = (
990+
request: HostingApiRemoveCustomDomainRequest,
991+
defaults: DefaultValues,
992+
): Record<string, unknown> => ({
993+
domain_name: request.domainName,
994+
})
995+
988996
export const marshalHostingApiUpdateHostingRequest = (
989997
request: HostingApiUpdateHostingRequest,
990998
defaults: DefaultValues,

packages_generated/webhosting/src/v1/types.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,10 @@ export type HostingApiRemoveCustomDomainRequest = {
14601460
* Hosting ID to which the custom domain is detached from.
14611461
*/
14621462
hostingId: string
1463+
/**
1464+
* The custom domain name to detach from the hosting.
1465+
*/
1466+
domainName: string
14631467
}
14641468

14651469
export type HostingApiResetHostingPasswordRequest = {

0 commit comments

Comments
 (0)