Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataBlobstore2Info extends \Google\Model
{
/**
* @var string
*/
public $blobGeneration;
/**
* @var string
*/
public $blobId;
/**
* @var string
*/
public $downloadReadHandle;
/**
* @var string
*/
public $readToken;
/**
* @var string
*/
public $uploadMetadataContainer;
/**
* @param string
*/
public function setBlobGeneration($blobGeneration)
{
$this->blobGeneration = $blobGeneration;
}
/**
* @return string
*/
public function getBlobGeneration()
{
return $this->blobGeneration;
}
/**
* @param string
*/
public function setBlobId($blobId)
{
$this->blobId = $blobId;
}
/**
* @return string
*/
public function getBlobId()
{
return $this->blobId;
}
/**
* @param string
*/
public function setDownloadReadHandle($downloadReadHandle)
{
$this->downloadReadHandle = $downloadReadHandle;
}
/**
* @return string
*/
public function getDownloadReadHandle()
{
return $this->downloadReadHandle;
}
/**
* @param string
*/
public function setReadToken($readToken)
{
$this->readToken = $readToken;
}
/**
* @return string
*/
public function getReadToken()
{
return $this->readToken;
}
/**
* @param string
*/
public function setUploadMetadataContainer($uploadMetadataContainer)
{
$this->uploadMetadataContainer = $uploadMetadataContainer;
}
/**
* @return string
*/
public function getUploadMetadataContainer()
{
return $this->uploadMetadataContainer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataBlobstore2Info::class, 'Google_Service_YouTubeReporting_GdataBlobstore2Info');

View File

@@ -0,0 +1,220 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataCompositeMedia extends \Google\Model
{
/**
* @var string
*/
public $blobRef;
protected $blobstore2InfoType = GdataBlobstore2Info::class;
protected $blobstore2InfoDataType = '';
/**
* @var string
*/
public $cosmoBinaryReference;
/**
* @var string
*/
public $crc32cHash;
/**
* @var string
*/
public $inline;
/**
* @var string
*/
public $length;
/**
* @var string
*/
public $md5Hash;
protected $objectIdType = GdataObjectId::class;
protected $objectIdDataType = '';
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $referenceType;
/**
* @var string
*/
public $sha1Hash;
/**
* @param string
*/
public function setBlobRef($blobRef)
{
$this->blobRef = $blobRef;
}
/**
* @return string
*/
public function getBlobRef()
{
return $this->blobRef;
}
/**
* @param GdataBlobstore2Info
*/
public function setBlobstore2Info(GdataBlobstore2Info $blobstore2Info)
{
$this->blobstore2Info = $blobstore2Info;
}
/**
* @return GdataBlobstore2Info
*/
public function getBlobstore2Info()
{
return $this->blobstore2Info;
}
/**
* @param string
*/
public function setCosmoBinaryReference($cosmoBinaryReference)
{
$this->cosmoBinaryReference = $cosmoBinaryReference;
}
/**
* @return string
*/
public function getCosmoBinaryReference()
{
return $this->cosmoBinaryReference;
}
/**
* @param string
*/
public function setCrc32cHash($crc32cHash)
{
$this->crc32cHash = $crc32cHash;
}
/**
* @return string
*/
public function getCrc32cHash()
{
return $this->crc32cHash;
}
/**
* @param string
*/
public function setInline($inline)
{
$this->inline = $inline;
}
/**
* @return string
*/
public function getInline()
{
return $this->inline;
}
/**
* @param string
*/
public function setLength($length)
{
$this->length = $length;
}
/**
* @return string
*/
public function getLength()
{
return $this->length;
}
/**
* @param string
*/
public function setMd5Hash($md5Hash)
{
$this->md5Hash = $md5Hash;
}
/**
* @return string
*/
public function getMd5Hash()
{
return $this->md5Hash;
}
/**
* @param GdataObjectId
*/
public function setObjectId(GdataObjectId $objectId)
{
$this->objectId = $objectId;
}
/**
* @return GdataObjectId
*/
public function getObjectId()
{
return $this->objectId;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setReferenceType($referenceType)
{
$this->referenceType = $referenceType;
}
/**
* @return string
*/
public function getReferenceType()
{
return $this->referenceType;
}
/**
* @param string
*/
public function setSha1Hash($sha1Hash)
{
$this->sha1Hash = $sha1Hash;
}
/**
* @return string
*/
public function getSha1Hash()
{
return $this->sha1Hash;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataCompositeMedia::class, 'Google_Service_YouTubeReporting_GdataCompositeMedia');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataContentTypeInfo extends \Google\Model
{
/**
* @var string
*/
public $bestGuess;
/**
* @var string
*/
public $fromBytes;
/**
* @var string
*/
public $fromFileName;
/**
* @var string
*/
public $fromHeader;
/**
* @var string
*/
public $fromUrlPath;
/**
* @param string
*/
public function setBestGuess($bestGuess)
{
$this->bestGuess = $bestGuess;
}
/**
* @return string
*/
public function getBestGuess()
{
return $this->bestGuess;
}
/**
* @param string
*/
public function setFromBytes($fromBytes)
{
$this->fromBytes = $fromBytes;
}
/**
* @return string
*/
public function getFromBytes()
{
return $this->fromBytes;
}
/**
* @param string
*/
public function setFromFileName($fromFileName)
{
$this->fromFileName = $fromFileName;
}
/**
* @return string
*/
public function getFromFileName()
{
return $this->fromFileName;
}
/**
* @param string
*/
public function setFromHeader($fromHeader)
{
$this->fromHeader = $fromHeader;
}
/**
* @return string
*/
public function getFromHeader()
{
return $this->fromHeader;
}
/**
* @param string
*/
public function setFromUrlPath($fromUrlPath)
{
$this->fromUrlPath = $fromUrlPath;
}
/**
* @return string
*/
public function getFromUrlPath()
{
return $this->fromUrlPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataContentTypeInfo::class, 'Google_Service_YouTubeReporting_GdataContentTypeInfo');

View File

@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataDiffChecksumsResponse extends \Google\Model
{
protected $checksumsLocationType = GdataCompositeMedia::class;
protected $checksumsLocationDataType = '';
/**
* @var string
*/
public $chunkSizeBytes;
protected $objectLocationType = GdataCompositeMedia::class;
protected $objectLocationDataType = '';
/**
* @var string
*/
public $objectSizeBytes;
/**
* @var string
*/
public $objectVersion;
/**
* @param GdataCompositeMedia
*/
public function setChecksumsLocation(GdataCompositeMedia $checksumsLocation)
{
$this->checksumsLocation = $checksumsLocation;
}
/**
* @return GdataCompositeMedia
*/
public function getChecksumsLocation()
{
return $this->checksumsLocation;
}
/**
* @param string
*/
public function setChunkSizeBytes($chunkSizeBytes)
{
$this->chunkSizeBytes = $chunkSizeBytes;
}
/**
* @return string
*/
public function getChunkSizeBytes()
{
return $this->chunkSizeBytes;
}
/**
* @param GdataCompositeMedia
*/
public function setObjectLocation(GdataCompositeMedia $objectLocation)
{
$this->objectLocation = $objectLocation;
}
/**
* @return GdataCompositeMedia
*/
public function getObjectLocation()
{
return $this->objectLocation;
}
/**
* @param string
*/
public function setObjectSizeBytes($objectSizeBytes)
{
$this->objectSizeBytes = $objectSizeBytes;
}
/**
* @return string
*/
public function getObjectSizeBytes()
{
return $this->objectSizeBytes;
}
/**
* @param string
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataDiffChecksumsResponse::class, 'Google_Service_YouTubeReporting_GdataDiffChecksumsResponse');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataDiffDownloadResponse extends \Google\Model
{
protected $objectLocationType = GdataCompositeMedia::class;
protected $objectLocationDataType = '';
/**
* @param GdataCompositeMedia
*/
public function setObjectLocation(GdataCompositeMedia $objectLocation)
{
$this->objectLocation = $objectLocation;
}
/**
* @return GdataCompositeMedia
*/
public function getObjectLocation()
{
return $this->objectLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataDiffDownloadResponse::class, 'Google_Service_YouTubeReporting_GdataDiffDownloadResponse');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataDiffUploadRequest extends \Google\Model
{
protected $checksumsInfoType = GdataCompositeMedia::class;
protected $checksumsInfoDataType = '';
protected $objectInfoType = GdataCompositeMedia::class;
protected $objectInfoDataType = '';
/**
* @var string
*/
public $objectVersion;
/**
* @param GdataCompositeMedia
*/
public function setChecksumsInfo(GdataCompositeMedia $checksumsInfo)
{
$this->checksumsInfo = $checksumsInfo;
}
/**
* @return GdataCompositeMedia
*/
public function getChecksumsInfo()
{
return $this->checksumsInfo;
}
/**
* @param GdataCompositeMedia
*/
public function setObjectInfo(GdataCompositeMedia $objectInfo)
{
$this->objectInfo = $objectInfo;
}
/**
* @return GdataCompositeMedia
*/
public function getObjectInfo()
{
return $this->objectInfo;
}
/**
* @param string
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataDiffUploadRequest::class, 'Google_Service_YouTubeReporting_GdataDiffUploadRequest');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataDiffUploadResponse extends \Google\Model
{
/**
* @var string
*/
public $objectVersion;
protected $originalObjectType = GdataCompositeMedia::class;
protected $originalObjectDataType = '';
/**
* @param string
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
/**
* @param GdataCompositeMedia
*/
public function setOriginalObject(GdataCompositeMedia $originalObject)
{
$this->originalObject = $originalObject;
}
/**
* @return GdataCompositeMedia
*/
public function getOriginalObject()
{
return $this->originalObject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataDiffUploadResponse::class, 'Google_Service_YouTubeReporting_GdataDiffUploadResponse');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataDiffVersionResponse extends \Google\Model
{
/**
* @var string
*/
public $objectSizeBytes;
/**
* @var string
*/
public $objectVersion;
/**
* @param string
*/
public function setObjectSizeBytes($objectSizeBytes)
{
$this->objectSizeBytes = $objectSizeBytes;
}
/**
* @return string
*/
public function getObjectSizeBytes()
{
return $this->objectSizeBytes;
}
/**
* @param string
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataDiffVersionResponse::class, 'Google_Service_YouTubeReporting_GdataDiffVersionResponse');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataDownloadParameters extends \Google\Model
{
/**
* @var bool
*/
public $allowGzipCompression;
/**
* @var bool
*/
public $ignoreRange;
/**
* @param bool
*/
public function setAllowGzipCompression($allowGzipCompression)
{
$this->allowGzipCompression = $allowGzipCompression;
}
/**
* @return bool
*/
public function getAllowGzipCompression()
{
return $this->allowGzipCompression;
}
/**
* @param bool
*/
public function setIgnoreRange($ignoreRange)
{
$this->ignoreRange = $ignoreRange;
}
/**
* @return bool
*/
public function getIgnoreRange()
{
return $this->ignoreRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataDownloadParameters::class, 'Google_Service_YouTubeReporting_GdataDownloadParameters');

View File

@@ -0,0 +1,547 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataMedia extends \Google\Collection
{
protected $collection_key = 'compositeMedia';
/**
* @var string
*/
public $algorithm;
/**
* @var string
*/
public $bigstoreObjectRef;
/**
* @var string
*/
public $blobRef;
protected $blobstore2InfoType = GdataBlobstore2Info::class;
protected $blobstore2InfoDataType = '';
protected $compositeMediaType = GdataCompositeMedia::class;
protected $compositeMediaDataType = 'array';
/**
* @var string
*/
public $contentType;
protected $contentTypeInfoType = GdataContentTypeInfo::class;
protected $contentTypeInfoDataType = '';
/**
* @var string
*/
public $cosmoBinaryReference;
/**
* @var string
*/
public $crc32cHash;
protected $diffChecksumsResponseType = GdataDiffChecksumsResponse::class;
protected $diffChecksumsResponseDataType = '';
protected $diffDownloadResponseType = GdataDiffDownloadResponse::class;
protected $diffDownloadResponseDataType = '';
protected $diffUploadRequestType = GdataDiffUploadRequest::class;
protected $diffUploadRequestDataType = '';
protected $diffUploadResponseType = GdataDiffUploadResponse::class;
protected $diffUploadResponseDataType = '';
protected $diffVersionResponseType = GdataDiffVersionResponse::class;
protected $diffVersionResponseDataType = '';
protected $downloadParametersType = GdataDownloadParameters::class;
protected $downloadParametersDataType = '';
/**
* @var string
*/
public $filename;
/**
* @var string
*/
public $hash;
/**
* @var bool
*/
public $hashVerified;
/**
* @var string
*/
public $inline;
/**
* @var bool
*/
public $isPotentialRetry;
/**
* @var string
*/
public $length;
/**
* @var string
*/
public $md5Hash;
/**
* @var string
*/
public $mediaId;
protected $objectIdType = GdataObjectId::class;
protected $objectIdDataType = '';
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $referenceType;
/**
* @var string
*/
public $sha1Hash;
/**
* @var string
*/
public $sha256Hash;
/**
* @var string
*/
public $timestamp;
/**
* @var string
*/
public $token;
/**
* @param string
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @return string
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* @param string
*/
public function setBigstoreObjectRef($bigstoreObjectRef)
{
$this->bigstoreObjectRef = $bigstoreObjectRef;
}
/**
* @return string
*/
public function getBigstoreObjectRef()
{
return $this->bigstoreObjectRef;
}
/**
* @param string
*/
public function setBlobRef($blobRef)
{
$this->blobRef = $blobRef;
}
/**
* @return string
*/
public function getBlobRef()
{
return $this->blobRef;
}
/**
* @param GdataBlobstore2Info
*/
public function setBlobstore2Info(GdataBlobstore2Info $blobstore2Info)
{
$this->blobstore2Info = $blobstore2Info;
}
/**
* @return GdataBlobstore2Info
*/
public function getBlobstore2Info()
{
return $this->blobstore2Info;
}
/**
* @param GdataCompositeMedia[]
*/
public function setCompositeMedia($compositeMedia)
{
$this->compositeMedia = $compositeMedia;
}
/**
* @return GdataCompositeMedia[]
*/
public function getCompositeMedia()
{
return $this->compositeMedia;
}
/**
* @param string
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* @param GdataContentTypeInfo
*/
public function setContentTypeInfo(GdataContentTypeInfo $contentTypeInfo)
{
$this->contentTypeInfo = $contentTypeInfo;
}
/**
* @return GdataContentTypeInfo
*/
public function getContentTypeInfo()
{
return $this->contentTypeInfo;
}
/**
* @param string
*/
public function setCosmoBinaryReference($cosmoBinaryReference)
{
$this->cosmoBinaryReference = $cosmoBinaryReference;
}
/**
* @return string
*/
public function getCosmoBinaryReference()
{
return $this->cosmoBinaryReference;
}
/**
* @param string
*/
public function setCrc32cHash($crc32cHash)
{
$this->crc32cHash = $crc32cHash;
}
/**
* @return string
*/
public function getCrc32cHash()
{
return $this->crc32cHash;
}
/**
* @param GdataDiffChecksumsResponse
*/
public function setDiffChecksumsResponse(GdataDiffChecksumsResponse $diffChecksumsResponse)
{
$this->diffChecksumsResponse = $diffChecksumsResponse;
}
/**
* @return GdataDiffChecksumsResponse
*/
public function getDiffChecksumsResponse()
{
return $this->diffChecksumsResponse;
}
/**
* @param GdataDiffDownloadResponse
*/
public function setDiffDownloadResponse(GdataDiffDownloadResponse $diffDownloadResponse)
{
$this->diffDownloadResponse = $diffDownloadResponse;
}
/**
* @return GdataDiffDownloadResponse
*/
public function getDiffDownloadResponse()
{
return $this->diffDownloadResponse;
}
/**
* @param GdataDiffUploadRequest
*/
public function setDiffUploadRequest(GdataDiffUploadRequest $diffUploadRequest)
{
$this->diffUploadRequest = $diffUploadRequest;
}
/**
* @return GdataDiffUploadRequest
*/
public function getDiffUploadRequest()
{
return $this->diffUploadRequest;
}
/**
* @param GdataDiffUploadResponse
*/
public function setDiffUploadResponse(GdataDiffUploadResponse $diffUploadResponse)
{
$this->diffUploadResponse = $diffUploadResponse;
}
/**
* @return GdataDiffUploadResponse
*/
public function getDiffUploadResponse()
{
return $this->diffUploadResponse;
}
/**
* @param GdataDiffVersionResponse
*/
public function setDiffVersionResponse(GdataDiffVersionResponse $diffVersionResponse)
{
$this->diffVersionResponse = $diffVersionResponse;
}
/**
* @return GdataDiffVersionResponse
*/
public function getDiffVersionResponse()
{
return $this->diffVersionResponse;
}
/**
* @param GdataDownloadParameters
*/
public function setDownloadParameters(GdataDownloadParameters $downloadParameters)
{
$this->downloadParameters = $downloadParameters;
}
/**
* @return GdataDownloadParameters
*/
public function getDownloadParameters()
{
return $this->downloadParameters;
}
/**
* @param string
*/
public function setFilename($filename)
{
$this->filename = $filename;
}
/**
* @return string
*/
public function getFilename()
{
return $this->filename;
}
/**
* @param string
*/
public function setHash($hash)
{
$this->hash = $hash;
}
/**
* @return string
*/
public function getHash()
{
return $this->hash;
}
/**
* @param bool
*/
public function setHashVerified($hashVerified)
{
$this->hashVerified = $hashVerified;
}
/**
* @return bool
*/
public function getHashVerified()
{
return $this->hashVerified;
}
/**
* @param string
*/
public function setInline($inline)
{
$this->inline = $inline;
}
/**
* @return string
*/
public function getInline()
{
return $this->inline;
}
/**
* @param bool
*/
public function setIsPotentialRetry($isPotentialRetry)
{
$this->isPotentialRetry = $isPotentialRetry;
}
/**
* @return bool
*/
public function getIsPotentialRetry()
{
return $this->isPotentialRetry;
}
/**
* @param string
*/
public function setLength($length)
{
$this->length = $length;
}
/**
* @return string
*/
public function getLength()
{
return $this->length;
}
/**
* @param string
*/
public function setMd5Hash($md5Hash)
{
$this->md5Hash = $md5Hash;
}
/**
* @return string
*/
public function getMd5Hash()
{
return $this->md5Hash;
}
/**
* @param string
*/
public function setMediaId($mediaId)
{
$this->mediaId = $mediaId;
}
/**
* @return string
*/
public function getMediaId()
{
return $this->mediaId;
}
/**
* @param GdataObjectId
*/
public function setObjectId(GdataObjectId $objectId)
{
$this->objectId = $objectId;
}
/**
* @return GdataObjectId
*/
public function getObjectId()
{
return $this->objectId;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setReferenceType($referenceType)
{
$this->referenceType = $referenceType;
}
/**
* @return string
*/
public function getReferenceType()
{
return $this->referenceType;
}
/**
* @param string
*/
public function setSha1Hash($sha1Hash)
{
$this->sha1Hash = $sha1Hash;
}
/**
* @return string
*/
public function getSha1Hash()
{
return $this->sha1Hash;
}
/**
* @param string
*/
public function setSha256Hash($sha256Hash)
{
$this->sha256Hash = $sha256Hash;
}
/**
* @return string
*/
public function getSha256Hash()
{
return $this->sha256Hash;
}
/**
* @param string
*/
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
/**
* @return string
*/
public function getTimestamp()
{
return $this->timestamp;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataMedia::class, 'Google_Service_YouTubeReporting_GdataMedia');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class GdataObjectId extends \Google\Model
{
/**
* @var string
*/
public $bucketName;
/**
* @var string
*/
public $generation;
/**
* @var string
*/
public $objectName;
/**
* @param string
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* @param string
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* @param string
*/
public function setObjectName($objectName)
{
$this->objectName = $objectName;
}
/**
* @return string
*/
public function getObjectName()
{
return $this->objectName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GdataObjectId::class, 'Google_Service_YouTubeReporting_GdataObjectId');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class Job extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $reportTypeId;
/**
* @var bool
*/
public $systemManaged;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setReportTypeId($reportTypeId)
{
$this->reportTypeId = $reportTypeId;
}
/**
* @return string
*/
public function getReportTypeId()
{
return $this->reportTypeId;
}
/**
* @param bool
*/
public function setSystemManaged($systemManaged)
{
$this->systemManaged = $systemManaged;
}
/**
* @return bool
*/
public function getSystemManaged()
{
return $this->systemManaged;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Job::class, 'Google_Service_YouTubeReporting_Job');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class ListJobsResponse extends \Google\Collection
{
protected $collection_key = 'jobs';
protected $jobsType = Job::class;
protected $jobsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Job[]
*/
public function setJobs($jobs)
{
$this->jobs = $jobs;
}
/**
* @return Job[]
*/
public function getJobs()
{
return $this->jobs;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListJobsResponse::class, 'Google_Service_YouTubeReporting_ListJobsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class ListReportTypesResponse extends \Google\Collection
{
protected $collection_key = 'reportTypes';
/**
* @var string
*/
public $nextPageToken;
protected $reportTypesType = ReportType::class;
protected $reportTypesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ReportType[]
*/
public function setReportTypes($reportTypes)
{
$this->reportTypes = $reportTypes;
}
/**
* @return ReportType[]
*/
public function getReportTypes()
{
return $this->reportTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListReportTypesResponse::class, 'Google_Service_YouTubeReporting_ListReportTypesResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class ListReportsResponse extends \Google\Collection
{
protected $collection_key = 'reports';
/**
* @var string
*/
public $nextPageToken;
protected $reportsType = Report::class;
protected $reportsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Report[]
*/
public function setReports($reports)
{
$this->reports = $reports;
}
/**
* @return Report[]
*/
public function getReports()
{
return $this->reports;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListReportsResponse::class, 'Google_Service_YouTubeReporting_ListReportsResponse');

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class Report extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $downloadUrl;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $jobExpireTime;
/**
* @var string
*/
public $jobId;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDownloadUrl($downloadUrl)
{
$this->downloadUrl = $downloadUrl;
}
/**
* @return string
*/
public function getDownloadUrl()
{
return $this->downloadUrl;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setJobExpireTime($jobExpireTime)
{
$this->jobExpireTime = $jobExpireTime;
}
/**
* @return string
*/
public function getJobExpireTime()
{
return $this->jobExpireTime;
}
/**
* @param string
*/
public function setJobId($jobId)
{
$this->jobId = $jobId;
}
/**
* @return string
*/
public function getJobId()
{
return $this->jobId;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Report::class, 'Google_Service_YouTubeReporting_Report');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class ReportType extends \Google\Model
{
/**
* @var string
*/
public $deprecateTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $systemManaged;
/**
* @param string
*/
public function setDeprecateTime($deprecateTime)
{
$this->deprecateTime = $deprecateTime;
}
/**
* @return string
*/
public function getDeprecateTime()
{
return $this->deprecateTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setSystemManaged($systemManaged)
{
$this->systemManaged = $systemManaged;
}
/**
* @return bool
*/
public function getSystemManaged()
{
return $this->systemManaged;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportType::class, 'Google_Service_YouTubeReporting_ReportType');

View File

@@ -0,0 +1,117 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting\Resource;
use Google\Service\YouTubeReporting\Job;
use Google\Service\YouTubeReporting\ListJobsResponse;
use Google\Service\YouTubeReporting\YoutubereportingEmpty;
/**
* The "jobs" collection of methods.
* Typical usage is:
* <code>
* $youtubereportingService = new Google\Service\YouTubeReporting(...);
* $jobs = $youtubereportingService->jobs;
* </code>
*/
class Jobs extends \Google\Service\Resource
{
/**
* Creates a job and returns it. (jobs.create)
*
* @param Job $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
* which behalf the user is acting on. If not set, the user is acting for
* himself (his own channel).
* @return Job
* @throws \Google\Service\Exception
*/
public function create(Job $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Job::class);
}
/**
* Deletes a job. (jobs.delete)
*
* @param string $jobId The ID of the job to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
* which behalf the user is acting on. If not set, the user is acting for
* himself (his own channel).
* @return YoutubereportingEmpty
* @throws \Google\Service\Exception
*/
public function delete($jobId, $optParams = [])
{
$params = ['jobId' => $jobId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], YoutubereportingEmpty::class);
}
/**
* Gets a job. (jobs.get)
*
* @param string $jobId The ID of the job to retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
* which behalf the user is acting on. If not set, the user is acting for
* himself (his own channel).
* @return Job
* @throws \Google\Service\Exception
*/
public function get($jobId, $optParams = [])
{
$params = ['jobId' => $jobId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Job::class);
}
/**
* Lists jobs. (jobs.listJobs)
*
* @param array $optParams Optional parameters.
*
* @opt_param bool includeSystemManaged If set to true, also system-managed jobs
* will be returned; otherwise only user-created jobs will be returned. System-
* managed jobs can neither be modified nor deleted.
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
* which behalf the user is acting on. If not set, the user is acting for
* himself (his own channel).
* @opt_param int pageSize Requested page size. Server may return fewer jobs
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListReportTypesResponse.next_page_token returned in response to the previous
* call to the `ListJobs` method.
* @return ListJobsResponse
* @throws \Google\Service\Exception
*/
public function listJobs($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListJobsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Jobs::class, 'Google_Service_YouTubeReporting_Resource_Jobs');

View File

@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting\Resource;
use Google\Service\YouTubeReporting\ListReportsResponse;
use Google\Service\YouTubeReporting\Report;
/**
* The "reports" collection of methods.
* Typical usage is:
* <code>
* $youtubereportingService = new Google\Service\YouTubeReporting(...);
* $reports = $youtubereportingService->jobs_reports;
* </code>
*/
class JobsReports extends \Google\Service\Resource
{
/**
* Gets the metadata of a specific report. (reports.get)
*
* @param string $jobId The ID of the job.
* @param string $reportId The ID of the report to retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
* which behalf the user is acting on. If not set, the user is acting for
* himself (his own channel).
* @return Report
* @throws \Google\Service\Exception
*/
public function get($jobId, $reportId, $optParams = [])
{
$params = ['jobId' => $jobId, 'reportId' => $reportId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Report::class);
}
/**
* Lists reports created by a specific job. Returns NOT_FOUND if the job does
* not exist. (reports.listJobsReports)
*
* @param string $jobId The ID of the job.
* @param array $optParams Optional parameters.
*
* @opt_param string createdAfter If set, only reports created after the
* specified date/time are returned.
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
* which behalf the user is acting on. If not set, the user is acting for
* himself (his own channel).
* @opt_param int pageSize Requested page size. Server may return fewer report
* types than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListReportsResponse.next_page_token returned in response to the previous call
* to the `ListReports` method.
* @opt_param string startTimeAtOrAfter If set, only reports whose start time is
* greater than or equal the specified date/time are returned.
* @opt_param string startTimeBefore If set, only reports whose start time is
* smaller than the specified date/time are returned.
* @return ListReportsResponse
* @throws \Google\Service\Exception
*/
public function listJobsReports($jobId, $optParams = [])
{
$params = ['jobId' => $jobId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReportsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JobsReports::class, 'Google_Service_YouTubeReporting_Resource_JobsReports');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting\Resource;
use Google\Service\YouTubeReporting\GdataMedia;
/**
* The "media" collection of methods.
* Typical usage is:
* <code>
* $youtubereportingService = new Google\Service\YouTubeReporting(...);
* $media = $youtubereportingService->media;
* </code>
*/
class Media extends \Google\Service\Resource
{
/**
* Method for media download. Download is supported on the URI
* `/v1/media/{+name}?alt=media`. (media.download)
*
* @param string $resourceName Name of the media that is being downloaded.
* @param array $optParams Optional parameters.
* @return GdataMedia
* @throws \Google\Service\Exception
*/
public function download($resourceName, $optParams = [])
{
$params = ['resourceName' => $resourceName];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], GdataMedia::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_YouTubeReporting_Resource_Media');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting\Resource;
use Google\Service\YouTubeReporting\ListReportTypesResponse;
/**
* The "reportTypes" collection of methods.
* Typical usage is:
* <code>
* $youtubereportingService = new Google\Service\YouTubeReporting(...);
* $reportTypes = $youtubereportingService->reportTypes;
* </code>
*/
class ReportTypes extends \Google\Service\Resource
{
/**
* Lists report types. (reportTypes.listReportTypes)
*
* @param array $optParams Optional parameters.
*
* @opt_param bool includeSystemManaged If set to true, also system-managed
* report types will be returned; otherwise only the report types that can be
* used to create new reporting jobs will be returned.
* @opt_param string onBehalfOfContentOwner The content owner's external ID on
* which behalf the user is acting on. If not set, the user is acting for
* himself (his own channel).
* @opt_param int pageSize Requested page size. Server may return fewer report
* types than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListReportTypesResponse.next_page_token returned in response to the previous
* call to the `ListReportTypes` method.
* @return ListReportTypesResponse
* @throws \Google\Service\Exception
*/
public function listReportTypes($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReportTypesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportTypes::class, 'Google_Service_YouTubeReporting_Resource_ReportTypes');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\YouTubeReporting;
class YoutubereportingEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(YoutubereportingEmpty::class, 'Google_Service_YouTubeReporting_YoutubereportingEmpty');