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: 0 additions & 2 deletions linode_api4/groups/linode.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ def instance_create(
:type network_helper: bool
: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
Expand Down
2 changes: 0 additions & 2 deletions linode_api4/groups/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ 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

Expand Down
6 changes: 2 additions & 4 deletions linode_api4/objects/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ class AccountSettings(Base):
"object_storage": Property(),
"backups_enabled": Property(mutable=True),
"interfaces_for_new_linodes": Property(mutable=True),
"maintenance_policy": Property(
mutable=True
), # Note: This field is only available when using v4beta.
"maintenance_policy": Property(mutable=True),
}


Expand Down Expand Up @@ -249,7 +247,7 @@ class Event(Base):
"duration": Property(),
"secondary_entity": Property(),
"message": Property(),
"maintenance_policy_set": Property(), # Note: This field is only available when using v4beta.
"maintenance_policy_set": Property(),
"description": Property(),
"source": Property(),
"not_before": Property(is_datetime=True),
Expand Down
4 changes: 1 addition & 3 deletions linode_api4/objects/linode.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,7 @@ class Instance(Base):
"lke_cluster_id": Property(),
"capabilities": Property(unordered=True),
"interface_generation": Property(),
"maintenance_policy": Property(
mutable=True
), # Note: This field is only available when using v4beta.
"maintenance_policy": Property(mutable=True),
"locks": Property(unordered=True),
}

Expand Down
3 changes: 1 addition & 2 deletions test/integration/models/linode/test_linode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,7 @@ def test_delete_interface_containing_vpc(

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

policies = client.maintenance.maintenance_policies()
Expand Down