Class: Google::Apis::NetappV1::HybridReplicationParameters

Inherits:
Object
  • Object
show all
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

The Hybrid Replication parameters for the volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HybridReplicationParameters

Returns a new instance of HybridReplicationParameters.



719
720
721
# File 'lib/google/apis/netapp_v1/classes.rb', line 719

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cluster_locationString

Optional. Name of source cluster location associated with the Hybrid replication. This is a free-form field for the display purpose only. Corresponds to the JSON property clusterLocation

Returns:

  • (String)


679
680
681
# File 'lib/google/apis/netapp_v1/classes.rb', line 679

def cluster_location
  @cluster_location
end

#descriptionString

Optional. Description of the replication. Corresponds to the JSON property description

Returns:

  • (String)


684
685
686
# File 'lib/google/apis/netapp_v1/classes.rb', line 684

def description
  @description
end

#labelsHash<String,String>

Optional. Labels to be added to the replication as the key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


689
690
691
# File 'lib/google/apis/netapp_v1/classes.rb', line 689

def labels
  @labels
end

#peer_cluster_nameString

Required. Name of the user's local source cluster to be peered with the destination cluster. Corresponds to the JSON property peerClusterName

Returns:

  • (String)


695
696
697
# File 'lib/google/apis/netapp_v1/classes.rb', line 695

def peer_cluster_name
  @peer_cluster_name
end

#peer_ip_addressesArray<String>

Required. List of node ip addresses to be peered with. Corresponds to the JSON property peerIpAddresses

Returns:

  • (Array<String>)


700
701
702
# File 'lib/google/apis/netapp_v1/classes.rb', line 700

def peer_ip_addresses
  @peer_ip_addresses
end

#peer_svm_nameString

Required. Name of the user's local source vserver svm to be peered with the destination vserver svm. Corresponds to the JSON property peerSvmName

Returns:

  • (String)


706
707
708
# File 'lib/google/apis/netapp_v1/classes.rb', line 706

def peer_svm_name
  @peer_svm_name
end

#peer_volume_nameString

Required. Name of the user's local source volume to be peered with the destination volume. Corresponds to the JSON property peerVolumeName

Returns:

  • (String)


712
713
714
# File 'lib/google/apis/netapp_v1/classes.rb', line 712

def peer_volume_name
  @peer_volume_name
end

#replicationString

Required. Desired name for the replication of this volume. Corresponds to the JSON property replication

Returns:

  • (String)


717
718
719
# File 'lib/google/apis/netapp_v1/classes.rb', line 717

def replication
  @replication
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



724
725
726
727
728
729
730
731
732
733
# File 'lib/google/apis/netapp_v1/classes.rb', line 724

def update!(**args)
  @cluster_location = args[:cluster_location] if args.key?(:cluster_location)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @peer_cluster_name = args[:peer_cluster_name] if args.key?(:peer_cluster_name)
  @peer_ip_addresses = args[:peer_ip_addresses] if args.key?(:peer_ip_addresses)
  @peer_svm_name = args[:peer_svm_name] if args.key?(:peer_svm_name)
  @peer_volume_name = args[:peer_volume_name] if args.key?(:peer_volume_name)
  @replication = args[:replication] if args.key?(:replication)
end