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

     1  package redis
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 设置自动备份时间
     8  // https://cloud.tencent.com/document/api/239/20016
     9  
    10  type ModifyAutoBackupConfigRequest struct {
    11  	// 自动备份类型: 1 “定时回档”
    12  	AutoBackupType *int64 `name:"AutoBackupType,omitempty"`
    13  	// 实例ID
    14  	InstanceId string `name:"InstanceId"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  	// 时间段 00:00-01:00, 01:00-02:00...... 23:00-00:00
    18  	TimePeriod string `name:"TimePeriod"`
    19  	// 日期 Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
    20  	WeekDays []*string `name:"WeekDays"`
    21  }
    22  
    23  func (req *ModifyAutoBackupConfigRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyAutoBackupConfigResponse, error) {
    24  	resp := &ModifyAutoBackupConfigResponse{}
    25  	err := client.Request("redis", "ModifyAutoBackupConfig", "2018-04-12").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type ModifyAutoBackupConfigResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  	// 自动备份类型: 1 “定时回档”
    32  	AutoBackupType int64 `json:"AutoBackupType"`
    33  	// 时间段 00:00-01:00, 01:00-02:00...... 23:00-00:00
    34  	TimePeriod string `json:"TimePeriod"`
    35  	// 日期Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday。
    36  	WeekDays []*string `json:"WeekDays"`
    37  }