Skip to main content

Replica

Resumen

The Replica object contains properties that describe a replica.

Debate

Replica objects cannot be created directly. Replica properties can be accessed through the arcpy.da.ListReplicas function.

Propiedades

Nombre Explicación Tipo de datos

creationDate

(Solo lectura)

The date the replica was created. The date will be in UTC.

A replica may not have a creationDate value but will always have a replicaDate value.

DateTime

datasets

(Solo lectura)

A list of the datasets that belong to the replica.

List

geometry

(Solo lectura)

The replica's spatial filter geometry.

Geometry

hasConflicts

(Solo lectura)

Specifies whether the replica is in conflict.

Boolean

isParent

(Solo lectura)

Specifies the replica role. Returns True if the replica is a parent and False if the replica is a child.

Boolean

isSender

(Solo lectura)

Specifies whether the replica is a data sender. Returns True if the replica is a data sender and False if the replica is a data receiver.

Boolean

lastReceive

(Solo lectura)

The last time the replica received changes.

DateTime

lastSend

(Solo lectura)

The last time the replica sent changes.

DateTime

name

(Solo lectura)

The name of the replica.

String

owner

(Solo lectura)

The owner of the replica in the geodatabase.

String

replicaDate

(Solo lectura)

The date the replica was created. The date will be in the time zone of the server machine

DateTime

replicaID

(Solo lectura)

The replica ID.

String

replicaServerGen

(Solo lectura)

The last generation of changes that was successfully received from the relative replica. This property is only applicable for replicas that use the per-replica sync model.

Long

replicaServerSibGen

(Solo lectura)

The last generation of changes that was sent to the relative replica. This property is only applicable for replicas that use the per-replica sync model and have the server target type.

Long

role

(Solo lectura)

Specifies the replica role.

  • Child—The replica has a child role.

  • Parent—The replica has a parent role.

String

serviceName

(Solo lectura)

The URL of the feature service associated with the replica. This is only applicable for replicas created from a feature service.

String

targetType

(Solo lectura)

Specifies the type of target for syncing the replica.

  • Client—The target was created from a feature service for syncing with an offline mobile editor.

  • Server—The target was created from a feature service for syncing with another feature service.

  • None—The target is a replica that was created through geodatabase replication workflows or by a feature service from an earlier release.

String

type

(Solo lectura)

Specifies the replica type.

  • CheckOut—The replica is a checkout replica.

  • OneWay—The replica is a one-way replica.

  • TwoWay—The replica is a two-way replica.

String

version

(Solo lectura)

The version from which the replica was created (replica version).

String