# REST Resource: projects.locations.sources

- [Resource: Source](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources#Source)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources#Source.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources#State)
- [Methods](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources#METHODS_SUMMARY)

## Resource: Source

Source represents an object from which asset information is streamed to Migration Center.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "displayName": string, "description": string, "type": enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/SourceType`), "priority": integer, "isManaged": boolean, "pendingFrameCount": integer, "errorFrameCount": integer, "state": enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources#State`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The full name of the source. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the source was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 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 when the source was last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 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"`. |
| `displayName` | `string` User-friendly display name. |
| `description` | `string` Free-text description. |
| `type` | ``enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/SourceType`)`` Data source type. |
| `priority` | `integer` The information confidence of the source. The higher the value, the higher the confidence. |
| `isManaged` | `boolean` If `true`, the source is managed by other service(s). |
| `pendingFrameCount` | `integer` Output only. Number of frames that are still being processed. |
| `errorFrameCount` | `integer` Output only. The number of frames that were reported by the source and contained errors. |
| `state` | ``enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources#State`)`` Output only. The state of the source. |

## State

Enumerates possible states of a source.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Unspecified. |
| `ACTIVE` | The source is active and ready to be used. |
| `DELETING` | In the process of being deleted. |
| `INVALID` | Source is in an invalid state. Asset frames reported to it will be ignored. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources/create` | Creates a new source in a given project and location. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources/delete` | Deletes a source. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources/get` | Gets the details of a source. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources/list` | Lists all the sources in a given project and location. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1alpha1/projects.locations.sources/patch` | Updates the parameters of a source. |