コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the InstanceFailoverGroupInner class.
 /// </summary>
 /// <param name="readWriteEndpoint">Read-write endpoint of the failover
 /// group instance.</param>
 /// <param name="partnerRegions">Partner region information for the
 /// failover group.</param>
 /// <param name="managedInstancePairs">List of managed instance pairs
 /// in the failover group.</param>
 /// <param name="readOnlyEndpoint">Read-only endpoint of the failover
 /// group instance.</param>
 /// <param name="replicationRole">Local replication role of the
 /// failover group instance. Possible values include: 'Primary',
 /// 'Secondary'</param>
 /// <param name="replicationState">Replication state of the failover
 /// group instance.</param>
 public InstanceFailoverGroupInner(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList <PartnerRegionInfo> partnerRegions, IList <ManagedInstancePairInfo> managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), InstanceFailoverGroupReplicationRole replicationRole = default(InstanceFailoverGroupReplicationRole), string replicationState = default(string))
     : base(id, name, type)
 {
     ReadWriteEndpoint    = readWriteEndpoint;
     ReadOnlyEndpoint     = readOnlyEndpoint;
     ReplicationRole      = replicationRole;
     ReplicationState     = replicationState;
     PartnerRegions       = partnerRegions;
     ManagedInstancePairs = managedInstancePairs;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the PartnerRegionInfo class.
 /// </summary>
 /// <param name="location">Geo location of the partner managed
 /// instances.</param>
 /// <param name="replicationRole">Replication role of the partner
 /// managed instances. Possible values include: 'Primary',
 /// 'Secondary'</param>
 public PartnerRegionInfo(string location = default(string), InstanceFailoverGroupReplicationRole replicationRole = default(InstanceFailoverGroupReplicationRole))
 {
     Location        = location;
     ReplicationRole = replicationRole;
     CustomInit();
 }