Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.vision/v1.getProductSet
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist.
Using getProductSet
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getProductSet(args: GetProductSetArgs, opts?: InvokeOptions): Promise<GetProductSetResult>
function getProductSetOutput(args: GetProductSetOutputArgs, opts?: InvokeOptions): Output<GetProductSetResult>def get_product_set(location: Optional[str] = None,
                    product_set_id: Optional[str] = None,
                    project: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetProductSetResult
def get_product_set_output(location: Optional[pulumi.Input[str]] = None,
                    product_set_id: Optional[pulumi.Input[str]] = None,
                    project: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetProductSetResult]func LookupProductSet(ctx *Context, args *LookupProductSetArgs, opts ...InvokeOption) (*LookupProductSetResult, error)
func LookupProductSetOutput(ctx *Context, args *LookupProductSetOutputArgs, opts ...InvokeOption) LookupProductSetResultOutput> Note: This function is named LookupProductSet in the Go SDK.
public static class GetProductSet 
{
    public static Task<GetProductSetResult> InvokeAsync(GetProductSetArgs args, InvokeOptions? opts = null)
    public static Output<GetProductSetResult> Invoke(GetProductSetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProductSetResult> getProductSet(GetProductSetArgs args, InvokeOptions options)
public static Output<GetProductSetResult> getProductSet(GetProductSetArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:vision/v1:getProductSet
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Location string
- ProductSet stringId 
- Project string
- Location string
- ProductSet stringId 
- Project string
- location String
- productSet StringId 
- project String
- location string
- productSet stringId 
- project string
- location str
- product_set_ strid 
- project str
- location String
- productSet StringId 
- project String
getProductSet Result
The following output properties are available:
- DisplayName string
- The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- IndexError Pulumi.Google Native. Vision. V1. Outputs. Status Response 
- If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.
- IndexTime string
- 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.
- Name string
- The resource name of the ProductSet. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID. 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.
- IndexError StatusResponse 
- If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.
- IndexTime string
- 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.
- Name string
- The resource name of the ProductSet. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID. 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.
- indexError StatusResponse 
- If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.
- indexTime String
- 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.
- name String
- The resource name of the ProductSet. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID. 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.
- indexError StatusResponse 
- If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.
- indexTime string
- 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.
- name string
- The resource name of the ProductSet. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID. This field is ignored when creating a ProductSet.
- display_name str
- The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- index_error StatusResponse 
- If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.
- index_time str
- 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.
- name str
- The resource name of the ProductSet. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID. 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.
- indexError Property Map
- If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.
- indexTime String
- 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.
- name String
- The resource name of the ProductSet. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID. This field is ignored when creating a ProductSet.
Supporting Types
StatusResponse 
- Code int
- The status code, which should be an enum value of google.rpc.Code.
- Details
List<ImmutableDictionary<string, string>> 
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- 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.
- Code int
- The status code, which should be an enum value of google.rpc.Code.
- Details []map[string]string
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- 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.
- code Integer
- The status code, which should be an enum value of google.rpc.Code.
- details List<Map<String,String>>
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- 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.
- code number
- The status code, which should be an enum value of google.rpc.Code.
- details {[key: string]: string}[]
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- 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.
- code int
- The status code, which should be an enum value of google.rpc.Code.
- details Sequence[Mapping[str, str]]
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message str
- 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.
- code Number
- The status code, which should be an enum value of google.rpc.Code.
- details List<Map<String>>
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- 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.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.