1. Packages
  2. Google Cloud Native
  3. API Docs
  4. vision
  5. vision/v1
  6. getProductSet

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.vision/v1.getProductSet

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

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>
Copy
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]
Copy
func LookupProductSet(ctx *Context, args *LookupProductSetArgs, opts ...InvokeOption) (*LookupProductSetResult, error)
func LookupProductSetOutput(ctx *Context, args *LookupProductSetOutputArgs, opts ...InvokeOption) LookupProductSetResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProductSetResult> getProductSet(GetProductSetArgs args, InvokeOptions options)
public static Output<GetProductSetResult> getProductSet(GetProductSetArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:vision/v1:getProductSet
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Location This property is required. string
ProductSetId This property is required. string
Project string
Location This property is required. string
ProductSetId This property is required. string
Project string
location This property is required. String
productSetId This property is required. String
project String
location This property is required. string
productSetId This property is required. string
project string
location This property is required. str
product_set_id This property is required. str
project str
location This property is required. String
productSetId This property is required. String
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.GoogleNative.Vision.V1.Outputs.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.
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 This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Details This property is required. 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 This property is required. 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 This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Details This property is required. []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 This property is required. 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 This property is required. Integer
The status code, which should be an enum value of google.rpc.Code.
details This property is required. 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 This property is required. 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 This property is required. number
The status code, which should be an enum value of google.rpc.Code.
details This property is required. {[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 This property is required. 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 This property is required. int
The status code, which should be an enum value of google.rpc.Code.
details This property is required. 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 This property is required. 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 This property is required. Number
The status code, which should be an enum value of google.rpc.Code.
details This property is required. 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 This property is required. 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.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi