@linode/api-v4
Version:
JavaScript wrapper around the Linode APIv4
22 lines • 1.01 kB
TypeScript
import { ACLType, ObjectStorageObjectACL, ObjectStorageObjectURL, GetObjectStorageACLPayload, CreateObjectStorageObjectURLPayload } from './types';
/**
* Creates a pre-signed URL to access a single object in a bucket.
* Use it to share, create, or delete objects by using the appropriate
* HTTP method in your request body's method parameter.
*/
export declare const getObjectURL: (clusterId: string, bucketName: string, name: string, method: "GET" | "PUT" | "POST" | "DELETE", options?: CreateObjectStorageObjectURLPayload) => Promise<ObjectStorageObjectURL>;
/**
*
* getObjectACL
*
* Gets the ACL for a given Object.
*/
export declare const getObjectACL: ({ clusterId, bucket, params, }: GetObjectStorageACLPayload) => Promise<ObjectStorageObjectACL>;
/**
*
* updateObjectACL
*
* Updates the ACL for a given Object.
*/
export declare const updateObjectACL: (clusterId: string, bucketName: string, name: string, acl: Omit<ACLType, "custom">) => Promise<{}>;
//# sourceMappingURL=objects.d.ts.map