Skip to content

feat(instance): add commercialType to UpdateServerRequest #761

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 1 commit into from
Jul 5, 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
1 change: 1 addition & 0 deletions packages/clients/src/api/instance/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2101,6 +2101,7 @@ export const marshalUpdateServerRequest = (
): Record<string, unknown> => ({
boot_type: request.bootType,
bootscript: request.bootscript,
commercial_type: request.commercialType,
dynamic_ip_required: request.dynamicIpRequired,
enable_ipv6: request.enableIpv6,
name: request.name,
Expand Down
12 changes: 12 additions & 0 deletions packages/clients/src/api/instance/v1/types.private.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,18 @@ export type UpdateServerRequest = {
placementGroup?: string | null
/** Instance private NICs. */
privateNics?: PrivateNIC[]
/**
* Set the commercial_type for this Instance. Warning: This field has some
* restrictions:
*
* - Cannot be changed if the Instance is not in `stopped` state.
* - Cannot be changed if the Instance is in a placement group.
* - Local storage requirements of the target commercial_types must be fulfilled
* (i.e. if an Instance has 80GB of local storage, it can be changed into a
* GP1-XS, which has a maximum of 150GB, but it cannot be changed into a
* DEV1-S, which has only 20GB).
*/
commercialType?: string
}

export type SetImageRequest = {
Expand Down