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 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:
getModel Result
The following output properties are available:
- Create
Time 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}
- Display
Name 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}
- Source
Language stringCode - The BCP-47 language code of the source language.
- Target
Language stringCode - The BCP-47 language code of the target language.
- Test
Example intCount - Number of examples (sentence pairs) used to test the model.
- Train
Example intCount - Number of examples (sentence pairs) used to train the model.
- Update
Time string - Timestamp when this model was last updated.
- Validate
Example intCount - Number of examples (sentence pairs) used to validate the model.
- Create
Time 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}
- Display
Name 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}
- Source
Language stringCode - The BCP-47 language code of the source language.
- Target
Language stringCode - The BCP-47 language code of the target language.
- Test
Example intCount - Number of examples (sentence pairs) used to test the model.
- Train
Example intCount - Number of examples (sentence pairs) used to train the model.
- Update
Time string - Timestamp when this model was last updated.
- Validate
Example intCount - Number of examples (sentence pairs) used to validate the model.
- create
Time 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}
- display
Name 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}
- source
Language StringCode - The BCP-47 language code of the source language.
- target
Language StringCode - The BCP-47 language code of the target language.
- test
Example IntegerCount - Number of examples (sentence pairs) used to test the model.
- train
Example IntegerCount - Number of examples (sentence pairs) used to train the model.
- update
Time String - Timestamp when this model was last updated.
- validate
Example IntegerCount - Number of examples (sentence pairs) used to validate the model.
- create
Time 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}
- display
Name 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}
- source
Language stringCode - The BCP-47 language code of the source language.
- target
Language stringCode - The BCP-47 language code of the target language.
- test
Example numberCount - Number of examples (sentence pairs) used to test the model.
- train
Example numberCount - Number of examples (sentence pairs) used to train the model.
- update
Time string - Timestamp when this model was last updated.
- validate
Example numberCount - 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_ strcode - The BCP-47 language code of the source language.
- target_
language_ strcode - The BCP-47 language code of the target language.
- test_
example_ intcount - Number of examples (sentence pairs) used to test the model.
- train_
example_ intcount - Number of examples (sentence pairs) used to train the model.
- update_
time str - Timestamp when this model was last updated.
- validate_
example_ intcount - Number of examples (sentence pairs) used to validate the model.
- create
Time 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}
- display
Name 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}
- source
Language StringCode - The BCP-47 language code of the source language.
- target
Language StringCode - The BCP-47 language code of the target language.
- test
Example NumberCount - Number of examples (sentence pairs) used to test the model.
- train
Example NumberCount - Number of examples (sentence pairs) used to train the model.
- update
Time String - Timestamp when this model was last updated.
- validate
Example NumberCount - 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 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