func (client *Client) MigrateBucketWithContext(ctx context.Context, request *MigrateBucketRequest) error {
	buf := new(bytes.Buffer)

	req := &clientRequest{
		BucketName:         request.BucketName,
		Method:             HTTPPut,
		QueryHeaderOptions: request,
		Data:               buf,
	}

	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()
	return err
}
// MigrateBucketWithContext will change bucket's orgId and teamId with context controlling
MigrateBucketWithContext will change bucket's orgId and teamId with context controlling
// MigrateBucketWithContext will change bucket ' s orgId and teamId with context controlling
func (client *Client) MigrateBucketWithContext(ctx context.Context, request *MigrateBucketRequest) error {
	buf := new(bytes.Buffer)
	req := &clientRequest{
		BucketName:         request.BucketName,
		Method:             HTTPPut,
		QueryHeaderOptions: request,
		Data:               buf,
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()
	return err
}
func ( client * Client ) MigrateBucketWithContext ( ctx context . Context , request * MigrateBucketRequest ) error { buf := new ( bytes . Buffer ) req := & clientRequest { BucketName : request . BucketName , Method : HTTPPut , QueryHeaderOptions : request , Data : buf , } resp , err := client . do ( ctx , req ) if err != nil { return err } defer resp . Body . Close ( ) return err }
MigrateBucketWithContext will change bucket's orgId and teamId with context controlling
MigrateBucketWithContext will change bucket ' s orgId and teamId with context controlling