VolumeBackupPolicyAssignment

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

Bases: object

Specifies that a particular volume backup policy is assigned to an asset such as a volume.

__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 asset (e.g. a volume) to which the policy has been assigned.

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 an asset.

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 assignment was created. Format defined by RFC3339.

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