getModel function

Future<GetModelResult> getModel(
  1. GetModelArgs args, {
  2. InvokeOptions? options,
})

Gets information about a model, including its name, the description (if set), and the default version (if at least one version of the model has been deployed). args Arguments passed to this invoke. Arguments for getModel. options Invoke options controlling this call.

Implementation

Future<GetModelResult> getModel(
  GetModelArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:ml/v1:getModel',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetModelResult.fromMap(result);
}