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.firebaseml/v1beta2.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 resource.
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(model_id: Optional[str] = None,
              project: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetModelResult
def get_model_output(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:firebaseml/v1beta2:getModel
  arguments:
    # arguments dictionaryThe following arguments are supported:
getModel Result
The following output properties are available:
- ActiveOperations List<Pulumi.Google Native. Firebase ML. V1Beta2. Outputs. Operation Response> 
- Lists operation ids associated with this model whose status is NOT done.
- CreateTime string
- Timestamp when this model was created in Firebase ML.
- DisplayName string
- The name of the model to create. 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. It must start with a letter.
- Etag string
- See RFC7232 https://tools.ietf.org/html/rfc7232#section-2.3
- ModelHash string
- The model_hash will change if a new file is available for download.
- Name string
- The resource name of the Model. Model names have the form projects/{project_id}/models/{model_id}The name is ignored when creating a model.
- State
Pulumi.Google Native. Firebase ML. V1Beta2. Outputs. Model State Response 
- State common to all model types. Includes publishing and validation information.
- List<string>
- User defined tags which can be used to group/filter models during listing
- TfliteModel Pulumi.Google Native. Firebase ML. V1Beta2. Outputs. Tf Lite Model Response 
- A TFLite Model
- UpdateTime string
- Timestamp when this model was updated in Firebase ML.
- ActiveOperations []OperationResponse 
- Lists operation ids associated with this model whose status is NOT done.
- CreateTime string
- Timestamp when this model was created in Firebase ML.
- DisplayName string
- The name of the model to create. 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. It must start with a letter.
- Etag string
- See RFC7232 https://tools.ietf.org/html/rfc7232#section-2.3
- ModelHash string
- The model_hash will change if a new file is available for download.
- Name string
- The resource name of the Model. Model names have the form projects/{project_id}/models/{model_id}The name is ignored when creating a model.
- State
ModelState Response 
- State common to all model types. Includes publishing and validation information.
- []string
- User defined tags which can be used to group/filter models during listing
- TfliteModel TfLite Model Response 
- A TFLite Model
- UpdateTime string
- Timestamp when this model was updated in Firebase ML.
- activeOperations List<OperationResponse> 
- Lists operation ids associated with this model whose status is NOT done.
- createTime String
- Timestamp when this model was created in Firebase ML.
- displayName String
- The name of the model to create. 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. It must start with a letter.
- etag String
- See RFC7232 https://tools.ietf.org/html/rfc7232#section-2.3
- modelHash String
- The model_hash will change if a new file is available for download.
- name String
- The resource name of the Model. Model names have the form projects/{project_id}/models/{model_id}The name is ignored when creating a model.
- state
ModelState Response 
- State common to all model types. Includes publishing and validation information.
- List<String>
- User defined tags which can be used to group/filter models during listing
- tfliteModel TfLite Model Response 
- A TFLite Model
- updateTime String
- Timestamp when this model was updated in Firebase ML.
- activeOperations OperationResponse[] 
- Lists operation ids associated with this model whose status is NOT done.
- createTime string
- Timestamp when this model was created in Firebase ML.
- displayName string
- The name of the model to create. 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. It must start with a letter.
- etag string
- See RFC7232 https://tools.ietf.org/html/rfc7232#section-2.3
- modelHash string
- The model_hash will change if a new file is available for download.
- name string
- The resource name of the Model. Model names have the form projects/{project_id}/models/{model_id}The name is ignored when creating a model.
- state
ModelState Response 
- State common to all model types. Includes publishing and validation information.
- string[]
- User defined tags which can be used to group/filter models during listing
- tfliteModel TfLite Model Response 
- A TFLite Model
- updateTime string
- Timestamp when this model was updated in Firebase ML.
- active_operations Sequence[OperationResponse] 
- Lists operation ids associated with this model whose status is NOT done.
- create_time str
- Timestamp when this model was created in Firebase ML.
- display_name str
- The name of the model to create. 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. It must start with a letter.
- etag str
- See RFC7232 https://tools.ietf.org/html/rfc7232#section-2.3
- model_hash str
- The model_hash will change if a new file is available for download.
- name str
- The resource name of the Model. Model names have the form projects/{project_id}/models/{model_id}The name is ignored when creating a model.
- state
ModelState Response 
- State common to all model types. Includes publishing and validation information.
- Sequence[str]
- User defined tags which can be used to group/filter models during listing
- tflite_model TfLite Model Response 
- A TFLite Model
- update_time str
- Timestamp when this model was updated in Firebase ML.
- activeOperations List<Property Map>
- Lists operation ids associated with this model whose status is NOT done.
- createTime String
- Timestamp when this model was created in Firebase ML.
- displayName String
- The name of the model to create. 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. It must start with a letter.
- etag String
- See RFC7232 https://tools.ietf.org/html/rfc7232#section-2.3
- modelHash String
- The model_hash will change if a new file is available for download.
- name String
- The resource name of the Model. Model names have the form projects/{project_id}/models/{model_id}The name is ignored when creating a model.
- state Property Map
- State common to all model types. Includes publishing and validation information.
- List<String>
- User defined tags which can be used to group/filter models during listing
- tfliteModel Property Map
- A TFLite Model
- updateTime String
- Timestamp when this model was updated in Firebase ML.
Supporting Types
ModelStateResponse  
- Published bool
- Indicates if this model has been published.
- ValidationError Pulumi.Google Native. Firebase ML. V1Beta2. Inputs. Status Response 
- Indicates the latest validation error on the model if any. A model may have validation errors if there were problems during the model creation/update. e.g. in the case of a TfLiteModel, if a tflite model file was missing or in the wrong format. This field will be empty for valid models.
- Published bool
- Indicates if this model has been published.
- ValidationError StatusResponse 
- Indicates the latest validation error on the model if any. A model may have validation errors if there were problems during the model creation/update. e.g. in the case of a TfLiteModel, if a tflite model file was missing or in the wrong format. This field will be empty for valid models.
- published Boolean
- Indicates if this model has been published.
- validationError StatusResponse 
- Indicates the latest validation error on the model if any. A model may have validation errors if there were problems during the model creation/update. e.g. in the case of a TfLiteModel, if a tflite model file was missing or in the wrong format. This field will be empty for valid models.
- published boolean
- Indicates if this model has been published.
- validationError StatusResponse 
- Indicates the latest validation error on the model if any. A model may have validation errors if there were problems during the model creation/update. e.g. in the case of a TfLiteModel, if a tflite model file was missing or in the wrong format. This field will be empty for valid models.
- published bool
- Indicates if this model has been published.
- validation_error StatusResponse 
- Indicates the latest validation error on the model if any. A model may have validation errors if there were problems during the model creation/update. e.g. in the case of a TfLiteModel, if a tflite model file was missing or in the wrong format. This field will be empty for valid models.
- published Boolean
- Indicates if this model has been published.
- validationError Property Map
- Indicates the latest validation error on the model if any. A model may have validation errors if there were problems during the model creation/update. e.g. in the case of a TfLiteModel, if a tflite model file was missing or in the wrong format. This field will be empty for valid models.
OperationResponse 
- Done bool
- If the value is false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- Error
Pulumi.Google Native. Firebase ML. V1Beta2. Inputs. Status Response 
- The error result of the operation in case of failure or cancellation.
- Metadata Dictionary<string, string>
- Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
- Name string
- The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the nameshould be a resource name ending withoperations/{unique_id}.
- Response Dictionary<string, string>
- The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response isgoogle.protobuf.Empty. If the original method is standardGet/Create/Update, the response should be the resource. For other methods, the response should have the typeXxxResponse, whereXxxis the original method name. For example, if the original method name isTakeSnapshot(), the inferred response type isTakeSnapshotResponse.
- Done bool
- If the value is false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- Error
StatusResponse 
- The error result of the operation in case of failure or cancellation.
- Metadata map[string]string
- Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
- Name string
- The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the nameshould be a resource name ending withoperations/{unique_id}.
- Response map[string]string
- The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response isgoogle.protobuf.Empty. If the original method is standardGet/Create/Update, the response should be the resource. For other methods, the response should have the typeXxxResponse, whereXxxis the original method name. For example, if the original method name isTakeSnapshot(), the inferred response type isTakeSnapshotResponse.
- done Boolean
- If the value is false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- error
StatusResponse 
- The error result of the operation in case of failure or cancellation.
- metadata Map<String,String>
- Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
- name String
- The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the nameshould be a resource name ending withoperations/{unique_id}.
- response Map<String,String>
- The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response isgoogle.protobuf.Empty. If the original method is standardGet/Create/Update, the response should be the resource. For other methods, the response should have the typeXxxResponse, whereXxxis the original method name. For example, if the original method name isTakeSnapshot(), the inferred response type isTakeSnapshotResponse.
- done boolean
- If the value is false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- error
StatusResponse 
- The error result of the operation in case of failure or cancellation.
- metadata {[key: string]: string}
- Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
- name string
- The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the nameshould be a resource name ending withoperations/{unique_id}.
- response {[key: string]: string}
- The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response isgoogle.protobuf.Empty. If the original method is standardGet/Create/Update, the response should be the resource. For other methods, the response should have the typeXxxResponse, whereXxxis the original method name. For example, if the original method name isTakeSnapshot(), the inferred response type isTakeSnapshotResponse.
- done bool
- If the value is false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- error
StatusResponse 
- The error result of the operation in case of failure or cancellation.
- metadata Mapping[str, str]
- Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
- name str
- The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the nameshould be a resource name ending withoperations/{unique_id}.
- response Mapping[str, str]
- The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response isgoogle.protobuf.Empty. If the original method is standardGet/Create/Update, the response should be the resource. For other methods, the response should have the typeXxxResponse, whereXxxis the original method name. For example, if the original method name isTakeSnapshot(), the inferred response type isTakeSnapshotResponse.
- done Boolean
- If the value is false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- error Property Map
- The error result of the operation in case of failure or cancellation.
- metadata Map<String>
- Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
- name String
- The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the nameshould be a resource name ending withoperations/{unique_id}.
- response Map<String>
- The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response isgoogle.protobuf.Empty. If the original method is standardGet/Create/Update, the response should be the resource. For other methods, the response should have the typeXxxResponse, whereXxxis the original method name. For example, if the original method name isTakeSnapshot(), the inferred response type isTakeSnapshotResponse.
StatusResponse 
- 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.
TfLiteModelResponse   
- AutomlModel string
- The AutoML model id referencing a model you created with the AutoML API. The name should have format 'projects//locations//models/' (This is the model resource name returned from the AutoML API)
- GcsTflite stringUri 
- The TfLite file containing the model. (Stored in Google Cloud). The gcs_tflite_uri should have form: gs://some-bucket/some-model.tflite Note: If you update the file in the original location, it is necessary to call UpdateModel for ML to pick up and validate the updated file.
- SizeBytes string
- The size of the TFLite model
- AutomlModel string
- The AutoML model id referencing a model you created with the AutoML API. The name should have format 'projects//locations//models/' (This is the model resource name returned from the AutoML API)
- GcsTflite stringUri 
- The TfLite file containing the model. (Stored in Google Cloud). The gcs_tflite_uri should have form: gs://some-bucket/some-model.tflite Note: If you update the file in the original location, it is necessary to call UpdateModel for ML to pick up and validate the updated file.
- SizeBytes string
- The size of the TFLite model
- automlModel String
- The AutoML model id referencing a model you created with the AutoML API. The name should have format 'projects//locations//models/' (This is the model resource name returned from the AutoML API)
- gcsTflite StringUri 
- The TfLite file containing the model. (Stored in Google Cloud). The gcs_tflite_uri should have form: gs://some-bucket/some-model.tflite Note: If you update the file in the original location, it is necessary to call UpdateModel for ML to pick up and validate the updated file.
- sizeBytes String
- The size of the TFLite model
- automlModel string
- The AutoML model id referencing a model you created with the AutoML API. The name should have format 'projects//locations//models/' (This is the model resource name returned from the AutoML API)
- gcsTflite stringUri 
- The TfLite file containing the model. (Stored in Google Cloud). The gcs_tflite_uri should have form: gs://some-bucket/some-model.tflite Note: If you update the file in the original location, it is necessary to call UpdateModel for ML to pick up and validate the updated file.
- sizeBytes string
- The size of the TFLite model
- automl_model str
- The AutoML model id referencing a model you created with the AutoML API. The name should have format 'projects//locations//models/' (This is the model resource name returned from the AutoML API)
- gcs_tflite_ struri 
- The TfLite file containing the model. (Stored in Google Cloud). The gcs_tflite_uri should have form: gs://some-bucket/some-model.tflite Note: If you update the file in the original location, it is necessary to call UpdateModel for ML to pick up and validate the updated file.
- size_bytes str
- The size of the TFLite model
- automlModel String
- The AutoML model id referencing a model you created with the AutoML API. The name should have format 'projects//locations//models/' (This is the model resource name returned from the AutoML API)
- gcsTflite StringUri 
- The TfLite file containing the model. (Stored in Google Cloud). The gcs_tflite_uri should have form: gs://some-bucket/some-model.tflite Note: If you update the file in the original location, it is necessary to call UpdateModel for ML to pick up and validate the updated file.
- sizeBytes String
- The size of the TFLite 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