Skip to content

Commit a5fd4cc

Browse files
authored
feat(webhosting): add "protected" field to hosting (#1174)
1 parent 3ecdca1 commit a5fd4cc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/clients/src/api/webhosting/v1alpha1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const unmarshalHosting = (data: unknown): Hosting => {
7878
platformHostname: data.platform_hostname,
7979
platformNumber: data.platform_number,
8080
projectId: data.project_id,
81+
protected: data.protected,
8182
region: data.region,
8283
status: data.status,
8384
tags: data.tags,
@@ -269,5 +270,6 @@ export const marshalUpdateHostingRequest = (
269270
email: request.email,
270271
offer_id: request.offerId,
271272
option_ids: request.optionIds,
273+
protected: request.protected,
272274
tags: request.tags,
273275
})

packages/clients/src/api/webhosting/v1alpha1/types.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ export interface Hosting {
157157
ipv4: string
158158
/** IPv6 address of the hosting's host server. */
159159
ipv6: string
160+
/** Whether the hosting is protected or not. */
161+
protected: boolean
160162
/** Region where the Web Hosting plan is hosted. */
161163
region: Region
162164
}
@@ -392,4 +394,6 @@ export type UpdateHostingRequest = {
392394
optionIds?: string[]
393395
/** ID of the new offer for the Web Hosting plan. */
394396
offerId?: string
397+
/** Whether the hosting is protected or not. */
398+
protected?: boolean
395399
}

0 commit comments

Comments
 (0)