3.14.0-rc 3.13.0 (latest) 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 2.48.0-rc 2.47.1 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.1 2.24.0 2.23.0 2.22.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.1 2.14.0 2.13.0 2.12.0 2.11.0 OS Config agent endpoint API.

###### Equality

Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal `std::shared_ptr<*Connection>` objects compare equal. Objects that compare equal share the same underlying resources.

###### Performance

Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.

###### Thread Safety

Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.

## Constructors

### AgentEndpointServiceClient(AgentEndpointServiceClient const \&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `AgentEndpointServiceClient const &` |

### AgentEndpointServiceClient(AgentEndpointServiceClient \&\&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `AgentEndpointServiceClient &&` |

### AgentEndpointServiceClient(std::shared_ptr\< AgentEndpointServiceConnection \>, Options)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `connection` | `std::shared_ptr< AgentEndpointServiceConnection >` |
| `opts` | `Options` |

## Operators

### operator=(AgentEndpointServiceClient const \&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `AgentEndpointServiceClient const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AgentEndpointServiceClient &` |   |

### operator=(AgentEndpointServiceClient \&\&)

Copy and move support

| **Parameter** ||
|---|---|
| **Name** | **Description** |
|   | `AgentEndpointServiceClient &&` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AgentEndpointServiceClient &` |   |

## Functions

### ReceiveTaskNotification(std::string const \&, std::string const \&, Options)

Stream established by client to receive Task notifications.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance_id_token` | `std::string const &` Required. This is the Compute Engine instance identity token described in <https://cloud.google.com/compute/docs/instances/verifying-instance-identity> where the audience is 'osconfig.googleapis.com' and the format is 'full'. |
| `agent_version` | `std::string const &` Required. The version of the agent making the request. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReceiveTaskNotificationResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L95)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ReceiveTaskNotification(google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationRequest const \&, Options)

Stream established by client to receive Task notifications.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.osconfig.agentendpoint.v1.ReceiveTaskNotificationRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L83). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReceiveTaskNotificationResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L95)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### StartNextTask(std::string const \&, Options)

Signals the start of a task execution and returns the task info.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance_id_token` | `std::string const &` Required. This is the Compute Engine instance identity token described in <https://cloud.google.com/compute/docs/instances/verifying-instance-identity> where the audience is 'osconfig.googleapis.com' and the format is 'full'. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::StartNextTaskResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.StartNextTaskResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L106)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### StartNextTask(google::cloud::osconfig::agentendpoint::v1::StartNextTaskRequest const \&, Options)

Signals the start of a task execution and returns the task info.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::osconfig::agentendpoint::v1::StartNextTaskRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.osconfig.agentendpoint.v1.StartNextTaskRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L98). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::StartNextTaskResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.StartNextTaskResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L106)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ReportTaskProgress(std::string const \&, std::string const \&, google::cloud::osconfig::agentendpoint::v1::TaskType, Options)

Signals an intermediary progress checkpoint in task execution.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance_id_token` | `std::string const &` Required. This is the Compute Engine instance identity token described in <https://cloud.google.com/compute/docs/instances/verifying-instance-identity> where the audience is 'osconfig.googleapis.com' and the format is 'full'. |
| `task_id` | `std::string const &` Required. Unique identifier of the task this applies to. |
| `task_type` | `google::cloud::osconfig::agentendpoint::v1::TaskType` Required. The type of task to report progress on. Progress must include the appropriate message based on this enum as specified below: `APPLY_PATCHES` = ApplyPatchesTaskProgress `EXEC_STEP` = Progress not supported for this type. `APPLY_CONFIG_TASK` = ApplyConfigTaskProgress |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReportTaskProgressResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L145)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ReportTaskProgress(google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressRequest const \&, Options)

Signals an intermediary progress checkpoint in task execution.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.osconfig.agentendpoint.v1.ReportTaskProgressRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L113). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReportTaskProgressResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L145)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ReportTaskComplete(std::string const \&, std::string const \&, google::cloud::osconfig::agentendpoint::v1::TaskType, std::string const \&, Options)

Signals that the task execution is complete and optionally returns the next task.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance_id_token` | `std::string const &` Required. This is the Compute Engine instance identity token described in <https://cloud.google.com/compute/docs/instances/verifying-instance-identity> where the audience is 'osconfig.googleapis.com' and the format is 'full'. |
| `task_id` | `std::string const &` Required. Unique identifier of the task this applies to. |
| `task_type` | `google::cloud::osconfig::agentendpoint::v1::TaskType` Required. The type of task to report completed. Output must include the appropriate message based on this enum as specified below: APPLY_PATCHES = ApplyPatchesTaskOutput EXEC_STEP = ExecStepTaskOutput APPLY_CONFIG_TASK = ApplyConfigTaskOutput |
| `error_message` | `std::string const &` Descriptive error message if the task execution ended in error. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReportTaskCompleteResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L186)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ReportTaskComplete(google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteRequest const \&, Options)

Signals that the task execution is complete and optionally returns the next task.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.osconfig.agentendpoint.v1.ReportTaskCompleteRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L151). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReportTaskCompleteResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L186)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### RegisterAgent(std::string const \&, std::string const \&, std::vector\< std::string \> const \&, Options)

Registers the agent running on the VM.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance_id_token` | `std::string const &` Required. This is the Compute Engine instance identity token described in <https://cloud.google.com/compute/docs/instances/verifying-instance-identity> where the audience is 'osconfig.googleapis.com' and the format is 'full'. |
| `agent_version` | `std::string const &` Required. The version of the agent. |
| `supported_capabilities` | `std::vector< std::string > const &` Required. The capabilities supported by the agent. Supported values are: PATCH_GA GUEST_POLICY_BETA CONFIG_V1 |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::RegisterAgentResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.RegisterAgentResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L222)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### RegisterAgent(google::cloud::osconfig::agentendpoint::v1::RegisterAgentRequest const \&, Options)

Registers the agent running on the VM.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::osconfig::agentendpoint::v1::RegisterAgentRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.osconfig.agentendpoint.v1.RegisterAgentRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L189). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::RegisterAgentResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.RegisterAgentResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L222)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ReportInventory(std::string const \&, std::string const \&, google::cloud::osconfig::agentendpoint::v1::Inventory const \&, Options)

Reports the VMs current inventory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance_id_token` | `std::string const &` Required. This is the Compute Engine instance identity token described in <https://cloud.google.com/compute/docs/instances/verifying-instance-identity> where the audience is 'osconfig.googleapis.com' and the format is 'full'. |
| `inventory_checksum` | `std::string const &` Required. This is a client created checksum that should be generated based on the contents of the reported inventory. This will be used by the service to determine if it has the latest version of inventory. |
| `inventory` | `google::cloud::osconfig::agentendpoint::v1::Inventory const &` Optional. This is the details of the inventory. Should only be provided if the inventory has changed since the last report, or if instructed by the service to provide full inventory. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportInventoryResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReportInventoryResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L243)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ReportInventory(google::cloud::osconfig::agentendpoint::v1::ReportInventoryRequest const \&, Options)

Reports the VMs current inventory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::osconfig::agentendpoint::v1::ReportInventoryRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.osconfig.agentendpoint.v1.ReportInventoryRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L225). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportInventoryResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReportInventoryResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L243)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ReportVmInventory(std::string const \&, std::string const \&, google::cloud::osconfig::agentendpoint::v1::VmInventory const \&, Options)

Reports the VMs current inventory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `instance_id_token` | `std::string const &` Required. This is the Compute Engine instance identity token described in <https://cloud.google.com/compute/docs/instances/verifying-instance-identity> where the audience is 'osconfig.googleapis.com' and the format is 'full'. |
| `inventory_checksum` | `std::string const &` Required. This is a client created checksum that should be generated based on the contents of the reported inventory. This will be used by the service to determine if it has the latest version of inventory. |
| `vm_inventory` | `google::cloud::osconfig::agentendpoint::v1::VmInventory const &` Optional. This is the details of the VM inventory. Should only be provided if the inventory has changed since the last report, or if instructed by the service to provide full inventory. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportVmInventoryResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReportVmInventoryResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L267)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### ReportVmInventory(google::cloud::osconfig::agentendpoint::v1::ReportVmInventoryRequest const \&, Options)

Reports the VMs current inventory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::cloud::osconfig::agentendpoint::v1::ReportVmInventoryRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.osconfig.agentendpoint.v1.ReportVmInventoryRequest](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L249). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportVmInventoryResponse >` | the result of the RPC. The response message type ([google.cloud.osconfig.agentendpoint.v1.ReportVmInventoryResponse](https://github.com/googleapis/googleapis/blob/57aa4dbce5d23b2115b2732b10dcb7ddc8e8698d/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto#L267)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |