# Class Replication (0.10.1)

0.10.1 (latest) 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.24 0.2.0 0.1.0

    Replication(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Replication is a nested resource under Volume, that describes
a cross-region replication relationship between 2 volumes in
different regions.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. The resource name of the Replication. Format: `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.Replication.State` Output only. State of the replication. |
| `state_details` | `str` Output only. State details of the replication. |
| `role` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.Replication.ReplicationRole` Output only. Indicates whether this points to source or destination. |
| `replication_schedule` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.Replication.ReplicationSchedule` Required. Indicates the schedule for replication. |
| `mirror_state` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.Replication.MirrorState` Output only. Indicates the state of mirroring. |
| `healthy` | `bool` Output only. Condition of the relationship. Can be one of the following: - true: The replication relationship is healthy. It has not missed the most recent scheduled transfer. - false: The replication relationship is not healthy. It has missed the most recent scheduled transfer. This field is a member of `oneof`_ `_healthy`. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Replication create time. |
| `destination_volume` | `str` Output only. Full name of destination volume resource. Example : "projects/{project}/locations/{location}/volumes/{volume_id}". |
| `transfer_stats` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.TransferStats` Output only. Replication transfer statistics. |
| `labels` | `MutableMapping[str, str]` Resource labels to represent user provided metadata. |
| `description` | `str` A description about this replication relationship. This field is a member of `oneof`_ `_description`. |
| `destination_volume_parameters` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.DestinationVolumeParameters` Required. Input only. Destination volume parameters |
| `source_volume` | `str` Output only. Full name of source volume resource. Example : "projects/{project}/locations/{location}/volumes/{volume_id}". |
| `hybrid_peering_details` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.HybridPeeringDetails` Output only. Hybrid peering details. |
| `cluster_location` | `str` Optional. Location of the user cluster. |
| `hybrid_replication_type` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.Replication.HybridReplicationType` Output only. Type of the hybrid replication. |
| `hybrid_replication_user_commands` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.UserCommands` Output only. Copy pastable snapmirror commands to be executed on onprem cluster by the customer. |

## Classes

### HybridReplicationType

    HybridReplicationType(value)

Hybrid replication type.

### LabelsEntry

    LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### MirrorState

    MirrorState(value)

Mirroring states.
No new value is expected to be added in future.

### ReplicationRole

    ReplicationRole(value)

New enum values may be added in future to support different
replication topology.

### ReplicationSchedule

    ReplicationSchedule(value)

Schedule for Replication.
New enum values may be added in future to support different
frequency of replication.

### State

    State(value)

The replication states
New enum values may be added in future to indicate possible new
states.