class Media extends Resource (View source)

The "media" collection of methods.

Typical usage is:

 $chromepolicyService = new Google\Service\ChromePolicy(...);
 $media = $chromepolicyService->media;

Methods

upload(string $customer, GoogleChromePolicyVersionsV1UploadPolicyFileRequest $postBody, array $optParams = [])

Creates an enterprise file from the content provided by user. Returns a public download url for end user. (media.upload)

Details

GoogleChromePolicyVersionsV1UploadPolicyFileResponse upload(string $customer, GoogleChromePolicyVersionsV1UploadPolicyFileRequest $postBody, array $optParams = [])

Creates an enterprise file from the content provided by user. Returns a public download url for end user. (media.upload)

Parameters

string $customer

Required. The customer for which the file upload will apply.

GoogleChromePolicyVersionsV1UploadPolicyFileRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleChromePolicyVersionsV1UploadPolicyFileResponse

Exceptions

Exception