Liking cljdoc? Tell your friends :D

happygapi.storage.objects

Cloud Storage JSON API: objects. Stores and retrieves potentially large, immutable data objects. See: https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects

Cloud Storage JSON API: objects.
Stores and retrieves potentially large, immutable data objects.
See: https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects
raw docstring

compose$clj

(compose$ auth parameters body)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/compose

Required parameters: destinationBucket, destinationObject

Optional parameters: destinationPredefinedAcl, ifGenerationMatch, ifMetagenerationMatch, kmsKeyName, provisionalUserProject, userProject

Body:

{:destination {:contentDisposition string, :storageClass string, :contentEncoding string, :generation string, :timeCreated string, :temporaryHold boolean, :eventBasedHold boolean, :updated string, :name string, :retentionExpirationTime string, :selfLink string, :contentLanguage string, :etag string, :size string, :md5Hash string, :cacheControl string, :timeStorageClassUpdated string, :timeDeleted string, :id string, :kind string, :mediaLink string, :kmsKeyName string, :componentCount integer, :acl [ObjectAccessControl], :customerEncryption {:encryptionAlgorithm string, :keySha256 string}, :contentType string, :metadata {}, :crc32c string, :owner {:entity string, :entityId string}, :bucket string, :metageneration string}, :kind string, :sourceObjects [{:generation string, :name string, :objectPreconditions {:ifGenerationMatch string}}]}

Concatenates a list of existing objects into a new object in the same bucket.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/compose

Required parameters: destinationBucket, destinationObject

Optional parameters: destinationPredefinedAcl, ifGenerationMatch, ifMetagenerationMatch, kmsKeyName, provisionalUserProject, userProject

Body: 

{:destination {:contentDisposition string,
               :storageClass string,
               :contentEncoding string,
               :generation string,
               :timeCreated string,
               :temporaryHold boolean,
               :eventBasedHold boolean,
               :updated string,
               :name string,
               :retentionExpirationTime string,
               :selfLink string,
               :contentLanguage string,
               :etag string,
               :size string,
               :md5Hash string,
               :cacheControl string,
               :timeStorageClassUpdated string,
               :timeDeleted string,
               :id string,
               :kind string,
               :mediaLink string,
               :kmsKeyName string,
               :componentCount integer,
               :acl [ObjectAccessControl],
               :customerEncryption {:encryptionAlgorithm string,
                                    :keySha256 string},
               :contentType string,
               :metadata {},
               :crc32c string,
               :owner {:entity string, :entityId string},
               :bucket string,
               :metageneration string},
 :kind string,
 :sourceObjects [{:generation string,
                  :name string,
                  :objectPreconditions {:ifGenerationMatch string}}]}

Concatenates a list of existing objects into a new object in the same bucket.
sourceraw docstring

copy$clj

(copy$ auth parameters body)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/copy

Required parameters: destinationBucket, sourceBucket, destinationObject, sourceObject

Optional parameters: ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, destinationPredefinedAcl, userProject, provisionalUserProject, ifSourceMetagenerationNotMatch, sourceGeneration, ifSourceGenerationMatch, projection, ifSourceGenerationNotMatch, ifSourceMetagenerationMatch

Body:

{:contentDisposition string, :storageClass string, :contentEncoding string, :generation string, :timeCreated string, :temporaryHold boolean, :eventBasedHold boolean, :updated string, :name string, :retentionExpirationTime string, :selfLink string, :contentLanguage string, :etag string, :size string, :md5Hash string, :cacheControl string, :timeStorageClassUpdated string, :timeDeleted string, :id string, :kind string, :mediaLink string, :kmsKeyName string, :componentCount integer, :acl [{:role string, :email string, :generation string, :projectTeam {:projectNumber string, :team string}, :selfLink string, :etag string, :id string, :kind string, :domain string, :entity string, :entityId string, :object string, :bucket string}], :customerEncryption {:encryptionAlgorithm string, :keySha256 string}, :contentType string, :metadata {}, :crc32c string, :owner {:entity string, :entityId string}, :bucket string, :metageneration string}

Copies a source object to a destination object. Optionally overrides metadata.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/copy

Required parameters: destinationBucket, sourceBucket, destinationObject, sourceObject

Optional parameters: ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, destinationPredefinedAcl, userProject, provisionalUserProject, ifSourceMetagenerationNotMatch, sourceGeneration, ifSourceGenerationMatch, projection, ifSourceGenerationNotMatch, ifSourceMetagenerationMatch

Body: 

{:contentDisposition string,
 :storageClass string,
 :contentEncoding string,
 :generation string,
 :timeCreated string,
 :temporaryHold boolean,
 :eventBasedHold boolean,
 :updated string,
 :name string,
 :retentionExpirationTime string,
 :selfLink string,
 :contentLanguage string,
 :etag string,
 :size string,
 :md5Hash string,
 :cacheControl string,
 :timeStorageClassUpdated string,
 :timeDeleted string,
 :id string,
 :kind string,
 :mediaLink string,
 :kmsKeyName string,
 :componentCount integer,
 :acl [{:role string,
        :email string,
        :generation string,
        :projectTeam {:projectNumber string, :team string},
        :selfLink string,
        :etag string,
        :id string,
        :kind string,
        :domain string,
        :entity string,
        :entityId string,
        :object string,
        :bucket string}],
 :customerEncryption {:encryptionAlgorithm string, :keySha256 string},
 :contentType string,
 :metadata {},
 :crc32c string,
 :owner {:entity string, :entityId string},
 :bucket string,
 :metageneration string}

Copies a source object to a destination object. Optionally overrides metadata.
sourceraw docstring

delete$clj

(delete$ auth parameters)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/delete

Required parameters: object, bucket

Optional parameters: generation, ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, userProject, provisionalUserProject

Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/delete

Required parameters: object, bucket

Optional parameters: generation, ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, userProject, provisionalUserProject

Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.
sourceraw docstring

get$clj

(get$ auth parameters)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/get

Required parameters: object, bucket

Optional parameters: generation, ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, userProject, provisionalUserProject, projection

Retrieves an object or its metadata.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/get

Required parameters: object, bucket

Optional parameters: generation, ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, userProject, provisionalUserProject, projection

Retrieves an object or its metadata.
sourceraw docstring

getIamPolicy$clj

(getIamPolicy$ auth parameters)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/getIamPolicy

Required parameters: bucket, object

Optional parameters: generation, provisionalUserProject, userProject

Returns an IAM policy for the specified object.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/getIamPolicy

Required parameters: bucket, object

Optional parameters: generation, provisionalUserProject, userProject

Returns an IAM policy for the specified object.
sourceraw docstring

insert$clj

(insert$ auth parameters body)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/insert

Required parameters: bucket

Optional parameters: contentEncoding, predefinedAcl, ifGenerationMatch, ifMetagenerationNotMatch, name, ifGenerationNotMatch, ifMetagenerationMatch, kmsKeyName, userProject, provisionalUserProject, projection

Body:

{:contentDisposition string, :storageClass string, :contentEncoding string, :generation string, :timeCreated string, :temporaryHold boolean, :eventBasedHold boolean, :updated string, :name string, :retentionExpirationTime string, :selfLink string, :contentLanguage string, :etag string, :size string, :md5Hash string, :cacheControl string, :timeStorageClassUpdated string, :timeDeleted string, :id string, :kind string, :mediaLink string, :kmsKeyName string, :componentCount integer, :acl [{:role string, :email string, :generation string, :projectTeam {:projectNumber string, :team string}, :selfLink string, :etag string, :id string, :kind string, :domain string, :entity string, :entityId string, :object string, :bucket string}], :customerEncryption {:encryptionAlgorithm string, :keySha256 string}, :contentType string, :metadata {}, :crc32c string, :owner {:entity string, :entityId string}, :bucket string, :metageneration string}

Stores a new object and metadata.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/insert

Required parameters: bucket

Optional parameters: contentEncoding, predefinedAcl, ifGenerationMatch, ifMetagenerationNotMatch, name, ifGenerationNotMatch, ifMetagenerationMatch, kmsKeyName, userProject, provisionalUserProject, projection

Body: 

{:contentDisposition string,
 :storageClass string,
 :contentEncoding string,
 :generation string,
 :timeCreated string,
 :temporaryHold boolean,
 :eventBasedHold boolean,
 :updated string,
 :name string,
 :retentionExpirationTime string,
 :selfLink string,
 :contentLanguage string,
 :etag string,
 :size string,
 :md5Hash string,
 :cacheControl string,
 :timeStorageClassUpdated string,
 :timeDeleted string,
 :id string,
 :kind string,
 :mediaLink string,
 :kmsKeyName string,
 :componentCount integer,
 :acl [{:role string,
        :email string,
        :generation string,
        :projectTeam {:projectNumber string, :team string},
        :selfLink string,
        :etag string,
        :id string,
        :kind string,
        :domain string,
        :entity string,
        :entityId string,
        :object string,
        :bucket string}],
 :customerEncryption {:encryptionAlgorithm string, :keySha256 string},
 :contentType string,
 :metadata {},
 :crc32c string,
 :owner {:entity string, :entityId string},
 :bucket string,
 :metageneration string}

Stores a new object and metadata.
sourceraw docstring

list$clj

(list$ auth parameters)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/list

Required parameters: bucket

Optional parameters: startOffset, endOffset, prefix, pageToken, delimiter, userProject, includeTrailingDelimiter, provisionalUserProject, versions, projection, maxResults

Retrieves a list of objects matching the criteria.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/list

Required parameters: bucket

Optional parameters: startOffset, endOffset, prefix, pageToken, delimiter, userProject, includeTrailingDelimiter, provisionalUserProject, versions, projection, maxResults

Retrieves a list of objects matching the criteria.
sourceraw docstring

patch$clj

(patch$ auth parameters body)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/patch

Required parameters: object, bucket

Optional parameters: generation, predefinedAcl, ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, userProject, provisionalUserProject, projection

Body:

{:contentDisposition string, :storageClass string, :contentEncoding string, :generation string, :timeCreated string, :temporaryHold boolean, :eventBasedHold boolean, :updated string, :name string, :retentionExpirationTime string, :selfLink string, :contentLanguage string, :etag string, :size string, :md5Hash string, :cacheControl string, :timeStorageClassUpdated string, :timeDeleted string, :id string, :kind string, :mediaLink string, :kmsKeyName string, :componentCount integer, :acl [{:role string, :email string, :generation string, :projectTeam {:projectNumber string, :team string}, :selfLink string, :etag string, :id string, :kind string, :domain string, :entity string, :entityId string, :object string, :bucket string}], :customerEncryption {:encryptionAlgorithm string, :keySha256 string}, :contentType string, :metadata {}, :crc32c string, :owner {:entity string, :entityId string}, :bucket string, :metageneration string}

Patches an object's metadata.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/patch

Required parameters: object, bucket

Optional parameters: generation, predefinedAcl, ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, userProject, provisionalUserProject, projection

Body: 

{:contentDisposition string,
 :storageClass string,
 :contentEncoding string,
 :generation string,
 :timeCreated string,
 :temporaryHold boolean,
 :eventBasedHold boolean,
 :updated string,
 :name string,
 :retentionExpirationTime string,
 :selfLink string,
 :contentLanguage string,
 :etag string,
 :size string,
 :md5Hash string,
 :cacheControl string,
 :timeStorageClassUpdated string,
 :timeDeleted string,
 :id string,
 :kind string,
 :mediaLink string,
 :kmsKeyName string,
 :componentCount integer,
 :acl [{:role string,
        :email string,
        :generation string,
        :projectTeam {:projectNumber string, :team string},
        :selfLink string,
        :etag string,
        :id string,
        :kind string,
        :domain string,
        :entity string,
        :entityId string,
        :object string,
        :bucket string}],
 :customerEncryption {:encryptionAlgorithm string, :keySha256 string},
 :contentType string,
 :metadata {},
 :crc32c string,
 :owner {:entity string, :entityId string},
 :bucket string,
 :metageneration string}

Patches an object's metadata.
sourceraw docstring

rewrite$clj

(rewrite$ auth parameters body)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/rewrite

Required parameters: destinationBucket, sourceBucket, destinationObject, sourceObject

Optional parameters: ifGenerationMatch, maxBytesRewrittenPerCall, ifMetagenerationNotMatch, rewriteToken, ifGenerationNotMatch, ifMetagenerationMatch, destinationPredefinedAcl, userProject, provisionalUserProject, ifSourceMetagenerationNotMatch, destinationKmsKeyName, sourceGeneration, ifSourceGenerationMatch, projection, ifSourceGenerationNotMatch, ifSourceMetagenerationMatch

Body:

{:contentDisposition string, :storageClass string, :contentEncoding string, :generation string, :timeCreated string, :temporaryHold boolean, :eventBasedHold boolean, :updated string, :name string, :retentionExpirationTime string, :selfLink string, :contentLanguage string, :etag string, :size string, :md5Hash string, :cacheControl string, :timeStorageClassUpdated string, :timeDeleted string, :id string, :kind string, :mediaLink string, :kmsKeyName string, :componentCount integer, :acl [{:role string, :email string, :generation string, :projectTeam {:projectNumber string, :team string}, :selfLink string, :etag string, :id string, :kind string, :domain string, :entity string, :entityId string, :object string, :bucket string}], :customerEncryption {:encryptionAlgorithm string, :keySha256 string}, :contentType string, :metadata {}, :crc32c string, :owner {:entity string, :entityId string}, :bucket string, :metageneration string}

Rewrites a source object to a destination object. Optionally overrides metadata.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/rewrite

Required parameters: destinationBucket, sourceBucket, destinationObject, sourceObject

Optional parameters: ifGenerationMatch, maxBytesRewrittenPerCall, ifMetagenerationNotMatch, rewriteToken, ifGenerationNotMatch, ifMetagenerationMatch, destinationPredefinedAcl, userProject, provisionalUserProject, ifSourceMetagenerationNotMatch, destinationKmsKeyName, sourceGeneration, ifSourceGenerationMatch, projection, ifSourceGenerationNotMatch, ifSourceMetagenerationMatch

Body: 

{:contentDisposition string,
 :storageClass string,
 :contentEncoding string,
 :generation string,
 :timeCreated string,
 :temporaryHold boolean,
 :eventBasedHold boolean,
 :updated string,
 :name string,
 :retentionExpirationTime string,
 :selfLink string,
 :contentLanguage string,
 :etag string,
 :size string,
 :md5Hash string,
 :cacheControl string,
 :timeStorageClassUpdated string,
 :timeDeleted string,
 :id string,
 :kind string,
 :mediaLink string,
 :kmsKeyName string,
 :componentCount integer,
 :acl [{:role string,
        :email string,
        :generation string,
        :projectTeam {:projectNumber string, :team string},
        :selfLink string,
        :etag string,
        :id string,
        :kind string,
        :domain string,
        :entity string,
        :entityId string,
        :object string,
        :bucket string}],
 :customerEncryption {:encryptionAlgorithm string, :keySha256 string},
 :contentType string,
 :metadata {},
 :crc32c string,
 :owner {:entity string, :entityId string},
 :bucket string,
 :metageneration string}

Rewrites a source object to a destination object. Optionally overrides metadata.
sourceraw docstring

setIamPolicy$clj

(setIamPolicy$ auth parameters body)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/setIamPolicy

Required parameters: bucket, object

Optional parameters: generation, provisionalUserProject, userProject

Body:

{:bindings [{:condition {:description string, :expression string, :location string, :title string}, :members [string], :role string}], :etag string, :kind string, :resourceId string, :version integer}

Updates an IAM policy for the specified object.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/setIamPolicy

Required parameters: bucket, object

Optional parameters: generation, provisionalUserProject, userProject

Body: 

{:bindings [{:condition {:description string,
                         :expression string,
                         :location string,
                         :title string},
             :members [string],
             :role string}],
 :etag string,
 :kind string,
 :resourceId string,
 :version integer}

Updates an IAM policy for the specified object.
sourceraw docstring

testIamPermissions$clj

(testIamPermissions$ auth parameters)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/testIamPermissions

Required parameters: bucket, object, permissions

Optional parameters: generation, provisionalUserProject, userProject

Tests a set of permissions on the given object to see which, if any, are held by the caller.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/testIamPermissions

Required parameters: bucket, object, permissions

Optional parameters: generation, provisionalUserProject, userProject

Tests a set of permissions on the given object to see which, if any, are held by the caller.
sourceraw docstring

update$clj

(update$ auth parameters body)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/update

Required parameters: object, bucket

Optional parameters: generation, predefinedAcl, ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, userProject, provisionalUserProject, projection

Body:

{:contentDisposition string, :storageClass string, :contentEncoding string, :generation string, :timeCreated string, :temporaryHold boolean, :eventBasedHold boolean, :updated string, :name string, :retentionExpirationTime string, :selfLink string, :contentLanguage string, :etag string, :size string, :md5Hash string, :cacheControl string, :timeStorageClassUpdated string, :timeDeleted string, :id string, :kind string, :mediaLink string, :kmsKeyName string, :componentCount integer, :acl [{:role string, :email string, :generation string, :projectTeam {:projectNumber string, :team string}, :selfLink string, :etag string, :id string, :kind string, :domain string, :entity string, :entityId string, :object string, :bucket string}], :customerEncryption {:encryptionAlgorithm string, :keySha256 string}, :contentType string, :metadata {}, :crc32c string, :owner {:entity string, :entityId string}, :bucket string, :metageneration string}

Updates an object's metadata.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/update

Required parameters: object, bucket

Optional parameters: generation, predefinedAcl, ifGenerationMatch, ifMetagenerationNotMatch, ifGenerationNotMatch, ifMetagenerationMatch, userProject, provisionalUserProject, projection

Body: 

{:contentDisposition string,
 :storageClass string,
 :contentEncoding string,
 :generation string,
 :timeCreated string,
 :temporaryHold boolean,
 :eventBasedHold boolean,
 :updated string,
 :name string,
 :retentionExpirationTime string,
 :selfLink string,
 :contentLanguage string,
 :etag string,
 :size string,
 :md5Hash string,
 :cacheControl string,
 :timeStorageClassUpdated string,
 :timeDeleted string,
 :id string,
 :kind string,
 :mediaLink string,
 :kmsKeyName string,
 :componentCount integer,
 :acl [{:role string,
        :email string,
        :generation string,
        :projectTeam {:projectNumber string, :team string},
        :selfLink string,
        :etag string,
        :id string,
        :kind string,
        :domain string,
        :entity string,
        :entityId string,
        :object string,
        :bucket string}],
 :customerEncryption {:encryptionAlgorithm string, :keySha256 string},
 :contentType string,
 :metadata {},
 :crc32c string,
 :owner {:entity string, :entityId string},
 :bucket string,
 :metageneration string}

Updates an object's metadata.
sourceraw docstring

watchAll$clj

(watchAll$ auth parameters body)

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/watchAll

Required parameters: bucket

Optional parameters: startOffset, endOffset, prefix, pageToken, delimiter, userProject, includeTrailingDelimiter, provisionalUserProject, versions, projection, maxResults

Body:

{:address string, :resourceUri string, :payload boolean, :expiration string, :params {}, :type string, :resourceId string, :token string, :id string, :kind string}

Watch for changes on all objects in a bucket.

https://developers.google.com/storage/docs/json_api/api/reference/rest/v1/objects/watchAll

Required parameters: bucket

Optional parameters: startOffset, endOffset, prefix, pageToken, delimiter, userProject, includeTrailingDelimiter, provisionalUserProject, versions, projection, maxResults

Body: 

{:address string,
 :resourceUri string,
 :payload boolean,
 :expiration string,
 :params {},
 :type string,
 :resourceId string,
 :token string,
 :id string,
 :kind string}

Watch for changes on all objects in a bucket.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close