Skip to main content

openapi_service_fabric/models/
remote_replicator_status.rs

1/*
2 * Service Fabric Client APIs
3 *
4 * Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services.
5 *
6 * The version of the OpenAPI document: 8.2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// RemoteReplicatorStatus : Represents the state of the secondary replicator from the primary replicator’s point of view.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RemoteReplicatorStatus {
17    /// Id of a stateful service replica. ReplicaId is used by Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id.
18    #[serde(rename = "ReplicaId", skip_serializing_if = "Option::is_none")]
19    pub replica_id: Option<String>,
20    /// The last timestamp (in UTC) when an acknowledgement from the secondary replicator was processed on the primary. UTC 0 represents an invalid value, indicating that no acknowledgement messages were ever processed.
21    #[serde(
22        rename = "LastAcknowledgementProcessedTimeUtc",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub last_acknowledgement_processed_time_utc: Option<String>,
26    /// The highest replication operation sequence number that the secondary has received from the primary.
27    #[serde(
28        rename = "LastReceivedReplicationSequenceNumber",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub last_received_replication_sequence_number: Option<String>,
32    /// The highest replication operation sequence number that the secondary has applied to its state.
33    #[serde(
34        rename = "LastAppliedReplicationSequenceNumber",
35        skip_serializing_if = "Option::is_none"
36    )]
37    pub last_applied_replication_sequence_number: Option<String>,
38    /// A value that indicates whether the secondary replica is in the process of being built.
39    #[serde(rename = "IsInBuild", skip_serializing_if = "Option::is_none")]
40    pub is_in_build: Option<bool>,
41    /// The highest copy operation sequence number that the secondary has received from the primary. A value of -1 implies that the secondary has received all copy operations.
42    #[serde(
43        rename = "LastReceivedCopySequenceNumber",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub last_received_copy_sequence_number: Option<String>,
47    /// The highest copy operation sequence number that the secondary has applied to its state. A value of -1 implies that the secondary has applied all copy operations and the copy process is complete.
48    #[serde(
49        rename = "LastAppliedCopySequenceNumber",
50        skip_serializing_if = "Option::is_none"
51    )]
52    pub last_applied_copy_sequence_number: Option<String>,
53    #[serde(
54        rename = "RemoteReplicatorAcknowledgementStatus",
55        skip_serializing_if = "Option::is_none"
56    )]
57    pub remote_replicator_acknowledgement_status:
58        Option<Box<models::RemoteReplicatorAcknowledgementStatus>>,
59}
60
61impl RemoteReplicatorStatus {
62    /// Represents the state of the secondary replicator from the primary replicator’s point of view.
63    pub fn new() -> RemoteReplicatorStatus {
64        RemoteReplicatorStatus {
65            replica_id: None,
66            last_acknowledgement_processed_time_utc: None,
67            last_received_replication_sequence_number: None,
68            last_applied_replication_sequence_number: None,
69            is_in_build: None,
70            last_received_copy_sequence_number: None,
71            last_applied_copy_sequence_number: None,
72            remote_replicator_acknowledgement_status: None,
73        }
74    }
75}