Class AssetsResource.ListRequest
Lists all public, remixable assets. These are assets with an access level of PUBLIC and published under the CC-By license.
Inheritance
Inherited Members
Namespace: Google.Apis.PolyService.v1
Assembly: Google.Apis.PolyService.v1.dll
Syntax
public class AssetsResource.ListRequest : PolyServiceBaseServiceRequest<ListAssetsResponse>, IClientServiceRequest<ListAssetsResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService)
Constructs a new List request.
Declaration
public ListRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Category
Filter assets based on the specified category. Supported values are: animals
, architecture
, art
,
food
, nature
, objects
, people
, scenes
, technology
, and transport
.
Declaration
[RequestParameter("category", RequestParameterType.Query)]
public virtual string Category { get; set; }
Property Value
Type | Description |
---|---|
string |
Curated
Return only assets that have been curated by the Poly team.
Declaration
[RequestParameter("curated", RequestParameterType.Query)]
public virtual bool? Curated { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Format
Return only assets with the matching format. Acceptable values are: BLOCKS
, FBX
, GLTF
, GLTF2
,
OBJ
, TILT
.
Declaration
[RequestParameter("format", RequestParameterType.Query)]
public virtual string Format { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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.
Declaration
[RequestParameter("keywords", RequestParameterType.Query)]
public virtual string Keywords { get; set; }
Property Value
Type | Description |
---|---|
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.
Declaration
[RequestParameter("maxComplexity", RequestParameterType.Query)]
public virtual AssetsResource.ListRequest.MaxComplexityEnum? MaxComplexity { get; set; }
Property Value
Type | Description |
---|---|
AssetsResource.ListRequest.MaxComplexityEnum? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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.
Declaration
[RequestParameter("orderBy", RequestParameterType.Query)]
public virtual string OrderBy { get; set; }
Property Value
Type | Description |
---|---|
string |
PageSize
The maximum number of assets to be returned. This value must be between 1
and 100
. Defaults to 20
.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
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.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()