Create
|
|||||
|
|
Creates and returns a new ProductSet resource.
Possible errors:
- Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- View and manage your data across Google Cloud Platform services
- Apply machine learning models to understand and label images
Input
This building block consumes 10 input parameters
Name | Format | Description |
---|---|---|
parent Required |
STRING |
The project in which the ProductSet should be created. Format is |
productSetId |
STRING |
A user-supplied resource id for this ProductSet. If set, the server will
attempt to use this value as the resource id. If it is already in use, an
error is returned with code ALREADY_EXISTS. Must be at most 128 characters
long. It cannot contain the character |
indexTime |
ANY |
Output only. The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this timestamp is the default value "1970-01-01T00:00:00Z". This field is ignored when creating a ProductSet |
indexError |
OBJECT |
The You can find out more about this error model and how to work with it in the API Design Guide |
indexError.code |
INTEGER |
The status code, which should be an enum value of google.rpc.Code |
indexError.message |
STRING |
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client |
indexError.details[] |
OBJECT |
|
indexError.details[].customKey.value Required |
ANY |
|
name |
STRING |
The resource name of the ProductSet. Format is:
This field is ignored when creating a ProductSet |
displayName |
STRING |
The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long |
= Parameter name
= Format
parent STRING Required The project in which the ProductSet should be created. Format is |
productSetId STRING A user-supplied resource id for this ProductSet. If set, the server will
attempt to use this value as the resource id. If it is already in use, an
error is returned with code ALREADY_EXISTS. Must be at most 128 characters
long. It cannot contain the character |
indexTime ANY Output only. The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this timestamp is the default value "1970-01-01T00:00:00Z". This field is ignored when creating a ProductSet |
indexError OBJECT The You can find out more about this error model and how to work with it in the API Design Guide |
indexError.code INTEGER The status code, which should be an enum value of google.rpc.Code |
indexError.message STRING A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client |
indexError.details[] OBJECT |
indexError.details[].customKey.value ANY Required |
name STRING The resource name of the ProductSet. Format is:
This field is ignored when creating a ProductSet |
displayName STRING The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long |
Output
This building block provides 8 output parameters
Name | Format | Description |
---|---|---|
indexTime |
ANY |
Output only. The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this timestamp is the default value "1970-01-01T00:00:00Z". This field is ignored when creating a ProductSet |
indexError |
OBJECT |
The You can find out more about this error model and how to work with it in the API Design Guide |
indexError.code |
INTEGER |
The status code, which should be an enum value of google.rpc.Code |
indexError.message |
STRING |
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client |
indexError.details[] |
OBJECT |
|
indexError.details[].customKey.value |
ANY |
|
name |
STRING |
The resource name of the ProductSet. Format is:
This field is ignored when creating a ProductSet |
displayName |
STRING |
The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long |
= Parameter name
= Format
indexTime ANY Output only. The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this timestamp is the default value "1970-01-01T00:00:00Z". This field is ignored when creating a ProductSet |
indexError OBJECT The You can find out more about this error model and how to work with it in the API Design Guide |
indexError.code INTEGER The status code, which should be an enum value of google.rpc.Code |
indexError.message STRING A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client |
indexError.details[] OBJECT |
indexError.details[].customKey.value ANY |
name STRING The resource name of the ProductSet. Format is:
This field is ignored when creating a ProductSet |
displayName STRING The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long |