github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/dcdb/describe_db_sync_mode.go (about)

     1  package dcdb
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询同步模式
     8  // https://cloud.tencent.com/document/api/557/19991
     9  
    10  type DescribeDbSyncModeRequest struct {
    11  	// 待修改同步模式的实例ID。形如:dcdbt-ow728lmc。
    12  	InstanceId string `name:"InstanceId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *DescribeDbSyncModeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeDbSyncModeResponse, error) {
    18  	resp := &DescribeDbSyncModeResponse{}
    19  	err := client.Request("dcdb", "DescribeDBSyncMode", "2018-04-11").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type DescribeDbSyncModeResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 是否有修改流程在执行中:1 是, 0 否。
    26  	IsModifying int64 `json:"IsModifying"`
    27  	// 同步模式:0 异步,1 强同步, 2 强同步可退化
    28  	SyncMode int64 `json:"SyncMode"`
    29  }