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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:vision/v1:getProductSet
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Product
Set stringId - Project string
- Location string
- Product
Set stringId - Project string
- location String
- product
Set StringId - project String
- location string
- product
Set stringId - project string
- location str
- product_
set_ strid - project str
- location String
- product
Set StringId - project String
getProductSet Result
The following output properties are available:
- Display
Name string - The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- Index
Error 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.
- Index
Time 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 string - 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 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 String - 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 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 string - 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 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.
- display
Name String - The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- index
Error Property Map - If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.
- index
Time 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<Immutable
Dictionary<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.