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

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.ProductSet

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

Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.

Create ProductSet Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ProductSet(name: string, args?: ProductSetArgs, opts?: CustomResourceOptions);
@overload
def ProductSet(resource_name: str,
               args: Optional[ProductSetArgs] = None,
               opts: Optional[ResourceOptions] = None)

@overload
def ProductSet(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               display_name: Optional[str] = None,
               location: Optional[str] = None,
               name: Optional[str] = None,
               product_set_id: Optional[str] = None,
               project: Optional[str] = None)
func NewProductSet(ctx *Context, name string, args *ProductSetArgs, opts ...ResourceOption) (*ProductSet, error)
public ProductSet(string name, ProductSetArgs? args = null, CustomResourceOptions? opts = null)
public ProductSet(String name, ProductSetArgs args)
public ProductSet(String name, ProductSetArgs args, CustomResourceOptions options)
type: google-native:vision/v1:ProductSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ProductSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ProductSetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ProductSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ProductSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ProductSetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var productSetResource = new GoogleNative.Vision.V1.ProductSet("productSetResource", new()
{
    DisplayName = "string",
    Location = "string",
    Name = "string",
    ProductSetId = "string",
    Project = "string",
});
Copy
example, err := vision.NewProductSet(ctx, "productSetResource", &vision.ProductSetArgs{
	DisplayName:  pulumi.String("string"),
	Location:     pulumi.String("string"),
	Name:         pulumi.String("string"),
	ProductSetId: pulumi.String("string"),
	Project:      pulumi.String("string"),
})
Copy
var productSetResource = new ProductSet("productSetResource", ProductSetArgs.builder()
    .displayName("string")
    .location("string")
    .name("string")
    .productSetId("string")
    .project("string")
    .build());
Copy
product_set_resource = google_native.vision.v1.ProductSet("productSetResource",
    display_name="string",
    location="string",
    name="string",
    product_set_id="string",
    project="string")
Copy
const productSetResource = new google_native.vision.v1.ProductSet("productSetResource", {
    displayName: "string",
    location: "string",
    name: "string",
    productSetId: "string",
    project: "string",
});
Copy
type: google-native:vision/v1:ProductSet
properties:
    displayName: string
    location: string
    name: string
    productSetId: string
    project: string
Copy

ProductSet Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ProductSet resource accepts the following input properties:

DisplayName string
The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
Location Changes to this property will trigger replacement. string
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.
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 /.
Project Changes to this property will trigger replacement. string
DisplayName string
The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
Location Changes to this property will trigger replacement. string
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.
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 /.
Project Changes to this property will trigger replacement. string
displayName String
The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
location Changes to this property will trigger replacement. String
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.
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 /.
project Changes to this property will trigger replacement. String
displayName string
The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
location Changes to this property will trigger replacement. string
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.
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 /.
project Changes to this property will trigger replacement. string
display_name str
The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
location Changes to this property will trigger replacement. str
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.
product_set_id str
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 /.
project Changes to this property will trigger replacement. str
displayName String
The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
location Changes to this property will trigger replacement. String
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.
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 /.
project Changes to this property will trigger replacement. String

Outputs

All input properties are implicitly available as output properties. Additionally, the ProductSet resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
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.
Id string
The provider-assigned unique ID for this managed resource.
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.
id String
The provider-assigned unique ID for this managed resource.
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.
id string
The provider-assigned unique ID for this managed resource.
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.
id str
The provider-assigned unique ID for this managed resource.
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.
id String
The provider-assigned unique ID for this managed resource.
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.

Supporting Types

StatusResponse
, StatusResponseArgs

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