func (client *Client) RestoreObjectWithContext(ctx context.Context, bucketName, objectName string) error {
	req := &clientRequest{
		BucketName:         bucketName,
		ObjectName:         objectName,
		Method:             HTTPPut,
		QueryHeaderOptions: restoreObjectOption{},
	}

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

	return err
}
// RestoreObjectWithContext restore object which is deleted if this object is avaliable with context controlling
RestoreObjectWithContext restore object which is deleted if this object is avaliable with context controlling
// RestoreObjectWithContext restore object which is deleted if this object is avaliable with context controlling
func (client *Client) RestoreObjectWithContext(ctx context.Context, bucketName, objectName string) error {
	req := &clientRequest{
		BucketName:         bucketName,
		ObjectName:         objectName,
		Method:             HTTPPut,
		QueryHeaderOptions: restoreObjectOption{},
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()
	return err
}
func ( client * Client ) RestoreObjectWithContext ( ctx context . Context , bucketName , objectName string ) error { req := & clientRequest { BucketName : bucketName , ObjectName : objectName , Method : HTTPPut , QueryHeaderOptions : restoreObjectOption { } , } resp , err := client . do ( ctx , req ) if err != nil { return err } defer resp . Body . Close ( ) return err }
RestoreObjectWithContext restore object which is deleted if this object is avaliable with context controlling
RestoreObjectWithContext restore object which is deleted if this object is avaliable with context controlling