- [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#SCHEMA_REPRESENTATION)
- [ResourceKind](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ResourceKind)
- [InstanceProperties](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#InstanceProperties)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#InstanceProperties.SCHEMA_REPRESENTATION)
- [UpcomingMaintenanceEvent](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#UpcomingMaintenanceEvent)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#UpcomingMaintenanceEvent.SCHEMA_REPRESENTATION)
- [SapInstanceProperties](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#SapInstanceProperties)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#SapInstanceProperties.SCHEMA_REPRESENTATION)
- [AgentStates](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#AgentStates)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#AgentStates.SCHEMA_REPRESENTATION)
- [ServiceStates](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ServiceStates)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ServiceStates.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#State)
- [IAMPermission](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#IAMPermission)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#IAMPermission.SCHEMA_REPRESENTATION)
- [InstanceRole](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#InstanceRole)

The resource on GCP

| JSON representation |
|---|
| ``` { "name": string, "kind": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ResourceKind`), // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "instanceProperties": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#InstanceProperties`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. resource name Example: compute.googleapis.com/projects/wlm-obs-dev/zones/us-central1-a/instances/sap-pri |
| `kind` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ResourceKind`)`` Output only. |
| One of the properties of resource. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `instanceProperties` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#InstanceProperties`)`` Output only. All instance properties. |
| End of mutually exclusive fields. ||

## ResourceKind

Different kinds of resources in the SAP System.

| Enums ||
|---|---|
| `RESOURCE_KIND_UNSPECIFIED` | Unspecified resource kind. |
| `RESOURCE_KIND_INSTANCE` | This is a compute instance. |
| `RESOURCE_KIND_DISK` | This is a compute disk. |
| `RESOURCE_KIND_ADDRESS` | This is a compute address. |
| `RESOURCE_KIND_FILESTORE` | This is a filestore instance. |
| `RESOURCE_KIND_HEALTH_CHECK` | This is a compute health check. |
| `RESOURCE_KIND_FORWARDING_RULE` | This is a compute forwarding rule. |
| `RESOURCE_KIND_BACKEND_SERVICE` | This is a compute backend service. |
| `RESOURCE_KIND_SUBNETWORK` | This is a compute subnetwork. |
| `RESOURCE_KIND_NETWORK` | This is a compute network. |
| `RESOURCE_KIND_PUBLIC_ADDRESS` | This is a public accessible IP Address. |
| `RESOURCE_KIND_INSTANCE_GROUP` | This is a compute instance group. |

## InstanceProperties

Instance Properties.

| JSON representation |
|---|
| ``` { "status": string, "machineType": string, "instanceNumber": string, "upcomingMaintenanceEvent": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#UpcomingMaintenanceEvent`) }, "roles": [ enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#InstanceRole`) ], "sapInstanceProperties": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#SapInstanceProperties`) } } ``` |

| Fields ||
|---|---|
| `status` | `string` Optional. Instance status. |
| `machineType` | `string` Optional. Instance machine type. |
| `instanceNumber` | `string` Optional. Instance number. |
| `upcomingMaintenanceEvent` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#UpcomingMaintenanceEvent`)`` Optional. the next maintenance event on VM |
| `roles[]` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#InstanceRole`)`` Optional. Instance roles. |
| `sapInstanceProperties` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#SapInstanceProperties`)`` Optional. SAP Instance properties. |

## UpcomingMaintenanceEvent

Maintenance Event

| JSON representation |
|---|
| ``` { "startTime": string, "endTime": string, "maintenanceStatus": string, "type": string, "onHostMaintenance": string } ``` |

| Fields ||
|---|---|
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Optional. Start time 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"`. |
| `endTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Optional. End time 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"`. |
| `maintenanceStatus` | `string` Optional. Maintenance status |
| `type` | `string` Optional. Type |
| `onHostMaintenance` | `string` Optional. Instance maintenance behavior. Could be `MIGRATE` or `TERMINATE`. |

## SapInstanceProperties

SAP instance properties.

| JSON representation |
|---|
| ``` { "numbers": [ string ], "agentStates": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#AgentStates`) } } ``` |

| Fields ||
|---|---|
| `numbers[]` | `string` Optional. SAP Instance numbers. They are from '00' to '99'. |
| `agentStates` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#AgentStates`)`` Optional. Sap Instance Agent status. |

## AgentStates

Agent status.

| JSON representation |
|---|
| ``` { "installedVersion": string, "availableVersion": string, "isFullyEnabled": boolean, "processMetrics": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ServiceStates`) }, "systemDiscovery": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ServiceStates`) }, "hanaMonitoring": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ServiceStates`) } } ``` |

| Fields ||
|---|---|
| `installedVersion` | `string` Optional. The installed version of the agent on the host. |
| `availableVersion` | `string` Optional. The available version of the agent in artifact registry. |
| `isFullyEnabled` | `boolean` Optional. Whether the agent is fully enabled. If false, the agent is has some issues. |
| `processMetrics` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ServiceStates`)`` Optional. The Process metrics of the agent. |
| `systemDiscovery` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ServiceStates`)`` Optional. The System discovery metrics of the agent. |
| `hanaMonitoring` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#ServiceStates`)`` Optional. HANA monitoring metrics of the agent. |

## ServiceStates

The state of the service.

| JSON representation |
|---|
| ``` { "state": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#State`), "iamPermissions": [ { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#IAMPermission`) } ] } ``` |

| Fields ||
|---|---|
| `state` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#State`)`` Output only. The overall state of the service. |
| `iamPermissions[]` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource#IAMPermission`)`` Optional. Output only. The IAM permissions for the service. |

## State

The state of the service.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The state is unspecified. |
| `CONFIG_FAILURE` | The state means the service has config errors. |
| `IAM_FAILURE` | The state means the service has IAM permission errors. |
| `FUNCTIONALITY_FAILURE` | The state means the service has functionality errors. |
| `ENABLED` | The state means the service has no error. |
| `DISABLED` | The state means the service disabled. |

## IAMPermission

The IAM permission status.

| JSON representation |
|---|
| ``` { "name": string, "granted": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The name of the permission. |
| `granted` | `boolean` Output only. Whether the permission is granted. |

## InstanceRole

Instance Role

| Enums ||
|---|---|
| `INSTANCE_ROLE_UNSPECIFIED` | Unspecified role. |
| `INSTANCE_ROLE_ASCS` | ASCS role. |
| `INSTANCE_ROLE_ERS` | ERS role. |
| `INSTANCE_ROLE_APP_SERVER` | APP server. |
| `INSTANCE_ROLE_HANA_PRIMARY` | HANA primary role. |
| `INSTANCE_ROLE_HANA_SECONDARY` | HANA secondary role. |