CreateSnapshotDetails

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

Bases: object

Details for creating the snapshot.

Methods:

__init__(**kwargs)

Initializes a new CreateSnapshotDetails object with values from keyword arguments.

Attributes:

defined_tags

Gets the defined_tags of this CreateSnapshotDetails.

expiration_time

Gets the expiration_time of this CreateSnapshotDetails.

file_system_id

[Required] Gets the file_system_id of this CreateSnapshotDetails.

freeform_tags

Gets the freeform_tags of this CreateSnapshotDetails. 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"}.

lock_duration_details

Gets the lock_duration_details of this CreateSnapshotDetails.

locks

Gets the locks of this CreateSnapshotDetails.

name

[Required] Gets the name of this CreateSnapshotDetails.

__init__(**kwargs)

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

Parameters
  • file_system_id (str) – The value to assign to the file_system_id property of this CreateSnapshotDetails.

  • name (str) – The value to assign to the name property of this CreateSnapshotDetails.

  • expiration_time (datetime) – The value to assign to the expiration_time property of this CreateSnapshotDetails.

  • lock_duration_details (oci.file_storage.models.LockDurationDetails) – The value to assign to the lock_duration_details property of this CreateSnapshotDetails.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateSnapshotDetails.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateSnapshotDetails.

  • locks (list[oci.file_storage.models.ResourceLock]) – The value to assign to the locks property of this CreateSnapshotDetails.

property defined_tags

Gets the defined_tags of this CreateSnapshotDetails. 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 CreateSnapshotDetails.

Return type

dict(str, dict(str, object))

property expiration_time

Gets the expiration_time of this CreateSnapshotDetails. The time when this snapshot will be deleted.

Returns

The expiration_time of this CreateSnapshotDetails.

Return type

datetime

property file_system_id

[Required] Gets the file_system_id of this CreateSnapshotDetails. The `OCID`__ of the file system to take a snapshot of.

Returns

The file_system_id of this CreateSnapshotDetails.

Return type

str

property freeform_tags

Gets the freeform_tags of this CreateSnapshotDetails. 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 CreateSnapshotDetails.

Return type

dict(str, str)

property lock_duration_details

Gets the lock_duration_details of this CreateSnapshotDetails.

Returns

The lock_duration_details of this CreateSnapshotDetails.

Return type

oci.file_storage.models.LockDurationDetails

property locks

Gets the locks of this CreateSnapshotDetails. Locks associated with this resource.

Returns

The locks of this CreateSnapshotDetails.

Return type

list[oci.file_storage.models.ResourceLock]

property name

[Required] Gets the name of this CreateSnapshotDetails. Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.

Avoid entering confidential information.

Example: Sunday

Returns

The name of this CreateSnapshotDetails.

Return type

str