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

## Resource: DiscoveryClient

Represents an installed Migration Center Discovery Client instance.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "source": string, "serviceAccount": string, "signalsEndpoint": string, "displayName": string, "description": string, "labels": { string: string, ... }, "state": enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients#State`), "version": string, "errors": [ { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/Status`) } ], "heartbeatTime": string, // Union field `expiration` can be only one of the following: "expireTime": string, "ttl": string // End of list of possible types for union field `expiration`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. Full name of this discovery client. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Time when the discovery client was first created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Time when the discovery client was last updated. This value is not updated by heartbeats, to view the last heartbeat time please refer to the `heartbeatTime` field. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `source` | `string` Required. Immutable. Full name of the source object associated with this discovery client. |
| `serviceAccount` | `string` Required. Service account used by the discovery client for various operation. |
| `signalsEndpoint` | `string` Output only. This field is intended for internal use. |
| `displayName` | `string` Optional. Free text display name. Maximum length is 63 characters. |
| `description` | `string` Optional. Free text description. Maximum length is 1000 characters. |
| `labels` | `map (key: string, value: string)` Optional. Labels as key value pairs. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `state` | ``enum (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients#State`)`` Output only. Current state of the discovery client. |
| `version` | `string` Output only. Client version, as reported in recent heartbeat. |
| `errors[]` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/Status`)`` Output only. Errors affecting client functionality. |
| `heartbeatTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes). A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| Union field `expiration`. `expiration` can be only one of the following: ||
| `expireTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Optional. Client expiration time in UTC. If specified, the backend will not accept new frames after this time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `ttl` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Optional. Input only. Client time-to-live. If specified, the backend will not accept new frames after this time. This field is input only. The derived expiration time is provided as output through the `expireTime` field. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## State

Discovery client states.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Client state is unspecified. |
| `ACTIVE` | Client is active. |
| `OFFLINE` | Client is offline. |
| `DEGRADED` | Client is in a degraded state. See the `errors` field for details. |
| `EXPIRED` | Client has expired. See the expireTime field for the expire time. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/create` | Creates a new discovery client. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/delete` | Deletes a discovery client. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/get` | Gets the details of a discovery client. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/list` | Lists all the discovery clients in a given project and location. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/patch` | Updates a discovery client. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/sendHeartbeat` | Sends a discovery client heartbeat. |