Class: Google::Apis::NetappV1::Replication
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::Replication
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/netapp_v1/classes.rb,
lib/google/apis/netapp_v1/representations.rb,
lib/google/apis/netapp_v1/representations.rb
Overview
Replication is a nested resource under Volume, that describes a cross-region replication relationship between 2 volumes in different regions.
Instance Attribute Summary collapse
-
#cluster_location ⇒ String
Optional.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A description about this replication relationship.
-
#destination_volume ⇒ String
Output only.
-
#destination_volume_parameters ⇒ Google::Apis::NetappV1::DestinationVolumeParameters
DestinationVolumeParameters specify input parameters used for creating destination volume.
-
#healthy ⇒ Boolean
(also: #healthy?)
Output only.
-
#hybrid_peering_details ⇒ Google::Apis::NetappV1::HybridPeeringDetails
HybridPeeringDetails contains details about the hybrid peering.
-
#hybrid_replication_type ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
-
#mirror_state ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#replication_schedule ⇒ String
Required.
-
#role ⇒ String
Output only.
-
#source_volume ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#state_details ⇒ String
Output only.
-
#transfer_stats ⇒ Google::Apis::NetappV1::TransferStats
TransferStats reports all statistics related to replication transfer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Replication
constructor
A new instance of Replication.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Replication
Returns a new instance of Replication.
1602 1603 1604 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1602 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_location ⇒ String
Optional. Location of the user cluster.
Corresponds to the JSON property clusterLocation
1511 1512 1513 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1511 def cluster_location @cluster_location end |
#create_time ⇒ String
Output only. Replication create time.
Corresponds to the JSON property createTime
1516 1517 1518 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1516 def create_time @create_time end |
#description ⇒ String
A description about this replication relationship.
Corresponds to the JSON property description
1521 1522 1523 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1521 def description @description end |
#destination_volume ⇒ String
Output only. Full name of destination volume resource. Example : "projects/
project/locations/location/volumes/volume_id"
Corresponds to the JSON property destinationVolume
1527 1528 1529 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1527 def destination_volume @destination_volume end |
#destination_volume_parameters ⇒ Google::Apis::NetappV1::DestinationVolumeParameters
DestinationVolumeParameters specify input parameters used for creating
destination volume.
Corresponds to the JSON property destinationVolumeParameters
1533 1534 1535 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1533 def destination_volume_parameters @destination_volume_parameters end |
#healthy ⇒ Boolean Also known as: healthy?
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.
Corresponds to the JSON property healthy
1541 1542 1543 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1541 def healthy @healthy end |
#hybrid_peering_details ⇒ Google::Apis::NetappV1::HybridPeeringDetails
HybridPeeringDetails contains details about the hybrid peering.
Corresponds to the JSON property hybridPeeringDetails
1547 1548 1549 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1547 def hybrid_peering_details @hybrid_peering_details end |
#hybrid_replication_type ⇒ String
Output only. Type of the hybrid replication.
Corresponds to the JSON property hybridReplicationType
1552 1553 1554 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1552 def hybrid_replication_type @hybrid_replication_type end |
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
Corresponds to the JSON property labels
1557 1558 1559 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1557 def labels @labels end |
#mirror_state ⇒ String
Output only. Indicates the state of mirroring.
Corresponds to the JSON property mirrorState
1562 1563 1564 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1562 def mirror_state @mirror_state end |
#name ⇒ String
Identifier. The resource name of the Replication. Format: projects/
project_id/locations/location/volumes/volume_id/replications/
replication_id`.
Corresponds to the JSON propertyname`
1569 1570 1571 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1569 def name @name end |
#replication_schedule ⇒ String
Required. Indicates the schedule for replication.
Corresponds to the JSON property replicationSchedule
1574 1575 1576 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1574 def replication_schedule @replication_schedule end |
#role ⇒ String
Output only. Indicates whether this points to source or destination.
Corresponds to the JSON property role
1579 1580 1581 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1579 def role @role end |
#source_volume ⇒ String
Output only. Full name of source volume resource. Example : "projects/project
/locations/location/volumes/volume_id"
Corresponds to the JSON property sourceVolume
1585 1586 1587 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1585 def source_volume @source_volume end |
#state ⇒ String
Output only. State of the replication.
Corresponds to the JSON property state
1590 1591 1592 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1590 def state @state end |
#state_details ⇒ String
Output only. State details of the replication.
Corresponds to the JSON property stateDetails
1595 1596 1597 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1595 def state_details @state_details end |
#transfer_stats ⇒ Google::Apis::NetappV1::TransferStats
TransferStats reports all statistics related to replication transfer.
Corresponds to the JSON property transferStats
1600 1601 1602 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1600 def transfer_stats @transfer_stats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1607 def update!(**args) @cluster_location = args[:cluster_location] if args.key?(:cluster_location) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @destination_volume = args[:destination_volume] if args.key?(:destination_volume) @destination_volume_parameters = args[:destination_volume_parameters] if args.key?(:destination_volume_parameters) @healthy = args[:healthy] if args.key?(:healthy) @hybrid_peering_details = args[:hybrid_peering_details] if args.key?(:hybrid_peering_details) @hybrid_replication_type = args[:hybrid_replication_type] if args.key?(:hybrid_replication_type) @labels = args[:labels] if args.key?(:labels) @mirror_state = args[:mirror_state] if args.key?(:mirror_state) @name = args[:name] if args.key?(:name) @replication_schedule = args[:replication_schedule] if args.key?(:replication_schedule) @role = args[:role] if args.key?(:role) @source_volume = args[:source_volume] if args.key?(:source_volume) @state = args[:state] if args.key?(:state) @state_details = args[:state_details] if args.key?(:state_details) @transfer_stats = args[:transfer_stats] if args.key?(:transfer_stats) end |