func (client *Client) SetAccessLogWithContext(ctx context.Context, bucketName string, accessLog *AccessLog) error {
	data, err := json.Marshal(accessLog)
	if err != nil {
		return err
	}

	req := &clientRequest{
		BucketName:         bucketName,
		Method:             HTTPPut,
		QueryHeaderOptions: accessLogOption{},
		Data:               bytes.NewReader(data),
	}

	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()

	return err
}
// SetAccessLogWithContext sets acccess log with context controlling
SetAccessLogWithContext sets acccess log with context controlling
// SetAccessLogWithContext sets acccess log with context controlling
func (client *Client) SetAccessLogWithContext(ctx context.Context, bucketName string, accessLog *AccessLog) error {
	data, err := json.Marshal(accessLog)
	if err != nil {
		return err
	}
	req := &clientRequest{
		BucketName:         bucketName,
		Method:             HTTPPut,
		QueryHeaderOptions: accessLogOption{},
		Data:               bytes.NewReader(data),
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()
	return err
}
func ( client * Client ) SetAccessLogWithContext ( ctx context . Context , bucketName string , accessLog * AccessLog ) error { data , err := json . Marshal ( accessLog ) if err != nil { return err } req := & clientRequest { BucketName : bucketName , Method : HTTPPut , QueryHeaderOptions : accessLogOption { } , Data : bytes . NewReader ( data ) , } resp , err := client . do ( ctx , req ) if err != nil { return err } defer resp . Body . Close ( ) return err }
SetAccessLogWithContext sets acccess log with context controlling
SetAccessLogWithContext sets acccess log with context controlling