Skip to content

Commit 1b7c8b6

Browse files
Added v4beta notices
1 parent 3235711 commit 1b7c8b6

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

linode_api4/groups/linode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ def instance_create(
299299
:type placement_group: Union[InstancePlacementGroupAssignment, PlacementGroup, Dict[str, Any], int]
300300
:param maintenance_policy: The slug of the maintenance policy to apply during maintenance.
301301
If not provided, the default policy (linode/migrate) will be applied.
302+
NOTE: This field is in beta and may only
303+
function if base_url is set to `https://api.linode.com/v4beta`.
302304
:type maintenance_policy: str
303305
304306
:returns: A new Instance object, or a tuple containing the new Instance and

linode_api4/groups/maintenance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class MaintenanceGroup(Group):
99

1010
def maintenance_policies(self):
1111
"""
12+
.. note:: This endpoint is in beta. This will only function if base_url is set to `https://api.linode.com/v4beta`.
13+
1214
Returns a collection of MaintenancePolicy objects representing
1315
available maintenance policies that can be applied to Linodes
1416

linode_api4/groups/monitor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
]
44
from typing import Any, Optional
55

6-
from linode_api4 import (
7-
PaginatedList,
8-
)
6+
from linode_api4 import PaginatedList
97
from linode_api4.errors import UnexpectedResponseError
108
from linode_api4.groups import Group
119
from linode_api4.objects import (

linode_api4/objects/account.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ class AccountSettings(Base):
198198
),
199199
"object_storage": Property(),
200200
"backups_enabled": Property(mutable=True),
201-
"maintenance_policy": Property(mutable=True),
201+
"maintenance_policy": Property(
202+
mutable=True
203+
), # Note: This field is only available when using v4beta.
202204
}
203205

204206

@@ -227,7 +229,7 @@ class Event(Base):
227229
"duration": Property(),
228230
"secondary_entity": Property(),
229231
"message": Property(),
230-
"maintenance_policy_set": Property(),
232+
"maintenance_policy_set": Property(), # Note: This field is only available when using v4beta.
231233
"description": Property(),
232234
"source": Property(),
233235
"not_before": Property(is_datetime=True),

linode_api4/objects/linode.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,9 @@ class Instance(Base):
686686
"disk_encryption": Property(),
687687
"lke_cluster_id": Property(),
688688
"capabilities": Property(unordered=True),
689-
"maintenance_policy": Property(mutable=True),
689+
"maintenance_policy": Property(
690+
mutable=True
691+
), # Note: This field is only available when using v4beta.
690692
}
691693

692694
@property

0 commit comments

Comments
 (0)