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

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

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

    Gets a model.

    Using getModel

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getModel(args: GetModelArgs, opts?: InvokeOptions): Promise<GetModelResult>
    function getModelOutput(args: GetModelOutputArgs, opts?: InvokeOptions): Output<GetModelResult>
    def get_model(location: Optional[str] = None,
                  model_id: Optional[str] = None,
                  project: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetModelResult
    def get_model_output(location: Optional[pulumi.Input[str]] = None,
                  model_id: Optional[pulumi.Input[str]] = None,
                  project: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetModelResult]
    func LookupModel(ctx *Context, args *LookupModelArgs, opts ...InvokeOption) (*LookupModelResult, error)
    func LookupModelOutput(ctx *Context, args *LookupModelOutputArgs, opts ...InvokeOption) LookupModelResultOutput

    > Note: This function is named LookupModel in the Go SDK.

    public static class GetModel 
    {
        public static Task<GetModelResult> InvokeAsync(GetModelArgs args, InvokeOptions? opts = null)
        public static Output<GetModelResult> Invoke(GetModelInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:translate/v3:getModel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    ModelId string
    Project string
    Location string
    ModelId string
    Project string
    location String
    modelId String
    project String
    location string
    modelId string
    project string
    location String
    modelId String
    project String

    getModel Result

    The following output properties are available:

    CreateTime string
    Timestamp when the model resource was created, which is also when the training started.
    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.
    Name string
    The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    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.
    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.
    Name string
    The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    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.
    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.
    name String
    The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    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.
    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.
    name string
    The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    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.
    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.
    name str
    The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    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.
    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.
    name String
    The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
    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