func (client *Client) CompleteMultipartUploadWithContext(ctx context.Context, request *CompleteMultipartUploadRequest) (*PutObjectResponse, error) {
	result := &PutObjectResponse{}
	data, e := json.Marshal(*request.UploadParts)
	if e != nil {
		return result, e
	}

	req := &clientRequest{
		BucketName:         request.BucketName,
		ObjectName:         request.ObjectName,
		Method:             HTTPPut,
		Data:               bytes.NewReader(data),
		QueryHeaderOptions: request,
		Metadata:           request.Metadata,
		Result:             result,
	}

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

	return result, err
}
// CompleteMultipartUploadWithContext completes the progress of multipart uploading with context controlling
CompleteMultipartUploadWithContext completes the progress of multipart uploading with context controlling
// CompleteMultipartUploadWithContext completes the progress of multipart uploading with context controlling
func (client *Client) CompleteMultipartUploadWithContext(ctx context.Context, request *CompleteMultipartUploadRequest) (*PutObjectResponse, error) {
	result := &PutObjectResponse{}
	data, e := json.Marshal(*request.UploadParts)
	if e != nil {
		return result, e
	}
	req := &clientRequest{
		BucketName:         request.BucketName,
		ObjectName:         request.ObjectName,
		Method:             HTTPPut,
		Data:               bytes.NewReader(data),
		QueryHeaderOptions: request,
		Metadata:           request.Metadata,
		Result:             result,
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	return result, err
}
func ( client * Client ) CompleteMultipartUploadWithContext ( ctx context . Context , request * CompleteMultipartUploadRequest ) ( * PutObjectResponse , error ) { result := & PutObjectResponse { } data , e := json . Marshal ( * request . UploadParts ) if e != nil { return result , e } req := & clientRequest { BucketName : request . BucketName , ObjectName : request . ObjectName , Method : HTTPPut , Data : bytes . NewReader ( data ) , QueryHeaderOptions : request , Metadata : request . Metadata , Result : result , } resp , err := client . do ( ctx , req ) if err != nil { return nil , err } defer resp . Body . Close ( ) return result , err }
CompleteMultipartUploadWithContext completes the progress of multipart uploading with context controlling
CompleteMultipartUploadWithContext completes the progress of multipart uploading with context controlling