[BindServiceMethod(typeof(OsConfigZonalService), "BindService")]
public abstract class OsConfigZonalServiceBase
Base class for server-side implementations of OsConfigZonalService
Namespace
Google.Cloud.OsConfig.V1AlphaAssembly
Google.Cloud.OsConfig.V1Alpha.dll
Methods
CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest, ServerCallContext)
public virtual Task<Operation> CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest request, ServerCallContext context)
Create an OS policy assignment.
This method also creates the first revision of the OS policy assignment.
This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO.
For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
Parameters | |
---|---|
Name | Description |
request | CreateOSPolicyAssignmentRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest, ServerCallContext)
public virtual Task<Operation> DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest request, ServerCallContext context)
Delete the OS policy assignment.
This method creates a new revision of the OS policy assignment.
This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO.
If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted.
For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
Parameters | |
---|---|
Name | Description |
request | DeleteOSPolicyAssignmentRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
GetInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest, ServerCallContext)
public virtual Task<InstanceOSPoliciesCompliance> GetInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest request, ServerCallContext context)
Get OS policies compliance data for the specified Compute Engine VM instance.
Parameters | |
---|---|
Name | Description |
request | GetInstanceOSPoliciesComplianceRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<InstanceOSPoliciesCompliance> | The response to send back to the client (wrapped by a task). |
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 | |
---|---|
Name | Description |
request | GetInventoryRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Inventory> | The response to send back to the client (wrapped by a task). |
GetOSPolicyAssignment(GetOSPolicyAssignmentRequest, ServerCallContext)
public virtual Task<OSPolicyAssignment> GetOSPolicyAssignment(GetOSPolicyAssignmentRequest request, ServerCallContext context)
Retrieve an existing OS policy assignment.
This method always returns the latest revision. In order to retrieve a
previous revision of the assignment, also provide the revision ID in the
name
parameter.
Parameters | |
---|---|
Name | Description |
request | GetOSPolicyAssignmentRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<OSPolicyAssignment> | The response to send back to the client (wrapped by a task). |
GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest, ServerCallContext)
public virtual Task<OSPolicyAssignmentReport> GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest request, ServerCallContext context)
Get the OS policy asssignment report for the specified Compute Engine VM instance.
Parameters | |
---|---|
Name | Description |
request | GetOSPolicyAssignmentReportRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<OSPolicyAssignmentReport> | 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 | |
---|---|
Name | Description |
request | GetVulnerabilityReportRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<VulnerabilityReport> | The response to send back to the client (wrapped by a task). |
ListInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest, ServerCallContext)
public virtual Task<ListInstanceOSPoliciesCompliancesResponse> ListInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest request, ServerCallContext context)
List OS policies compliance data for all Compute Engine VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListInstanceOSPoliciesCompliancesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListInstanceOSPoliciesCompliancesResponse> | 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 | |
---|---|
Name | Description |
request | ListInventoriesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListInventoriesResponse> | The response to send back to the client (wrapped by a task). |
ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest, ServerCallContext)
public virtual Task<ListOSPolicyAssignmentReportsResponse> ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest request, ServerCallContext context)
List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListOSPolicyAssignmentReportsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListOSPolicyAssignmentReportsResponse> | The response to send back to the client (wrapped by a task). |
ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest, ServerCallContext)
public virtual Task<ListOSPolicyAssignmentRevisionsResponse> ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest request, ServerCallContext context)
List the OS policy assignment revisions for a given OS policy assignment.
Parameters | |
---|---|
Name | Description |
request | ListOSPolicyAssignmentRevisionsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListOSPolicyAssignmentRevisionsResponse> | The response to send back to the client (wrapped by a task). |
ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest, ServerCallContext)
public virtual Task<ListOSPolicyAssignmentsResponse> ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest request, ServerCallContext context)
List the OS policy assignments under the parent resource.
For each OS policy assignment, the latest revision is returned.
Parameters | |
---|---|
Name | Description |
request | ListOSPolicyAssignmentsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListOSPolicyAssignmentsResponse> | 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 | |
---|---|
Name | Description |
request | ListVulnerabilityReportsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListVulnerabilityReportsResponse> | The response to send back to the client (wrapped by a task). |
UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest, ServerCallContext)
public virtual Task<Operation> UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest request, ServerCallContext context)
Update an existing OS policy assignment.
This method creates a new revision of the OS policy assignment.
This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO.
For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
Parameters | |
---|---|
Name | Description |
request | UpdateOSPolicyAssignmentRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |