Skip to content
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 lib/binarylane/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Account:
email (str): The email address registered for this account.
email_verified (bool): Whether this account has been verified. Un-verified accounts are subject to some
restrictions.
two_factor_authentication_enabled (bool): Whether this account has enabled two factor authentication.
two_factor_authentication_enabled (bool): Whether this account has enabled app-based two factor authentication.
status (AccountStatus): The status of this account.

| Value | Description |
Expand Down
10 changes: 10 additions & 0 deletions lib/binarylane/models/create_server_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class CreateServerRequest:
Options.daily_backups will override this value if provided. Setting this to false has no effect.
ipv6 (Union[Unset, None, bool]): If true this will enable IPv6 for this server.
vpc_id (Union[Unset, None, int]): Leave null to use default (public) network for the selected region.
vpc_ipv4_address (Union[Unset, None, str]): If provided this will be the Ipv4 address for the server's private
VPC network adapter. If this is null an unused Ipv4 address will be assigned. This field is only valid when
VpcId is provided.
ssh_keys (Union[Unset, None, List[Union[int, str]]]): This may be either the SSH keys Ids or fingerprints. If
this is null or not provided any SSH keys that have been marked as default will be deployed (if the operating
system supports SSH keys). Submit an empty array to disable deployment of default keys.
Expand All @@ -46,6 +49,7 @@ class CreateServerRequest:
backups: Union[Unset, None, bool] = UNSET
ipv6: Union[Unset, None, bool] = UNSET
vpc_id: Union[Unset, None, int] = UNSET
vpc_ipv4_address: Union[Unset, None, str] = UNSET
ssh_keys: Union[Unset, None, List[Union[int, str]]] = UNSET
options: Union[Unset, None, SizeOptionsRequest] = UNSET
licenses: Union[Unset, None, List[License]] = UNSET
Expand All @@ -65,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]:
backups = self.backups
ipv6 = self.ipv6
vpc_id = self.vpc_id
vpc_ipv4_address = self.vpc_ipv4_address
ssh_keys: Union[Unset, None, List[Union[int, str]]] = UNSET
if not isinstance(self.ssh_keys, Unset):
if self.ssh_keys is None:
Expand Down Expand Up @@ -114,6 +119,8 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["ipv6"] = ipv6
if vpc_id is not UNSET:
field_dict["vpc_id"] = vpc_id
if vpc_ipv4_address is not UNSET:
field_dict["vpc_ipv4_address"] = vpc_ipv4_address
if ssh_keys is not UNSET:
field_dict["ssh_keys"] = ssh_keys
if options is not UNSET:
Expand Down Expand Up @@ -149,6 +156,8 @@ def _parse_image(data: object) -> Union[int, str]:

vpc_id = d.pop("vpc_id", UNSET)

vpc_ipv4_address = d.pop("vpc_ipv4_address", UNSET)

ssh_keys = []
_ssh_keys = d.pop("ssh_keys", UNSET)
for ssh_keys_item_data in _ssh_keys or []:
Expand Down Expand Up @@ -190,6 +199,7 @@ def _parse_ssh_keys_item(data: object) -> Union[int, str]:
backups=backups,
ipv6=ipv6,
vpc_id=vpc_id,
vpc_ipv4_address=vpc_ipv4_address,
ssh_keys=ssh_keys,
options=options,
licenses=licenses,
Expand Down
10 changes: 10 additions & 0 deletions src/binarylane/console/commands/api/post_v2_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ def lookup_vpc_id(ref: str) -> Union[None, int]:
)
)

json_body.add(
PrimitiveAttribute(
"vpc_ipv4_address",
Union[Unset, None, str],
required=False,
option_name="vpc-ipv4-address",
description="""If provided this will be the Ipv4 address for the server's private VPC network adapter. If this is null an unused Ipv4 address will be assigned. This field is only valid when VpcId is provided.""",
)
)

json_body.add(
PrimitiveAttribute(
"ssh_keys",
Expand Down
Loading