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-native logo

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

    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

    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 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 string
    DisplayName 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.
    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 string
    displayName 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.
    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 String
    displayName 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.
    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 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_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 str
    displayName 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.
    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 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 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-native logo

    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