1. Packages
  2. Google Cloud Native
  3. API Docs
  4. translate
  5. translate/v3
  6. Dataset

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.translate/v3.Dataset

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

    Create Dataset Resource

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

    Constructor syntax

    new Dataset(name: string, args?: DatasetArgs, opts?: CustomResourceOptions);
    @overload
    def Dataset(resource_name: str,
                args: Optional[DatasetArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Dataset(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                display_name: Optional[str] = None,
                location: Optional[str] = None,
                name: Optional[str] = None,
                project: Optional[str] = None,
                source_language_code: Optional[str] = None,
                target_language_code: Optional[str] = None)
    func NewDataset(ctx *Context, name string, args *DatasetArgs, opts ...ResourceOption) (*Dataset, error)
    public Dataset(string name, DatasetArgs? args = null, CustomResourceOptions? opts = null)
    public Dataset(String name, DatasetArgs args)
    public Dataset(String name, DatasetArgs args, CustomResourceOptions options)
    
    type: google-native:translate/v3:Dataset
    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 DatasetArgs
    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 DatasetArgs
    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 DatasetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatasetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DatasetArgs
    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 exampledatasetResourceResourceFromTranslatev3 = new GoogleNative.Translate.V3.Dataset("exampledatasetResourceResourceFromTranslatev3", new()
    {
        DisplayName = "string",
        Location = "string",
        Name = "string",
        Project = "string",
        SourceLanguageCode = "string",
        TargetLanguageCode = "string",
    });
    
    example, err := translate.NewDataset(ctx, "exampledatasetResourceResourceFromTranslatev3", &translate.DatasetArgs{
    	DisplayName:        pulumi.String("string"),
    	Location:           pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	Project:            pulumi.String("string"),
    	SourceLanguageCode: pulumi.String("string"),
    	TargetLanguageCode: pulumi.String("string"),
    })
    
    var exampledatasetResourceResourceFromTranslatev3 = new Dataset("exampledatasetResourceResourceFromTranslatev3", DatasetArgs.builder()
        .displayName("string")
        .location("string")
        .name("string")
        .project("string")
        .sourceLanguageCode("string")
        .targetLanguageCode("string")
        .build());
    
    exampledataset_resource_resource_from_translatev3 = google_native.translate.v3.Dataset("exampledatasetResourceResourceFromTranslatev3",
        display_name="string",
        location="string",
        name="string",
        project="string",
        source_language_code="string",
        target_language_code="string")
    
    const exampledatasetResourceResourceFromTranslatev3 = new google_native.translate.v3.Dataset("exampledatasetResourceResourceFromTranslatev3", {
        displayName: "string",
        location: "string",
        name: "string",
        project: "string",
        sourceLanguageCode: "string",
        targetLanguageCode: "string",
    });
    
    type: google-native:translate/v3:Dataset
    properties:
        displayName: string
        location: string
        name: string
        project: string
        sourceLanguageCode: string
        targetLanguageCode: string
    

    Dataset 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 Dataset resource accepts the following input properties:

    DisplayName string
    The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
    Location string
    Name string
    The resource name of the dataset, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    Project string
    SourceLanguageCode string
    The BCP-47 language code of the source language.
    TargetLanguageCode string
    The BCP-47 language code of the target language.
    DisplayName string
    The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
    Location string
    Name string
    The resource name of the dataset, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    Project string
    SourceLanguageCode string
    The BCP-47 language code of the source language.
    TargetLanguageCode string
    The BCP-47 language code of the target language.
    displayName String
    The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
    location String
    name String
    The resource name of the dataset, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    project String
    sourceLanguageCode String
    The BCP-47 language code of the source language.
    targetLanguageCode String
    The BCP-47 language code of the target language.
    displayName string
    The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
    location string
    name string
    The resource name of the dataset, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    project string
    sourceLanguageCode string
    The BCP-47 language code of the source language.
    targetLanguageCode string
    The BCP-47 language code of the target language.
    display_name str
    The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
    location str
    name str
    The resource name of the dataset, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    project str
    source_language_code str
    The BCP-47 language code of the source language.
    target_language_code str
    The BCP-47 language code of the target language.
    displayName String
    The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
    location String
    name String
    The resource name of the dataset, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    project String
    sourceLanguageCode String
    The BCP-47 language code of the source language.
    targetLanguageCode String
    The BCP-47 language code of the target language.

    Outputs

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

    CreateTime string
    Timestamp when this dataset was created.
    ExampleCount int
    The number of examples in the dataset.
    Id string
    The provider-assigned unique ID for this managed resource.
    TestExampleCount int
    Number of test examples (sentence pairs).
    TrainExampleCount int
    Number of training examples (sentence pairs).
    UpdateTime string
    Timestamp when this dataset was last updated.
    ValidateExampleCount int
    Number of validation examples (sentence pairs).
    CreateTime string
    Timestamp when this dataset was created.
    ExampleCount int
    The number of examples in the dataset.
    Id string
    The provider-assigned unique ID for this managed resource.
    TestExampleCount int
    Number of test examples (sentence pairs).
    TrainExampleCount int
    Number of training examples (sentence pairs).
    UpdateTime string
    Timestamp when this dataset was last updated.
    ValidateExampleCount int
    Number of validation examples (sentence pairs).
    createTime String
    Timestamp when this dataset was created.
    exampleCount Integer
    The number of examples in the dataset.
    id String
    The provider-assigned unique ID for this managed resource.
    testExampleCount Integer
    Number of test examples (sentence pairs).
    trainExampleCount Integer
    Number of training examples (sentence pairs).
    updateTime String
    Timestamp when this dataset was last updated.
    validateExampleCount Integer
    Number of validation examples (sentence pairs).
    createTime string
    Timestamp when this dataset was created.
    exampleCount number
    The number of examples in the dataset.
    id string
    The provider-assigned unique ID for this managed resource.
    testExampleCount number
    Number of test examples (sentence pairs).
    trainExampleCount number
    Number of training examples (sentence pairs).
    updateTime string
    Timestamp when this dataset was last updated.
    validateExampleCount number
    Number of validation examples (sentence pairs).
    create_time str
    Timestamp when this dataset was created.
    example_count int
    The number of examples in the dataset.
    id str
    The provider-assigned unique ID for this managed resource.
    test_example_count int
    Number of test examples (sentence pairs).
    train_example_count int
    Number of training examples (sentence pairs).
    update_time str
    Timestamp when this dataset was last updated.
    validate_example_count int
    Number of validation examples (sentence pairs).
    createTime String
    Timestamp when this dataset was created.
    exampleCount Number
    The number of examples in the dataset.
    id String
    The provider-assigned unique ID for this managed resource.
    testExampleCount Number
    Number of test examples (sentence pairs).
    trainExampleCount Number
    Number of training examples (sentence pairs).
    updateTime String
    Timestamp when this dataset was last updated.
    validateExampleCount Number
    Number of validation examples (sentence pairs).

    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