ObjectReplicationPolicy Class
Policy id and rule ids applied to a blob.
Constructor
ObjectReplicationPolicy(**kwargs: Any)
Methods
| get | |
| has_key | |
| items | |
| keys | |
| update | |
| values |
get
get(key: str, default: Any = None) -> Any
Parameters
| Name | Description |
|---|---|
|
key
Required
|
|
|
default
|
Default value: None
|
has_key
has_key(k: object) -> bool
Parameters
| Name | Description |
|---|---|
|
k
Required
|
|
items
items() -> list[tuple[str, Any]]
keys
keys() -> list[str]
update
update(*args: Any, **kwargs: Any) -> None
values
values() -> list[Any]
Attributes
policy_id
Policy id for the blob. A replication policy gets created (policy id) when creating a source/destination pair.
policy_id: str
rules
Within each policy there may be multiple replication rules. e.g. rule 1= src/container/.pdf to dst/container2/; rule2 = src/container1/.jpg to dst/container3
rules: List[ObjectReplicationRule]