diff --git a/linode_api4/groups/linode.py b/linode_api4/groups/linode.py index aedad107b..4c4dbfdbf 100644 --- a/linode_api4/groups/linode.py +++ b/linode_api4/groups/linode.py @@ -299,6 +299,8 @@ def instance_create( :type placement_group: Union[InstancePlacementGroupAssignment, PlacementGroup, Dict[str, Any], int] :param maintenance_policy: The slug of the maintenance policy to apply during maintenance. If not provided, the default policy (linode/migrate) will be applied. + NOTE: This field is in beta and may only + function if base_url is set to `https://api.linode.com/v4beta`. :type maintenance_policy: str :returns: A new Instance object, or a tuple containing the new Instance and diff --git a/linode_api4/groups/maintenance.py b/linode_api4/groups/maintenance.py index 00f4634c1..7c809b5a2 100644 --- a/linode_api4/groups/maintenance.py +++ b/linode_api4/groups/maintenance.py @@ -9,6 +9,8 @@ class MaintenanceGroup(Group): def maintenance_policies(self): """ + .. note:: This endpoint is in beta. This will only function if base_url is set to `https://api.linode.com/v4beta`. + Returns a collection of MaintenancePolicy objects representing available maintenance policies that can be applied to Linodes diff --git a/linode_api4/groups/monitor.py b/linode_api4/groups/monitor.py index 14b5617c4..2dbfd2285 100644 --- a/linode_api4/groups/monitor.py +++ b/linode_api4/groups/monitor.py @@ -3,9 +3,7 @@ ] from typing import Any, Optional -from linode_api4 import ( - PaginatedList, -) +from linode_api4 import PaginatedList from linode_api4.errors import UnexpectedResponseError from linode_api4.groups import Group from linode_api4.objects import ( diff --git a/linode_api4/objects/account.py b/linode_api4/objects/account.py index 8a60fc1bc..2ad1b6482 100644 --- a/linode_api4/objects/account.py +++ b/linode_api4/objects/account.py @@ -198,7 +198,9 @@ class AccountSettings(Base): ), "object_storage": Property(), "backups_enabled": Property(mutable=True), - "maintenance_policy": Property(mutable=True), + "maintenance_policy": Property( + mutable=True + ), # Note: This field is only available when using v4beta. } @@ -227,7 +229,7 @@ class Event(Base): "duration": Property(), "secondary_entity": Property(), "message": Property(), - "maintenance_policy_set": Property(), + "maintenance_policy_set": Property(), # Note: This field is only available when using v4beta. "description": Property(), "source": Property(), "not_before": Property(is_datetime=True), diff --git a/linode_api4/objects/linode.py b/linode_api4/objects/linode.py index 78f776723..2d051fb44 100644 --- a/linode_api4/objects/linode.py +++ b/linode_api4/objects/linode.py @@ -686,7 +686,9 @@ class Instance(Base): "disk_encryption": Property(), "lke_cluster_id": Property(), "capabilities": Property(unordered=True), - "maintenance_policy": Property(mutable=True), + "maintenance_policy": Property( + mutable=True + ), # Note: This field is only available when using v4beta. } @property