gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,287 @@
<?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\PolyService;
class Asset extends \Google\Collection
{
protected $collection_key = 'formats';
/**
* @var string
*/
public $authorName;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
/**
* @var Format[]
*/
public $formats;
protected $formatsType = Format::class;
protected $formatsDataType = 'array';
/**
* @var bool
*/
public $isCurated;
/**
* @var string
*/
public $license;
/**
* @var string
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var PresentationParams
*/
public $presentationParams;
protected $presentationParamsType = PresentationParams::class;
protected $presentationParamsDataType = '';
/**
* @var RemixInfo
*/
public $remixInfo;
protected $remixInfoType = RemixInfo::class;
protected $remixInfoDataType = '';
/**
* @var PolyFile
*/
public $thumbnail;
protected $thumbnailType = PolyFile::class;
protected $thumbnailDataType = '';
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $visibility;
/**
* @param string
*/
public function setAuthorName($authorName)
{
$this->authorName = $authorName;
}
/**
* @return string
*/
public function getAuthorName()
{
return $this->authorName;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param Format[]
*/
public function setFormats($formats)
{
$this->formats = $formats;
}
/**
* @return Format[]
*/
public function getFormats()
{
return $this->formats;
}
/**
* @param bool
*/
public function setIsCurated($isCurated)
{
$this->isCurated = $isCurated;
}
/**
* @return bool
*/
public function getIsCurated()
{
return $this->isCurated;
}
/**
* @param string
*/
public function setLicense($license)
{
$this->license = $license;
}
/**
* @return string
*/
public function getLicense()
{
return $this->license;
}
/**
* @param string
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PresentationParams
*/
public function setPresentationParams(PresentationParams $presentationParams)
{
$this->presentationParams = $presentationParams;
}
/**
* @return PresentationParams
*/
public function getPresentationParams()
{
return $this->presentationParams;
}
/**
* @param RemixInfo
*/
public function setRemixInfo(RemixInfo $remixInfo)
{
$this->remixInfo = $remixInfo;
}
/**
* @return RemixInfo
*/
public function getRemixInfo()
{
return $this->remixInfo;
}
/**
* @param PolyFile
*/
public function setThumbnail(PolyFile $thumbnail)
{
$this->thumbnail = $thumbnail;
}
/**
* @return PolyFile
*/
public function getThumbnail()
{
return $this->thumbnail;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setVisibility($visibility)
{
$this->visibility = $visibility;
}
/**
* @return string
*/
public function getVisibility()
{
return $this->visibility;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Asset::class, 'Google_Service_PolyService_Asset');
@@ -0,0 +1,102 @@
<?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\PolyService;
class AssetImportMessage extends \Google\Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $filePath;
/**
* @var ImageError
*/
public $imageError;
protected $imageErrorType = ImageError::class;
protected $imageErrorDataType = '';
/**
* @var ObjParseError
*/
public $objParseError;
protected $objParseErrorType = ObjParseError::class;
protected $objParseErrorDataType = '';
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
/**
* @param ImageError
*/
public function setImageError(ImageError $imageError)
{
$this->imageError = $imageError;
}
/**
* @return ImageError
*/
public function getImageError()
{
return $this->imageError;
}
/**
* @param ObjParseError
*/
public function setObjParseError(ObjParseError $objParseError)
{
$this->objParseError = $objParseError;
}
/**
* @return ObjParseError
*/
public function getObjParseError()
{
return $this->objParseError;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssetImportMessage::class, 'Google_Service_PolyService_AssetImportMessage');
@@ -0,0 +1,105 @@
<?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\PolyService;
class Format extends \Google\Collection
{
protected $collection_key = 'resources';
/**
* @var FormatComplexity
*/
public $formatComplexity;
protected $formatComplexityType = FormatComplexity::class;
protected $formatComplexityDataType = '';
/**
* @var string
*/
public $formatType;
/**
* @var PolyFile[]
*/
public $resources;
protected $resourcesType = PolyFile::class;
protected $resourcesDataType = 'array';
/**
* @var PolyFile
*/
public $root;
protected $rootType = PolyFile::class;
protected $rootDataType = '';
/**
* @param FormatComplexity
*/
public function setFormatComplexity(FormatComplexity $formatComplexity)
{
$this->formatComplexity = $formatComplexity;
}
/**
* @return FormatComplexity
*/
public function getFormatComplexity()
{
return $this->formatComplexity;
}
/**
* @param string
*/
public function setFormatType($formatType)
{
$this->formatType = $formatType;
}
/**
* @return string
*/
public function getFormatType()
{
return $this->formatType;
}
/**
* @param PolyFile[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return PolyFile[]
*/
public function getResources()
{
return $this->resources;
}
/**
* @param PolyFile
*/
public function setRoot(PolyFile $root)
{
$this->root = $root;
}
/**
* @return PolyFile
*/
public function getRoot()
{
return $this->root;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Format::class, 'Google_Service_PolyService_Format');
@@ -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\PolyService;
class FormatComplexity extends \Google\Model
{
/**
* @var int
*/
public $lodHint;
/**
* @var string
*/
public $triangleCount;
/**
* @param int
*/
public function setLodHint($lodHint)
{
$this->lodHint = $lodHint;
}
/**
* @return int
*/
public function getLodHint()
{
return $this->lodHint;
}
/**
* @param string
*/
public function setTriangleCount($triangleCount)
{
$this->triangleCount = $triangleCount;
}
/**
* @return string
*/
public function getTriangleCount()
{
return $this->triangleCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FormatComplexity::class, 'Google_Service_PolyService_FormatComplexity');
@@ -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\PolyService;
class ImageError extends \Google\Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $filePath;
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageError::class, 'Google_Service_PolyService_ImageError');
@@ -0,0 +1,83 @@
<?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\PolyService;
class ListAssetsResponse extends \Google\Collection
{
protected $collection_key = 'assets';
/**
* @var Asset[]
*/
public $assets;
protected $assetsType = Asset::class;
protected $assetsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param Asset[]
*/
public function setAssets($assets)
{
$this->assets = $assets;
}
/**
* @return Asset[]
*/
public function getAssets()
{
return $this->assets;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAssetsResponse::class, 'Google_Service_PolyService_ListAssetsResponse');
@@ -0,0 +1,83 @@
<?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\PolyService;
class ListLikedAssetsResponse extends \Google\Collection
{
protected $collection_key = 'assets';
/**
* @var Asset[]
*/
public $assets;
protected $assetsType = Asset::class;
protected $assetsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param Asset[]
*/
public function setAssets($assets)
{
$this->assets = $assets;
}
/**
* @return Asset[]
*/
public function getAssets()
{
return $this->assets;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLikedAssetsResponse::class, 'Google_Service_PolyService_ListLikedAssetsResponse');
@@ -0,0 +1,83 @@
<?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\PolyService;
class ListUserAssetsResponse extends \Google\Collection
{
protected $collection_key = 'userAssets';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @var UserAsset[]
*/
public $userAssets;
protected $userAssetsType = UserAsset::class;
protected $userAssetsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
/**
* @param UserAsset[]
*/
public function setUserAssets($userAssets)
{
$this->userAssets = $userAssets;
}
/**
* @return UserAsset[]
*/
public function getUserAssets()
{
return $this->userAssets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListUserAssetsResponse::class, 'Google_Service_PolyService_ListUserAssetsResponse');
@@ -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\PolyService;
class ObjParseError extends \Google\Model
{
/**
* @var string
*/
public $code;
/**
* @var int
*/
public $endIndex;
/**
* @var string
*/
public $filePath;
/**
* @var string
*/
public $line;
/**
* @var int
*/
public $lineNumber;
/**
* @var int
*/
public $startIndex;
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param int
*/
public function setEndIndex($endIndex)
{
$this->endIndex = $endIndex;
}
/**
* @return int
*/
public function getEndIndex()
{
return $this->endIndex;
}
/**
* @param string
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
/**
* @param string
*/
public function setLine($line)
{
$this->line = $line;
}
/**
* @return string
*/
public function getLine()
{
return $this->line;
}
/**
* @param int
*/
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
/**
* @return int
*/
public function getLineNumber()
{
return $this->lineNumber;
}
/**
* @param int
*/
public function setStartIndex($startIndex)
{
$this->startIndex = $startIndex;
}
/**
* @return int
*/
public function getStartIndex()
{
return $this->startIndex;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjParseError::class, 'Google_Service_PolyService_ObjParseError');
@@ -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\PolyService;
class PolyFile extends \Google\Model
{
/**
* @var string
*/
public $contentType;
/**
* @var string
*/
public $relativePath;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* @param string
*/
public function setRelativePath($relativePath)
{
$this->relativePath = $relativePath;
}
/**
* @return string
*/
public function getRelativePath()
{
return $this->relativePath;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PolyFile::class, 'Google_Service_PolyService_PolyFile');
@@ -0,0 +1,82 @@
<?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\PolyService;
class PresentationParams extends \Google\Model
{
/**
* @var string
*/
public $backgroundColor;
/**
* @var string
*/
public $colorSpace;
/**
* @var Quaternion
*/
public $orientingRotation;
protected $orientingRotationType = Quaternion::class;
protected $orientingRotationDataType = '';
/**
* @param string
*/
public function setBackgroundColor($backgroundColor)
{
$this->backgroundColor = $backgroundColor;
}
/**
* @return string
*/
public function getBackgroundColor()
{
return $this->backgroundColor;
}
/**
* @param string
*/
public function setColorSpace($colorSpace)
{
$this->colorSpace = $colorSpace;
}
/**
* @return string
*/
public function getColorSpace()
{
return $this->colorSpace;
}
/**
* @param Quaternion
*/
public function setOrientingRotation(Quaternion $orientingRotation)
{
$this->orientingRotation = $orientingRotation;
}
/**
* @return Quaternion
*/
public function getOrientingRotation()
{
return $this->orientingRotation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PresentationParams::class, 'Google_Service_PolyService_PresentationParams');
@@ -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\PolyService;
class Quaternion extends \Google\Model
{
public $w;
public $x;
public $y;
public $z;
public function setW($w)
{
$this->w = $w;
}
public function getW()
{
return $this->w;
}
public function setX($x)
{
$this->x = $x;
}
public function getX()
{
return $this->x;
}
public function setY($y)
{
$this->y = $y;
}
public function getY()
{
return $this->y;
}
public function setZ($z)
{
$this->z = $z;
}
public function getZ()
{
return $this->z;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Quaternion::class, 'Google_Service_PolyService_Quaternion');
@@ -0,0 +1,45 @@
<?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\PolyService;
class RemixInfo extends \Google\Collection
{
protected $collection_key = 'sourceAsset';
/**
* @var string[]
*/
public $sourceAsset;
/**
* @param string[]
*/
public function setSourceAsset($sourceAsset)
{
$this->sourceAsset = $sourceAsset;
}
/**
* @return string[]
*/
public function getSourceAsset()
{
return $this->sourceAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RemixInfo::class, 'Google_Service_PolyService_RemixInfo');
@@ -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\PolyService\Resource;
use Google\Service\PolyService\Asset;
use Google\Service\PolyService\ListAssetsResponse;
/**
* The "assets" collection of methods.
* Typical usage is:
* <code>
* $polyService = new Google\Service\PolyService(...);
* $assets = $polyService->assets;
* </code>
*/
class Assets extends \Google\Service\Resource
{
/**
* Returns detailed information about an asset given its name. PRIVATE assets
* are returned only if the currently authenticated user (via OAuth token) is
* the author of the asset. (assets.get)
*
* @param string $name Required. An asset's name in the form
* `assets/{ASSET_ID}`.
* @param array $optParams Optional parameters.
* @return Asset
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Asset::class);
}
/**
* Lists all public, remixable assets. These are assets with an access level of
* PUBLIC and published under the CC-By license. (assets.listAssets)
*
* @param array $optParams Optional parameters.
*
* @opt_param string category Filter assets based on the specified category.
* Supported values are: `animals`, `architecture`, `art`, `food`, `nature`,
* `objects`, `people`, `scenes`, `technology`, and `transport`.
* @opt_param bool curated Return only assets that have been curated by the Poly
* team.
* @opt_param string format Return only assets with the matching format.
* Acceptable values are: `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
* @opt_param string keywords One or more search terms to be matched against all
* text that Poly has indexed for assets, which includes display_name,
* description, and tags. Multiple keywords should be separated by spaces.
* @opt_param string maxComplexity Returns assets that are of the specified
* complexity or less. Defaults to COMPLEX. For example, a request for MEDIUM
* assets also includes SIMPLE assets.
* @opt_param string orderBy Specifies an ordering for assets. Acceptable values
* are: `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets based
* on a combination of popularity and other features.
* @opt_param int pageSize The maximum number of assets to be returned. This
* value must be between `1` and `100`. Defaults to `20`.
* @opt_param string pageToken Specifies a continuation token from a previous
* search whose results were split into multiple pages. To get the next page,
* submit the same request specifying the value from next_page_token.
* @return ListAssetsResponse
*/
public function listAssets($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAssetsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Assets::class, 'Google_Service_PolyService_Resource_Assets');
@@ -0,0 +1,33 @@
<?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\PolyService\Resource;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $polyService = new Google\Service\PolyService(...);
* $users = $polyService->users;
* </code>
*/
class Users extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Users::class, 'Google_Service_PolyService_Resource_Users');
@@ -0,0 +1,66 @@
<?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\PolyService\Resource;
use Google\Service\PolyService\ListUserAssetsResponse;
/**
* The "assets" collection of methods.
* Typical usage is:
* <code>
* $polyService = new Google\Service\PolyService(...);
* $assets = $polyService->users_assets;
* </code>
*/
class UsersAssets extends \Google\Service\Resource
{
/**
* Lists assets authored by the given user. Only the value 'me', representing
* the currently-authenticated user, is supported. May include assets with an
* access level of PRIVATE or UNLISTED and assets which are All Rights Reserved
* for the currently-authenticated user. (assets.listUsersAssets)
*
* @param string $name A valid user id. Currently, only the special value 'me',
* representing the currently-authenticated user is supported. To use 'me', you
* must pass an OAuth token with the request.
* @param array $optParams Optional parameters.
*
* @opt_param string format Return only assets with the matching format.
* Acceptable values are: `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`.
* @opt_param string orderBy Specifies an ordering for assets. Acceptable values
* are: `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets based
* on a combination of popularity and other features.
* @opt_param int pageSize The maximum number of assets to be returned. This
* value must be between `1` and `100`. Defaults to `20`.
* @opt_param string pageToken Specifies a continuation token from a previous
* search whose results were split into multiple pages. To get the next page,
* submit the same request specifying the value from next_page_token.
* @opt_param string visibility The visibility of the assets to be returned.
* Defaults to VISIBILITY_UNSPECIFIED which returns all assets.
* @return ListUserAssetsResponse
*/
public function listUsersAssets($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUserAssetsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersAssets::class, 'Google_Service_PolyService_Resource_UsersAssets');
@@ -0,0 +1,63 @@
<?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\PolyService\Resource;
use Google\Service\PolyService\ListLikedAssetsResponse;
/**
* The "likedassets" collection of methods.
* Typical usage is:
* <code>
* $polyService = new Google\Service\PolyService(...);
* $likedassets = $polyService->users_likedassets;
* </code>
*/
class UsersLikedassets extends \Google\Service\Resource
{
/**
* Lists assets that the user has liked. Only the value 'me', representing the
* currently-authenticated user, is supported. May include assets with an access
* level of UNLISTED. (likedassets.listUsersLikedassets)
*
* @param string $name A valid user id. Currently, only the special value 'me',
* representing the currently-authenticated user is supported. To use 'me', you
* must pass an OAuth token with the request.
* @param array $optParams Optional parameters.
*
* @opt_param string format Return only assets with the matching format.
* Acceptable values are: `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
* @opt_param string orderBy Specifies an ordering for assets. Acceptable values
* are: `BEST`, `NEWEST`, `OLDEST`, 'LIKED_TIME'. Defaults to `LIKED_TIME`,
* which ranks assets based on how recently they were liked.
* @opt_param int pageSize The maximum number of assets to be returned. This
* value must be between `1` and `100`. Defaults to `20`.
* @opt_param string pageToken Specifies a continuation token from a previous
* search whose results were split into multiple pages. To get the next page,
* submit the same request specifying the value from next_page_token.
* @return ListLikedAssetsResponse
*/
public function listUsersLikedassets($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLikedAssetsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersLikedassets::class, 'Google_Service_PolyService_Resource_UsersLikedassets');
@@ -0,0 +1,101 @@
<?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\PolyService;
class StartAssetImportResponse extends \Google\Collection
{
protected $collection_key = 'assetImportMessages';
/**
* @var string
*/
public $assetId;
/**
* @var string
*/
public $assetImportId;
/**
* @var AssetImportMessage[]
*/
public $assetImportMessages;
protected $assetImportMessagesType = AssetImportMessage::class;
protected $assetImportMessagesDataType = 'array';
/**
* @var string
*/
public $publishUrl;
/**
* @param string
*/
public function setAssetId($assetId)
{
$this->assetId = $assetId;
}
/**
* @return string
*/
public function getAssetId()
{
return $this->assetId;
}
/**
* @param string
*/
public function setAssetImportId($assetImportId)
{
$this->assetImportId = $assetImportId;
}
/**
* @return string
*/
public function getAssetImportId()
{
return $this->assetImportId;
}
/**
* @param AssetImportMessage[]
*/
public function setAssetImportMessages($assetImportMessages)
{
$this->assetImportMessages = $assetImportMessages;
}
/**
* @return AssetImportMessage[]
*/
public function getAssetImportMessages()
{
return $this->assetImportMessages;
}
/**
* @param string
*/
public function setPublishUrl($publishUrl)
{
$this->publishUrl = $publishUrl;
}
/**
* @return string
*/
public function getPublishUrl()
{
return $this->publishUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartAssetImportResponse::class, 'Google_Service_PolyService_StartAssetImportResponse');
@@ -0,0 +1,46 @@
<?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\PolyService;
class UserAsset extends \Google\Model
{
/**
* @var Asset
*/
public $asset;
protected $assetType = Asset::class;
protected $assetDataType = '';
/**
* @param Asset
*/
public function setAsset(Asset $asset)
{
$this->asset = $asset;
}
/**
* @return Asset
*/
public function getAsset()
{
return $this->asset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserAsset::class, 'Google_Service_PolyService_UserAsset');