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

     1  package mariadb
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 修改备份日志保存天数
     8  // https://cloud.tencent.com/document/api/237/16151
     9  
    10  type ModifyLogFileRetentionPeriodRequest struct {
    11  	// 保存的天数,不能超过30
    12  	Days int64 `name:"Days"`
    13  	// 实例 ID,形如:tdsql-ow728lmc。
    14  	InstanceId string `name:"InstanceId"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  }
    18  
    19  func (req *ModifyLogFileRetentionPeriodRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyLogFileRetentionPeriodResponse, error) {
    20  	resp := &ModifyLogFileRetentionPeriodResponse{}
    21  	err := client.Request("mariadb", "ModifyLogFileRetentionPeriod", "2017-03-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type ModifyLogFileRetentionPeriodResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// 实例 ID,形如:tdsql-ow728lmc。
    28  	InstanceId string `json:"InstanceId"`
    29  }