UpdateFilesystemSnapshotPolicyDetails

class oci.file_storage.models.UpdateFilesystemSnapshotPolicyDetails(**kwargs)

Bases: object

Details for updating the file system snapshot policy.

Methods

__init__(**kwargs) Initializes a new UpdateFilesystemSnapshotPolicyDetails object with values from keyword arguments.

Attributes

defined_tags Gets the defined_tags of this UpdateFilesystemSnapshotPolicyDetails.
display_name Gets the display_name of this UpdateFilesystemSnapshotPolicyDetails.
freeform_tags Gets the freeform_tags of this UpdateFilesystemSnapshotPolicyDetails.
policy_prefix Gets the policy_prefix of this UpdateFilesystemSnapshotPolicyDetails.
schedules Gets the schedules of this UpdateFilesystemSnapshotPolicyDetails.
__init__(**kwargs)

Initializes a new UpdateFilesystemSnapshotPolicyDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • display_name (str) – The value to assign to the display_name property of this UpdateFilesystemSnapshotPolicyDetails.
  • policy_prefix (str) – The value to assign to the policy_prefix property of this UpdateFilesystemSnapshotPolicyDetails.
  • schedules (list[oci.file_storage.models.SnapshotSchedule]) – The value to assign to the schedules property of this UpdateFilesystemSnapshotPolicyDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateFilesystemSnapshotPolicyDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateFilesystemSnapshotPolicyDetails.
defined_tags

Gets the defined_tags of this UpdateFilesystemSnapshotPolicyDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this UpdateFilesystemSnapshotPolicyDetails.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this UpdateFilesystemSnapshotPolicyDetails. A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information.

Example: policy1

Returns:The display_name of this UpdateFilesystemSnapshotPolicyDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this UpdateFilesystemSnapshotPolicyDetails. Free-form tags for this resource. Each tag is a simple key-value pair

with no predefined name, type, or namespace.

For more information, see Resource Tags. Example: {“Department”: “Finance”}

Returns:The freeform_tags of this UpdateFilesystemSnapshotPolicyDetails.
Return type:dict(str, str)
policy_prefix

Gets the policy_prefix of this UpdateFilesystemSnapshotPolicyDetails. The prefix to apply to all snapshots created by this policy.

Example: acme

Returns:The policy_prefix of this UpdateFilesystemSnapshotPolicyDetails.
Return type:str
schedules

Gets the schedules of this UpdateFilesystemSnapshotPolicyDetails. The list of associated snapshot schedules. A maximum of 10 schedules can be associated with a policy.

If using the CLI, provide the schedule as a list of JSON strings, with the list wrapped in quotation marks, i.e. ```

–schedules ‘[{“timeZone”:”UTC”,”period”:”DAILY”,”hourOfDay”:18},{“timeZone”:”UTC”,”period”:”HOURLY”}]’

```

Returns:The schedules of this UpdateFilesystemSnapshotPolicyDetails.
Return type:list[oci.file_storage.models.SnapshotSchedule]