Close httplib2 connections.
download(resourceName, x__xgafv=None)
Method for media download. Download is supported on the URI `/v1/media/{+name}?alt=media`.
download_media(resourceName, x__xgafv=None)
Method for media download. Download is supported on the URI `/v1/media/{+name}?alt=media`.
close()
Close httplib2 connections.
download(resourceName, x__xgafv=None)
Method for media download. Download is supported on the URI `/v1/media/{+name}?alt=media`. Args: resourceName: string, Name of the media that is being downloaded. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # gdata "algorithm": "A String", # gdata "bigstoreObjectRef": "A String", # gdata "blobRef": "A String", # gdata "blobstore2Info": { # gdata # gdata "blobGeneration": "A String", # gdata "blobId": "A String", # gdata "downloadReadHandle": "A String", # gdata "readToken": "A String", # gdata "uploadMetadataContainer": "A String", # gdata }, "compositeMedia": [ # gdata { # gdata "blobRef": "A String", # gdata "blobstore2Info": { # gdata # gdata "blobGeneration": "A String", # gdata "blobId": "A String", # gdata "downloadReadHandle": "A String", # gdata "readToken": "A String", # gdata "uploadMetadataContainer": "A String", # gdata }, "cosmoBinaryReference": "A String", # gdata "crc32cHash": 42, # gdata "inline": "A String", # gdata "length": "A String", # gdata "md5Hash": "A String", # gdata "objectId": { # gdata # gdata "bucketName": "A String", # gdata "generation": "A String", # gdata "objectName": "A String", # gdata }, "path": "A String", # gdata "referenceType": "A String", # gdata "sha1Hash": "A String", # gdata }, ], "contentType": "A String", # gdata "contentTypeInfo": { # gdata # gdata "bestGuess": "A String", # gdata "fromBytes": "A String", # gdata "fromFileName": "A String", # gdata "fromHeader": "A String", # gdata "fromUrlPath": "A String", # gdata }, "cosmoBinaryReference": "A String", # gdata "crc32cHash": 42, # gdata "diffChecksumsResponse": { # gdata # gdata "checksumsLocation": { # gdata # gdata "blobRef": "A String", # gdata "blobstore2Info": { # gdata # gdata "blobGeneration": "A String", # gdata "blobId": "A String", # gdata "downloadReadHandle": "A String", # gdata "readToken": "A String", # gdata "uploadMetadataContainer": "A String", # gdata }, "cosmoBinaryReference": "A String", # gdata "crc32cHash": 42, # gdata "inline": "A String", # gdata "length": "A String", # gdata "md5Hash": "A String", # gdata "objectId": { # gdata # gdata "bucketName": "A String", # gdata "generation": "A String", # gdata "objectName": "A String", # gdata }, "path": "A String", # gdata "referenceType": "A String", # gdata "sha1Hash": "A String", # gdata }, "chunkSizeBytes": "A String", # gdata "objectLocation": { # gdata # gdata "blobRef": "A String", # gdata "blobstore2Info": { # gdata # gdata "blobGeneration": "A String", # gdata "blobId": "A String", # gdata "downloadReadHandle": "A String", # gdata "readToken": "A String", # gdata "uploadMetadataContainer": "A String", # gdata }, "cosmoBinaryReference": "A String", # gdata "crc32cHash": 42, # gdata "inline": "A String", # gdata "length": "A String", # gdata "md5Hash": "A String", # gdata "objectId": { # gdata # gdata "bucketName": "A String", # gdata "generation": "A String", # gdata "objectName": "A String", # gdata }, "path": "A String", # gdata "referenceType": "A String", # gdata "sha1Hash": "A String", # gdata }, "objectSizeBytes": "A String", # gdata "objectVersion": "A String", # gdata }, "diffDownloadResponse": { # gdata # gdata "objectLocation": { # gdata # gdata "blobRef": "A String", # gdata "blobstore2Info": { # gdata # gdata "blobGeneration": "A String", # gdata "blobId": "A String", # gdata "downloadReadHandle": "A String", # gdata "readToken": "A String", # gdata "uploadMetadataContainer": "A String", # gdata }, "cosmoBinaryReference": "A String", # gdata "crc32cHash": 42, # gdata "inline": "A String", # gdata "length": "A String", # gdata "md5Hash": "A String", # gdata "objectId": { # gdata # gdata "bucketName": "A String", # gdata "generation": "A String", # gdata "objectName": "A String", # gdata }, "path": "A String", # gdata "referenceType": "A String", # gdata "sha1Hash": "A String", # gdata }, }, "diffUploadRequest": { # gdata # gdata "checksumsInfo": { # gdata # gdata "blobRef": "A String", # gdata "blobstore2Info": { # gdata # gdata "blobGeneration": "A String", # gdata "blobId": "A String", # gdata "downloadReadHandle": "A String", # gdata "readToken": "A String", # gdata "uploadMetadataContainer": "A String", # gdata }, "cosmoBinaryReference": "A String", # gdata "crc32cHash": 42, # gdata "inline": "A String", # gdata "length": "A String", # gdata "md5Hash": "A String", # gdata "objectId": { # gdata # gdata "bucketName": "A String", # gdata "generation": "A String", # gdata "objectName": "A String", # gdata }, "path": "A String", # gdata "referenceType": "A String", # gdata "sha1Hash": "A String", # gdata }, "objectInfo": { # gdata # gdata "blobRef": "A String", # gdata "blobstore2Info": { # gdata # gdata "blobGeneration": "A String", # gdata "blobId": "A String", # gdata "downloadReadHandle": "A String", # gdata "readToken": "A String", # gdata "uploadMetadataContainer": "A String", # gdata }, "cosmoBinaryReference": "A String", # gdata "crc32cHash": 42, # gdata "inline": "A String", # gdata "length": "A String", # gdata "md5Hash": "A String", # gdata "objectId": { # gdata # gdata "bucketName": "A String", # gdata "generation": "A String", # gdata "objectName": "A String", # gdata }, "path": "A String", # gdata "referenceType": "A String", # gdata "sha1Hash": "A String", # gdata }, "objectVersion": "A String", # gdata }, "diffUploadResponse": { # gdata # gdata "objectVersion": "A String", # gdata "originalObject": { # gdata # gdata "blobRef": "A String", # gdata "blobstore2Info": { # gdata # gdata "blobGeneration": "A String", # gdata "blobId": "A String", # gdata "downloadReadHandle": "A String", # gdata "readToken": "A String", # gdata "uploadMetadataContainer": "A String", # gdata }, "cosmoBinaryReference": "A String", # gdata "crc32cHash": 42, # gdata "inline": "A String", # gdata "length": "A String", # gdata "md5Hash": "A String", # gdata "objectId": { # gdata # gdata "bucketName": "A String", # gdata "generation": "A String", # gdata "objectName": "A String", # gdata }, "path": "A String", # gdata "referenceType": "A String", # gdata "sha1Hash": "A String", # gdata }, }, "diffVersionResponse": { # gdata # gdata "objectSizeBytes": "A String", # gdata "objectVersion": "A String", # gdata }, "downloadParameters": { # gdata # gdata "allowGzipCompression": True or False, # gdata "ignoreRange": True or False, # gdata }, "filename": "A String", # gdata "hash": "A String", # gdata "hashVerified": True or False, # gdata "inline": "A String", # gdata "isPotentialRetry": True or False, # gdata "length": "A String", # gdata "md5Hash": "A String", # gdata "mediaId": "A String", # gdata "objectId": { # gdata # gdata "bucketName": "A String", # gdata "generation": "A String", # gdata "objectName": "A String", # gdata }, "path": "A String", # gdata "referenceType": "A String", # gdata "sha1Hash": "A String", # gdata "sha256Hash": "A String", # gdata "timestamp": "A String", # gdata "token": "A String", # gdata }
download_media(resourceName, x__xgafv=None)
Method for media download. Download is supported on the URI `/v1/media/{+name}?alt=media`. Args: resourceName: string, Name of the media that is being downloaded. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: The media object as a string.