# REST Resource: projects.locations.instances.models

- [Resource: Model](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models#Model)
  - [JSON representation](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models#Model.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models#State)
- [Methods](https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models#METHODS_SUMMARY)

## Resource: Model

Model represents a trained model.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "state": enum (`https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models#State`), "engineVersion": string, "engineConfig": string, "primaryDataset": string, "endTime": string, "lineOfBusiness": enum (`https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/LineOfBusiness`), "sourceModel": string, "satisfiesPzi": boolean, "satisfiesPzs": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The resource name of the Model. format: `/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}` |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp of creation of this resource. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp of the most recent update of this resource. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `labels` | `map (key: string, value: string)` Labels An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `state` | ``enum (`https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models#State`)`` Output only. State of the model (creating, active, deleting, etc.) |
| `engineVersion` | `string` Output only. The EngineVersion used in training this model. This is output only, and is determined from the EngineConfig used. |
| `engineConfig` | `string` Required. The resource name of the EngineConfig the model training will be based on. Format: `/projects/{project_num}/locations/{location}/instances/{instance}/engineConfigs/{engineConfig}` |
| `primaryDataset` | `string` Required. The resource name of the Primary Dataset used in this model training. For information about how primary and auxiliary datasets are used, refer to the engine version's documentation. Format: `/projects/{project_num}/locations/{location}/instances/{instance}/datasets/{dataset}` |
| `endTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Required. End_time specifies the latest time from which labels are used and from which data is used to generate features for training. End_time should be no later than the end of the dateRange of the dataset. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `lineOfBusiness` | ``enum (`https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/LineOfBusiness`)`` Output only. The line of business (Retail/Commercial) this model is used for. Determined by EngineConfig, cannot be set by user. |
| `sourceModel` | `string` Output only. The resource name of the source Model in case this model is a copy. Format: `projects/{project_num}/locations/{location}/instances/{instance}/models/{model}` |
| `satisfiesPzi` | `boolean` Output only. \[Output Only\] Reserved for future use. |
| `satisfiesPzs` | `boolean` Output only. \[Output Only\] Reserved for future use. |

## State

The possible states of a resource.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | State is unspecified, should not occur. |
| `CREATING` | The resource has not finished being created. |
| `ACTIVE` | The resource is active/ready to be used. |
| `UPDATING` | The resource is in the process of being updated. |
| `DELETING` | The resource is in the process of being deleted. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models/copy` | Copies a model from one instance to another. |
| ### `https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models/create` | Creates a model. |
| ### `https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models/delete` | Deletes a model. |
| ### `https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models/exportMetadata` | Export governance information for a Model resource. |
| ### `https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models/get` | Gets a model. |
| ### `https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models/list` | Lists models. |
| ### `https://docs.cloud.google.com/financial-services/anti-money-laundering/docs/reference/rest/v1/projects.locations.instances.models/patch` | Updates the parameters of a single Model. |