Model constructor

Model(
  1. String name, {
  2. ModelArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new Model. name The Pulumi resource name. args Arguments used to configure this Model. The set of arguments for Model. options Resource options controlling this resource's behavior.

Implementation

Model(
  String name, {
  ModelArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'google-native:ml/v1:Model',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        options ?? pulumi.CustomResourceOptions(),
      ) {
  defaultVersion = registerOutput<GoogleCloudMlV1VersionResponse>('defaultVersion', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return GoogleCloudMlV1VersionResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  description = registerOutput<String>('description');
  etag = registerOutput<String>('etag');
  labels = registerOutput<Map<String, String>>('labels');
  this.name = registerOutput<String>('name');
  onlinePredictionConsoleLogging = registerOutput<bool>('onlinePredictionConsoleLogging');
  onlinePredictionLogging = registerOutput<bool>('onlinePredictionLogging');
  project = registerOutput<String>('project');
  regions = registerOutput<List<String>>('regions');
}