github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/redis/describe_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/20019
     9  
    10  type DescribeAutoBackupConfigRequest struct {
    11  	// 实例ID
    12  	InstanceId string `name:"InstanceId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *DescribeAutoBackupConfigRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeAutoBackupConfigResponse, error) {
    18  	resp := &DescribeAutoBackupConfigResponse{}
    19  	err := client.Request("redis", "DescribeAutoBackupConfig", "2018-04-12").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type DescribeAutoBackupConfigResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 备份类型。自动备份类型: 1 “定时回档”
    26  	AutoBackupType int64 `json:"AutoBackupType"`
    27  	// 时间段。
    28  	TimePeriod string `json:"TimePeriod"`
    29  	// Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday。
    30  	WeekDays []*string `json:"WeekDays"`
    31  }