ObjectsResourceApi class

Constructors

ObjectsResourceApi(ApiRequester client)

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

compose(ComposeRequest request, String destinationBucket, { String destinationObject, { String destinationPredefinedAcl String ifGenerationMatch String ifMetagenerationMatch String kmsKeyName String provisionalUserProject String userProject String $fields }) → Future<Object>
Concatenates a list of existing objects into a new object in the same bucket. [...]
copy(Object request, String sourceBucket, { String sourceObject, { String destinationBucket, { String destinationObject, { String destinationPredefinedAcl String ifGenerationMatch String ifGenerationNotMatch String ifMetagenerationMatch String ifMetagenerationNotMatch String ifSourceGenerationMatch String ifSourceGenerationNotMatch String ifSourceMetagenerationMatch String ifSourceMetagenerationNotMatch String projection String provisionalUserProject String sourceGeneration String userProject String $fields }) → Future<Object>
Copies a source object to a destination object. Optionally overrides metadata. [...]
delete(String bucket, { String object, { String generation String ifGenerationMatch String ifGenerationNotMatch String ifMetagenerationMatch String ifMetagenerationNotMatch String provisionalUserProject String userProject String $fields }) → Future
Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used. [...]
get(String bucket, { String object, { String generation, String ifGenerationMatch, String ifGenerationNotMatch, String ifMetagenerationMatch, String ifMetagenerationNotMatch, String projection, String provisionalUserProject, String userProject, String $fields, DownloadOptions downloadOptions: commons.DownloadOptions.Metadata }) → Future
Retrieves an object or its metadata. [...]
getIamPolicy(String bucket, { String object, { String generation String provisionalUserProject String userProject String $fields }) → Future<Policy>
Returns an IAM policy for the specified object. [...]
insert(Object request, String bucket, { String contentEncoding, String ifGenerationMatch, String ifGenerationNotMatch, String ifMetagenerationMatch, String ifMetagenerationNotMatch, String kmsKeyName, String name, String predefinedAcl, String projection, String provisionalUserProject, String userProject, String $fields, UploadOptions uploadOptions: commons.UploadOptions.Default, Media uploadMedia }) → Future<Object>
Stores a new object and metadata. [...]
list(String bucket, { String delimiter bool includeTrailingDelimiter, int maxResults, String pageToken String prefix String projection String provisionalUserProject String userProject bool versions, String $fields }) → Future<Objects>
Retrieves a list of objects matching the criteria. [...]
patch(Object request, String bucket, { String object, { String generation String ifGenerationMatch String ifGenerationNotMatch String ifMetagenerationMatch String ifMetagenerationNotMatch String predefinedAcl String projection String provisionalUserProject String userProject String $fields }) → Future<Object>
Patches an object's metadata. [...]
rewrite(Object request, String sourceBucket, { String sourceObject, { String destinationBucket, { String destinationObject, { String destinationKmsKeyName String destinationPredefinedAcl String ifGenerationMatch String ifGenerationNotMatch String ifMetagenerationMatch String ifMetagenerationNotMatch String ifSourceGenerationMatch String ifSourceGenerationNotMatch String ifSourceMetagenerationMatch String ifSourceMetagenerationNotMatch String maxBytesRewrittenPerCall String projection String provisionalUserProject String rewriteToken String sourceGeneration String userProject String $fields }) → Future<RewriteResponse>
Rewrites a source object to a destination object. Optionally overrides metadata. [...]
setIamPolicy(Policy request, String bucket, { String object, { String generation String provisionalUserProject String userProject String $fields }) → Future<Policy>
Updates an IAM policy for the specified object. [...]
testIamPermissions(String bucket, String object, List<String> permissions, { String generation String provisionalUserProject String userProject String $fields }) → Future<TestIamPermissionsResponse>
Tests a set of permissions on the given object to see which, if any, are held by the caller. [...]
update(Object request, String bucket, { String object, { String generation String ifGenerationMatch String ifGenerationNotMatch String ifMetagenerationMatch String ifMetagenerationNotMatch String predefinedAcl String projection String provisionalUserProject String userProject String $fields }) → Future<Object>
Updates an object's metadata. [...]
watchAll(Channel request, String bucket, { String delimiter bool includeTrailingDelimiter, int maxResults, String pageToken String prefix String projection String provisionalUserProject String userProject bool versions, String $fields }) → Future<Channel>
Watch for changes on all objects in a bucket. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited