Class OsConfigZonalService.OsConfigZonalServiceBase (1.5.0)

[BindServiceMethod(typeof(OsConfigZonalService), "BindService")]
public abstract class OsConfigZonalServiceBase

Base class for server-side implementations of OsConfigZonalService

Inheritance

System.Object > OsConfigZonalService.OsConfigZonalServiceBase

Namespace

Google.Cloud.OsConfig.V1

Assembly

Google.Cloud.OsConfig.V1.dll

Methods

GetInventory(GetInventoryRequest, ServerCallContext)

public virtual Task<Inventory> GetInventory(GetInventoryRequest request, ServerCallContext context)

Get inventory data for the specified VM instance. If the VM has no associated inventory, the message NOT_FOUND is returned.

Parameters
NameDescription
requestGetInventoryRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
System.Threading.Tasks.Task<Inventory>

The response to send back to the client (wrapped by a task).

GetVulnerabilityReport(GetVulnerabilityReportRequest, ServerCallContext)

public virtual Task<VulnerabilityReport> GetVulnerabilityReport(GetVulnerabilityReportRequest request, ServerCallContext context)

Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.

Parameters
NameDescription
requestGetVulnerabilityReportRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
System.Threading.Tasks.Task<VulnerabilityReport>

The response to send back to the client (wrapped by a task).

ListInventories(ListInventoriesRequest, ServerCallContext)

public virtual Task<ListInventoriesResponse> ListInventories(ListInventoriesRequest request, ServerCallContext context)

List inventory data for all VM instances in the specified zone.

Parameters
NameDescription
requestListInventoriesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
System.Threading.Tasks.Task<ListInventoriesResponse>

The response to send back to the client (wrapped by a task).

ListVulnerabilityReports(ListVulnerabilityReportsRequest, ServerCallContext)

public virtual Task<ListVulnerabilityReportsResponse> ListVulnerabilityReports(ListVulnerabilityReportsRequest request, ServerCallContext context)

List vulnerability reports for all VM instances in the specified zone.

Parameters
NameDescription
requestListVulnerabilityReportsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
System.Threading.Tasks.Task<ListVulnerabilityReportsResponse>

The response to send back to the client (wrapped by a task).