Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.vision/v1.ProductSet
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
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"),
})
var productSetResource = new ProductSet("productSetResource", ProductSetArgs.builder()
.displayName("string")
.location("string")
.name("string")
.productSetId("string")
.project("string")
.build());
product_set_resource = google_native.vision.v1.ProductSet("productSetResource",
display_name="string",
location="string",
name="string",
product_set_id="string",
project="string")
const productSetResource = new google_native.vision.v1.ProductSet("productSetResource", {
displayName: "string",
location: "string",
name: "string",
productSetId: "string",
project: "string",
});
type: google-native:vision/v1:ProductSet
properties:
displayName: string
location: string
name: string
productSetId: string
project: string
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:
- Display
Name string - The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- Location 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. - Product
Set stringId - 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 string
- Display
Name string - The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- Location 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. - Product
Set stringId - 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 string
- display
Name String - The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- location 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. - product
Set StringId - 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 String
- display
Name string - The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- location 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. - product
Set stringId - 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 string
- display_
name str - The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- location 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_ strid - 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 str
- display
Name String - The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
- location 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. - product
Set StringId - 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 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.
- 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.
- Id string
- 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 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.
- 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.
- id string
- 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 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.
- 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.
Supporting Types
StatusResponse, StatusResponseArgs
- 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.