Skip to content

Commit 633006b

Browse files
Removed v4beta notices from Maintenance Policy (linode#889)
* Removed v4beta notices from Maintenance Policy fields/structs/methods * Address PR feedback
1 parent e201b62 commit 633006b

File tree

5 files changed

+1
-8
lines changed

5 files changed

+1
-8
lines changed

account_events.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ type Event struct {
5454
Duration float64 `json:"duration"`
5555

5656
// The maintenance policy configured by the user for the event.
57-
// NOTE: MaintenancePolicySet can only be used with v4beta.
5857
MaintenancePolicySet string `json:"maintenance_policy_set"`
5958

6059
// Describes the nature of the event (e.g., whether it is scheduled or emergency).

account_maintenance.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ type AccountMaintenance struct {
1515
Status string `json:"status"`
1616
Type string `json:"type"`
1717

18-
// NOTE: MaintenancePolicySet can only be used with v4beta.
1918
MaintenancePolicySet string `json:"maintenance_policy_set"`
2019

2120
Description string `json:"description"`

account_settings.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ type AccountSettings struct {
3535
InterfacesForNewLinodes InterfacesForNewLinodes `json:"interfaces_for_new_linodes"`
3636

3737
// The slug of the maintenance policy associated with the account.
38-
// NOTE: MaintenancePolicy can only be used with v4beta.
3938
MaintenancePolicy string `json:"maintenance_policy"`
4039
}
4140

@@ -52,7 +51,6 @@ type AccountSettingsUpdateOptions struct {
5251
InterfacesForNewLinodes *InterfacesForNewLinodes `json:"interfaces_for_new_linodes"`
5352

5453
// The slug of the maintenance policy to set the account to.
55-
// NOTE: MaintenancePolicy can only be used with v4beta.
5654
MaintenancePolicy *string `json:"maintenance_policy,omitempty"`
5755
}
5856

instances.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ type Instance struct {
7979
// Note: Linode interfaces may not currently be available to all users.
8080
InterfaceGeneration InterfaceGeneration `json:"interface_generation"`
8181

82-
// NOTE: MaintenancePolicy can only be used with v4beta.
8382
MaintenancePolicy string `json:"maintenance_policy"`
8483

8584
// NOTE: Locks can only be used with v4beta.
@@ -226,7 +225,6 @@ type InstanceCreateOptions struct {
226225

227226
IPv4 []string `json:"ipv4,omitempty"`
228227

229-
// NOTE: MaintenancePolicy can only be used with v4beta.
230228
MaintenancePolicy *string `json:"maintenance_policy,omitempty"`
231229
}
232230

@@ -248,7 +246,6 @@ type InstanceUpdateOptions struct {
248246
// Deprecated: group is a deprecated property denoting a group label for the Linode.
249247
Group *string `json:"group,omitempty"`
250248

251-
// NOTE: MaintenancePolicy can only be used with v4beta.
252249
MaintenancePolicy *string `json:"maintenance_policy,omitempty"`
253250
}
254251

maintenance_policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type MaintenancePolicy struct {
1313
IsDefault bool `json:"is_default"`
1414
}
1515

16-
// ListMaintenancePolicies can only be used with v4beta.
16+
// ListMaintenancePolicies lists all available maintenance policies that can be applied to Linodes.
1717
func (c *Client) ListMaintenancePolicies(ctx context.Context, opts *ListOptions) ([]MaintenancePolicy, error) {
1818
return getPaginatedResults[MaintenancePolicy](ctx, c, "maintenance/policies", opts)
1919
}

0 commit comments

Comments
 (0)