# RuntimeConfig

- [JSON representation](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#SCHEMA_REPRESENTATION)
- [GKEWorkload](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#GKEWorkload)
  - [JSON representation](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#GKEWorkload.SCHEMA_REPRESENTATION)
- [GoogleCloudRun](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#GoogleCloudRun)
  - [JSON representation](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#GoogleCloudRun.SCHEMA_REPRESENTATION)
- [AppHubWorkload](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#AppHubWorkload)
  - [JSON representation](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#AppHubWorkload.SCHEMA_REPRESENTATION)
- [AppHubService](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#AppHubService)
  - [JSON representation](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#AppHubService.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#State)

RuntimeConfig represents the runtimes where the application is deployed.

| JSON representation |
|---|
| ``` { "uri": string, "state": enum (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#State`), // Union field `runtime` can be only one of the following: "gkeWorkload": { object (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#GKEWorkload`) }, "googleCloudRun": { object (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#GoogleCloudRun`) } // End of list of possible types for union field `runtime`. // Union field `derived_from` can be only one of the following: "appHubWorkload": { object (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#AppHubWorkload`) }, "appHubService": { object (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#AppHubService`) } // End of list of possible types for union field `derived_from`. } ``` |

| Fields ||
|---|---|
| `uri` | `string` Required. Immutable. The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name. |
| `state` | ``enum (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#State`)`` Output only. The state of the Runtime. |
| Union field `runtime`. The type of the runtime. `runtime` can be only one of the following: ||
| `gkeWorkload` | ``object (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#GKEWorkload`)`` Output only. Google Kubernetes Engine runtime. |
| `googleCloudRun` | ``object (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#GoogleCloudRun`)`` Output only. Cloud Run runtime. |
| Union field `derived_from`. Where the runtime is derived from. `derived_from` can be only one of the following: ||
| `appHubWorkload` | ``object (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#AppHubWorkload`)`` Output only. App Hub Workload. |
| `appHubService` | ``object (`https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/RuntimeConfig#AppHubService`)`` Output only. App Hub Service. |

## GKEWorkload

GKEWorkload represents the Google Kubernetes Engine runtime.

| JSON representation |
|---|
| ``` { "cluster": string, "deployment": string } ``` |

| Fields ||
|---|---|
| `cluster` | `string` Required. Immutable. The name of the GKE cluster. Format: `projects/{project}/locations/{location}/clusters/{cluster}`. |
| `deployment` | `string` Output only. The name of the GKE deployment. Format: `projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}`. |

## GoogleCloudRun

GoogleCloudRun represents the Cloud Run runtime.

| JSON representation |
|---|
| ``` { "serviceUri": string } ``` |

| Fields ||
|---|---|
| `serviceUri` | `string` Required. Immutable. The name of the Cloud Run service. Format: `projects/{project}/locations/{location}/services/{service}`. |

## AppHubWorkload

AppHubWorkload represents the App Hub Workload.

| JSON representation |
|---|
| ``` { "workload": string, "criticality": string, "environment": string } ``` |

| Fields ||
|---|---|
| `workload` | `string` Required. Output only. Immutable. The name of the App Hub Workload. Format: `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. |
| `criticality` | `string` Output only. The criticality of the App Hub Workload. |
| `environment` | `string` Output only. The environment of the App Hub Workload. |

## AppHubService

AppHubService represents the App Hub Service.

| JSON representation |
|---|
| ``` { "apphubService": string, "criticality": string, "environment": string } ``` |

| Fields ||
|---|---|
| `apphubService` | `string` Required. Output only. Immutable. The name of the App Hub Service. Format: `projects/{project}/locations/{location}/applications/{application}/services/{service}`. |
| `criticality` | `string` Output only. The criticality of the App Hub Service. |
| `environment` | `string` Output only. The environment of the App Hub Service. |

## State

The state of the runtime in the InsightsConfig. Whether the runtime is linked to the InsightsConfig.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | No state specified. |
| `LINKED` | The runtime configuration has been linked to the InsightsConfig. |
| `UNLINKED` | The runtime configuration has been unlinked to the InsightsConfig. |