Skip to content

Commit ce2a79f

Browse files
Removed v4beta notices from Maintenance Policy (#643)
* Removed v4beta notices from Maintenance Policy fields/methods * Fix lint
1 parent 365c7d5 commit ce2a79f

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

linode_api4/groups/linode.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,6 @@ def instance_create(
335335
:type network_helper: bool
336336
:param maintenance_policy: The slug of the maintenance policy to apply during maintenance.
337337
If not provided, the default policy (linode/migrate) will be applied.
338-
NOTE: This field is in beta and may only
339-
function if base_url is set to `https://api.linode.com/v4beta`.
340338
:type maintenance_policy: str
341339
342340
:returns: A new Instance object, or a tuple containing the new Instance and

linode_api4/groups/maintenance.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ 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-
1412
Returns a collection of MaintenancePolicy objects representing
1513
available maintenance policies that can be applied to Linodes
1614

linode_api4/objects/account.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,7 @@ class AccountSettings(Base):
218218
"object_storage": Property(),
219219
"backups_enabled": Property(mutable=True),
220220
"interfaces_for_new_linodes": Property(mutable=True),
221-
"maintenance_policy": Property(
222-
mutable=True
223-
), # Note: This field is only available when using v4beta.
221+
"maintenance_policy": Property(mutable=True),
224222
}
225223

226224

@@ -249,7 +247,7 @@ class Event(Base):
249247
"duration": Property(),
250248
"secondary_entity": Property(),
251249
"message": Property(),
252-
"maintenance_policy_set": Property(), # Note: This field is only available when using v4beta.
250+
"maintenance_policy_set": Property(),
253251
"description": Property(),
254252
"source": Property(),
255253
"not_before": Property(is_datetime=True),

linode_api4/objects/linode.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,7 @@ class Instance(Base):
800800
"lke_cluster_id": Property(),
801801
"capabilities": Property(unordered=True),
802802
"interface_generation": Property(),
803-
"maintenance_policy": Property(
804-
mutable=True
805-
), # Note: This field is only available when using v4beta.
803+
"maintenance_policy": Property(mutable=True),
806804
"locks": Property(unordered=True),
807805
}
808806

test/integration/models/linode/test_linode.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,7 @@ def test_delete_interface_containing_vpc(
11011101

11021102
def test_create_linode_with_maintenance_policy(test_linode_client):
11031103
client = test_linode_client
1104-
# TODO: Replace with random region after GA
1105-
region = "ap-south"
1104+
region = get_region(client, {"Linodes", "Cloud Firewall"}, site_type="core")
11061105
label = get_test_label()
11071106

11081107
policies = client.maintenance.maintenance_policies()

0 commit comments

Comments
 (0)