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

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

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

    Create Model Resource

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

    Constructor syntax

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

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

    Dataset string
    The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    DisplayName string
    The name of the model 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 model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    Project string
    Dataset string
    The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    DisplayName string
    The name of the model 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 model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    Project string
    dataset String
    The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    displayName String
    The name of the model 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 model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    project String
    dataset string
    The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    displayName string
    The name of the model 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 model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    project string
    dataset str
    The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    display_name str
    The name of the model 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 model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    project str
    dataset String
    The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
    displayName String
    The name of the model 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 model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    project String

    Outputs

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

    CreateTime string
    Timestamp when the model resource was created, which is also when the training started.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceLanguageCode string
    The BCP-47 language code of the source language.
    TargetLanguageCode string
    The BCP-47 language code of the target language.
    TestExampleCount int
    Number of examples (sentence pairs) used to test the model.
    TrainExampleCount int
    Number of examples (sentence pairs) used to train the model.
    UpdateTime string
    Timestamp when this model was last updated.
    ValidateExampleCount int
    Number of examples (sentence pairs) used to validate the model.
    CreateTime string
    Timestamp when the model resource was created, which is also when the training started.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceLanguageCode string
    The BCP-47 language code of the source language.
    TargetLanguageCode string
    The BCP-47 language code of the target language.
    TestExampleCount int
    Number of examples (sentence pairs) used to test the model.
    TrainExampleCount int
    Number of examples (sentence pairs) used to train the model.
    UpdateTime string
    Timestamp when this model was last updated.
    ValidateExampleCount int
    Number of examples (sentence pairs) used to validate the model.
    createTime String
    Timestamp when the model resource was created, which is also when the training started.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceLanguageCode String
    The BCP-47 language code of the source language.
    targetLanguageCode String
    The BCP-47 language code of the target language.
    testExampleCount Integer
    Number of examples (sentence pairs) used to test the model.
    trainExampleCount Integer
    Number of examples (sentence pairs) used to train the model.
    updateTime String
    Timestamp when this model was last updated.
    validateExampleCount Integer
    Number of examples (sentence pairs) used to validate the model.
    createTime string
    Timestamp when the model resource was created, which is also when the training started.
    id string
    The provider-assigned unique ID for this managed resource.
    sourceLanguageCode string
    The BCP-47 language code of the source language.
    targetLanguageCode string
    The BCP-47 language code of the target language.
    testExampleCount number
    Number of examples (sentence pairs) used to test the model.
    trainExampleCount number
    Number of examples (sentence pairs) used to train the model.
    updateTime string
    Timestamp when this model was last updated.
    validateExampleCount number
    Number of examples (sentence pairs) used to validate the model.
    create_time str
    Timestamp when the model resource was created, which is also when the training started.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    test_example_count int
    Number of examples (sentence pairs) used to test the model.
    train_example_count int
    Number of examples (sentence pairs) used to train the model.
    update_time str
    Timestamp when this model was last updated.
    validate_example_count int
    Number of examples (sentence pairs) used to validate the model.
    createTime String
    Timestamp when the model resource was created, which is also when the training started.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceLanguageCode String
    The BCP-47 language code of the source language.
    targetLanguageCode String
    The BCP-47 language code of the target language.
    testExampleCount Number
    Number of examples (sentence pairs) used to test the model.
    trainExampleCount Number
    Number of examples (sentence pairs) used to train the model.
    updateTime String
    Timestamp when this model was last updated.
    validateExampleCount Number
    Number of examples (sentence pairs) used to validate the model.

    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