{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-migration-center/json-schema/google-cloud-migration-center-discovery-client-schema.json",
  "title": "DiscoveryClient",
  "description": "Represents an installed Migration Center Discovery Client instance.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-migration-center-migrationcenter-projects-api-openapi.yml#/components/schemas/DiscoveryClient",
  "properties": {
    "description": {
      "description": "Optional. Free text description. Maximum length is 1000 characters.",
      "type": "string"
    },
    "ttl": {
      "description": "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 `expire_time` field.",
      "type": "string",
      "format": "google-duration"
    },
    "state": {
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "ACTIVE",
        "OFFLINE",
        "DEGRADED",
        "EXPIRED"
      ],
      "readOnly": true,
      "description": "Output only. Current state of the discovery client."
    },
    "source": {
      "type": "string",
      "description": "Required. Immutable. Full name of the source object associated with this discovery client."
    },
    "name": {
      "readOnly": true,
      "description": "Output only. Identifier. Full name of this discovery client.",
      "type": "string"
    },
    "expireTime": {
      "format": "google-datetime",
      "description": "Optional. Client expiration time in UTC. If specified, the backend will not accept new frames after this time.",
      "type": "string"
    },
    "displayName": {
      "description": "Optional. Free text display name. Maximum length is 63 characters.",
      "type": "string"
    },
    "updateTime": {
      "type": "string",
      "format": "google-datetime",
      "description": "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 `heartbeat_time` field.",
      "readOnly": true
    },
    "version": {
      "description": "Output only. Client version, as reported in recent heartbeat.",
      "type": "string",
      "readOnly": true
    },
    "heartbeatTime": {
      "description": "Output only. Last heartbeat time. Healthy clients are expected to send heartbeats regularly (normally every few minutes).",
      "format": "google-datetime",
      "readOnly": true,
      "type": "string"
    },
    "createTime": {
      "description": "Output only. Time when the discovery client was first created.",
      "readOnly": true,
      "type": "string",
      "format": "google-datetime"
    },
    "serviceAccount": {
      "description": "Required. Service account used by the discovery client for various operation.",
      "type": "string"
    },
    "labels": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Optional. Labels as key value pairs."
    },
    "signalsEndpoint": {
      "description": "Output only. This field is intended for internal use.",
      "readOnly": true,
      "type": "string"
    },
    "errors": {
      "description": "Output only. Errors affecting client functionality.",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/Status"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "Status": {
      "properties": {
        "message": {
          "type": "string",
          "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client."
        },
        "code": {
          "description": "The status code, which should be an enum value of google.rpc.Code.",
          "format": "int32",
          "type": "integer"
        },
        "details": {
          "type": "array",
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
          "items": {
            "type": "object",
            "additionalProperties": {
              "description": "Properties of the object. Contains field @type with type URL."
            }
          }
        }
      },
      "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
      "type": "object"
    }
  }
}