/var/www/flurhymez/vendor/google/apiclient-services/src/PolyService/Resource
Edit: /var/www/flurhymez/vendor/google/apiclient-services/src/PolyService/Resource/UsersAssets.php (2854B)
* $polyService = new Google\Service\PolyService(...);
* $assets = $polyService->assets;
*
*/
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');