Close httplib2 connections.
upload(customer, body=None, media_body=None, media_mime_type=None, x__xgafv=None)
Creates an enterprise file from the content provided by user. Returns a public download url for end user.
close()
Close httplib2 connections.
upload(customer, body=None, media_body=None, media_mime_type=None, x__xgafv=None)
Creates an enterprise file from the content provided by user. Returns a public download url for end user.
Args:
customer: string, Required. The customer for which the file upload will apply. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for uploading a file for a policy.
"policyField": "A String", # Required. The fully qualified policy schema and field name this file is uploaded for. This information will be used to validate the content type of the file.
}
media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for downloading an uploaded file.
"downloadUri": "A String", # The uri for end user to download the file.
}