VolumeBackupPolicyAssignment

class oci.core.models.VolumeBackupPolicyAssignment(**kwargs)

Bases: object

Specifies the volume that the volume backup policy is assigned to.

For more information about Oracle defined backup policies and custom backup policies, see Policy-Based Backups.

Methods

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

Attributes

asset_id [Required] Gets the asset_id of this VolumeBackupPolicyAssignment.
id [Required] Gets the id of this VolumeBackupPolicyAssignment.
policy_id [Required] Gets the policy_id of this VolumeBackupPolicyAssignment.
time_created [Required] Gets the time_created of this VolumeBackupPolicyAssignment.
__init__(**kwargs)

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

Parameters:
  • asset_id (str) – The value to assign to the asset_id property of this VolumeBackupPolicyAssignment.
  • id (str) – The value to assign to the id property of this VolumeBackupPolicyAssignment.
  • policy_id (str) – The value to assign to the policy_id property of this VolumeBackupPolicyAssignment.
  • time_created (datetime) – The value to assign to the time_created property of this VolumeBackupPolicyAssignment.
asset_id

[Required] Gets the asset_id of this VolumeBackupPolicyAssignment. The OCID of the volume the policy has been assigned to.

Returns:The asset_id of this VolumeBackupPolicyAssignment.
Return type:str
id

[Required] Gets the id of this VolumeBackupPolicyAssignment. The OCID of the volume backup policy assignment.

Returns:The id of this VolumeBackupPolicyAssignment.
Return type:str
policy_id

[Required] Gets the policy_id of this VolumeBackupPolicyAssignment. The OCID of the volume backup policy that has been assigned to the volume.

Returns:The policy_id of this VolumeBackupPolicyAssignment.
Return type:str
time_created

[Required] Gets the time_created of this VolumeBackupPolicyAssignment. The date and time the volume backup policy was assigned to the volume. The format is defined by RFC3339.

Returns:The time_created of this VolumeBackupPolicyAssignment.
Return type:datetime