Google Cloud OS Config v1 API - Class OsConfigZonalService.OsConfigZonalServiceClient (2.3.0)

public class OsConfigZonalService.OsConfigZonalServiceClient : ClientBase<OsConfigZonalService.OsConfigZonalServiceClient>

Reference documentation and code samples for the Google Cloud OS Config v1 API class OsConfigZonalService.OsConfigZonalServiceClient.

Client for OsConfigZonalService

Inheritance

object > ClientBase > ClientBaseOsConfigZonalServiceOsConfigZonalServiceClient > OsConfigZonalService.OsConfigZonalServiceClient

Namespace

Google.Cloud.OsConfig.V1

Assembly

Google.Cloud.OsConfig.V1.dll

Constructors

OsConfigZonalServiceClient()

protected OsConfigZonalServiceClient()

Protected parameterless constructor to allow creation of test doubles.

OsConfigZonalServiceClient(CallInvoker)

public OsConfigZonalServiceClient(CallInvoker callInvoker)

Creates a new client for OsConfigZonalService that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

OsConfigZonalServiceClient(ChannelBase)

public OsConfigZonalServiceClient(ChannelBase channel)

Creates a new client for OsConfigZonalService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

OsConfigZonalServiceClient(ClientBaseConfiguration)

protected OsConfigZonalServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest, CallOptions)

public virtual Operation CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

CreateOSPolicyAssignmentAsync(CreateOSPolicyAssignmentRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateOSPolicyAssignmentAsync(CreateOSPolicyAssignmentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateOSPolicyAssignmentAsync(CreateOSPolicyAssignmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> CreateOSPolicyAssignmentAsync(CreateOSPolicyAssignmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest, CallOptions)

public virtual Operation DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeleteOSPolicyAssignmentAsync(DeleteOSPolicyAssignmentRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteOSPolicyAssignmentAsync(DeleteOSPolicyAssignmentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteOSPolicyAssignmentAsync(DeleteOSPolicyAssignmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteOSPolicyAssignmentAsync(DeleteOSPolicyAssignmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

GetInventory(GetInventoryRequest, CallOptions)

public virtual Inventory GetInventory(GetInventoryRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Inventory

The response received from the server.

GetInventory(GetInventoryRequest, Metadata, DateTime?, CancellationToken)

public virtual Inventory GetInventory(GetInventoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Inventory

The response received from the server.

GetInventoryAsync(GetInventoryRequest, CallOptions)

public virtual AsyncUnaryCall<Inventory> GetInventoryAsync(GetInventoryRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInventory

The call object.

GetInventoryAsync(GetInventoryRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Inventory> GetInventoryAsync(GetInventoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallInventory

The call object.

GetOSPolicyAssignment(GetOSPolicyAssignmentRequest, CallOptions)

public virtual OSPolicyAssignment GetOSPolicyAssignment(GetOSPolicyAssignmentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
OSPolicyAssignment

The response received from the server.

GetOSPolicyAssignment(GetOSPolicyAssignmentRequest, Metadata, DateTime?, CancellationToken)

public virtual OSPolicyAssignment GetOSPolicyAssignment(GetOSPolicyAssignmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
OSPolicyAssignment

The response received from the server.

GetOSPolicyAssignmentAsync(GetOSPolicyAssignmentRequest, CallOptions)

public virtual AsyncUnaryCall<OSPolicyAssignment> GetOSPolicyAssignmentAsync(GetOSPolicyAssignmentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOSPolicyAssignment

The call object.

GetOSPolicyAssignmentAsync(GetOSPolicyAssignmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<OSPolicyAssignment> GetOSPolicyAssignmentAsync(GetOSPolicyAssignmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOSPolicyAssignment

The call object.

GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest, CallOptions)

public virtual OSPolicyAssignmentReport GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest request, CallOptions options)

Get the OS policy asssignment report for the specified Compute Engine VM instance.

Parameters
Name Description
request GetOSPolicyAssignmentReportRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
OSPolicyAssignmentReport

The response received from the server.

GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest, Metadata, DateTime?, CancellationToken)

public virtual OSPolicyAssignmentReport GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get the OS policy asssignment report for the specified Compute Engine VM instance.

Parameters
Name Description
request GetOSPolicyAssignmentReportRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
OSPolicyAssignmentReport

The response received from the server.

GetOSPolicyAssignmentReportAsync(GetOSPolicyAssignmentReportRequest, CallOptions)

public virtual AsyncUnaryCall<OSPolicyAssignmentReport> GetOSPolicyAssignmentReportAsync(GetOSPolicyAssignmentReportRequest request, CallOptions options)

Get the OS policy asssignment report for the specified Compute Engine VM instance.

Parameters
Name Description
request GetOSPolicyAssignmentReportRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOSPolicyAssignmentReport

The call object.

GetOSPolicyAssignmentReportAsync(GetOSPolicyAssignmentReportRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<OSPolicyAssignmentReport> GetOSPolicyAssignmentReportAsync(GetOSPolicyAssignmentReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get the OS policy asssignment report for the specified Compute Engine VM instance.

Parameters
Name Description
request GetOSPolicyAssignmentReportRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOSPolicyAssignmentReport

The call object.

GetVulnerabilityReport(GetVulnerabilityReportRequest, CallOptions)

public virtual VulnerabilityReport GetVulnerabilityReport(GetVulnerabilityReportRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
VulnerabilityReport

The response received from the server.

GetVulnerabilityReport(GetVulnerabilityReportRequest, Metadata, DateTime?, CancellationToken)

public virtual VulnerabilityReport GetVulnerabilityReport(GetVulnerabilityReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
VulnerabilityReport

The response received from the server.

GetVulnerabilityReportAsync(GetVulnerabilityReportRequest, CallOptions)

public virtual AsyncUnaryCall<VulnerabilityReport> GetVulnerabilityReportAsync(GetVulnerabilityReportRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallVulnerabilityReport

The call object.

GetVulnerabilityReportAsync(GetVulnerabilityReportRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<VulnerabilityReport> GetVulnerabilityReportAsync(GetVulnerabilityReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallVulnerabilityReport

The call object.

ListInventories(ListInventoriesRequest, CallOptions)

public virtual ListInventoriesResponse ListInventories(ListInventoriesRequest request, CallOptions options)

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

Parameters
Name Description
request ListInventoriesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListInventoriesResponse

The response received from the server.

ListInventories(ListInventoriesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListInventoriesResponse ListInventories(ListInventoriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListInventoriesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListInventoriesResponse

The response received from the server.

ListInventoriesAsync(ListInventoriesRequest, CallOptions)

public virtual AsyncUnaryCall<ListInventoriesResponse> ListInventoriesAsync(ListInventoriesRequest request, CallOptions options)

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

Parameters
Name Description
request ListInventoriesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListInventoriesResponse

The call object.

ListInventoriesAsync(ListInventoriesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListInventoriesResponse> ListInventoriesAsync(ListInventoriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListInventoriesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListInventoriesResponse

The call object.

ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest, CallOptions)

public virtual ListOSPolicyAssignmentReportsResponse ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest request, CallOptions options)

List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.

Parameters
Name Description
request ListOSPolicyAssignmentReportsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListOSPolicyAssignmentReportsResponse

The response received from the server.

ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListOSPolicyAssignmentReportsResponse ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.

Parameters
Name Description
request ListOSPolicyAssignmentReportsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListOSPolicyAssignmentReportsResponse

The response received from the server.

ListOSPolicyAssignmentReportsAsync(ListOSPolicyAssignmentReportsRequest, CallOptions)

public virtual AsyncUnaryCall<ListOSPolicyAssignmentReportsResponse> ListOSPolicyAssignmentReportsAsync(ListOSPolicyAssignmentReportsRequest request, CallOptions options)

List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.

Parameters
Name Description
request ListOSPolicyAssignmentReportsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListOSPolicyAssignmentReportsResponse

The call object.

ListOSPolicyAssignmentReportsAsync(ListOSPolicyAssignmentReportsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListOSPolicyAssignmentReportsResponse> ListOSPolicyAssignmentReportsAsync(ListOSPolicyAssignmentReportsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.

Parameters
Name Description
request ListOSPolicyAssignmentReportsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListOSPolicyAssignmentReportsResponse

The call object.

ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest, CallOptions)

public virtual ListOSPolicyAssignmentRevisionsResponse ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest request, CallOptions options)

List the OS policy assignment revisions for a given OS policy assignment.

Parameters
Name Description
request ListOSPolicyAssignmentRevisionsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListOSPolicyAssignmentRevisionsResponse

The response received from the server.

ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListOSPolicyAssignmentRevisionsResponse ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List the OS policy assignment revisions for a given OS policy assignment.

Parameters
Name Description
request ListOSPolicyAssignmentRevisionsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListOSPolicyAssignmentRevisionsResponse

The response received from the server.

ListOSPolicyAssignmentRevisionsAsync(ListOSPolicyAssignmentRevisionsRequest, CallOptions)

public virtual AsyncUnaryCall<ListOSPolicyAssignmentRevisionsResponse> ListOSPolicyAssignmentRevisionsAsync(ListOSPolicyAssignmentRevisionsRequest request, CallOptions options)

List the OS policy assignment revisions for a given OS policy assignment.

Parameters
Name Description
request ListOSPolicyAssignmentRevisionsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListOSPolicyAssignmentRevisionsResponse

The call object.

ListOSPolicyAssignmentRevisionsAsync(ListOSPolicyAssignmentRevisionsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListOSPolicyAssignmentRevisionsResponse> ListOSPolicyAssignmentRevisionsAsync(ListOSPolicyAssignmentRevisionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List the OS policy assignment revisions for a given OS policy assignment.

Parameters
Name Description
request ListOSPolicyAssignmentRevisionsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListOSPolicyAssignmentRevisionsResponse

The call object.

ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest, CallOptions)

public virtual ListOSPolicyAssignmentsResponse ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListOSPolicyAssignmentsResponse

The response received from the server.

ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListOSPolicyAssignmentsResponse ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListOSPolicyAssignmentsResponse

The response received from the server.

ListOSPolicyAssignmentsAsync(ListOSPolicyAssignmentsRequest, CallOptions)

public virtual AsyncUnaryCall<ListOSPolicyAssignmentsResponse> ListOSPolicyAssignmentsAsync(ListOSPolicyAssignmentsRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListOSPolicyAssignmentsResponse

The call object.

ListOSPolicyAssignmentsAsync(ListOSPolicyAssignmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListOSPolicyAssignmentsResponse> ListOSPolicyAssignmentsAsync(ListOSPolicyAssignmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListOSPolicyAssignmentsResponse

The call object.

ListVulnerabilityReports(ListVulnerabilityReportsRequest, CallOptions)

public virtual ListVulnerabilityReportsResponse ListVulnerabilityReports(ListVulnerabilityReportsRequest request, CallOptions options)

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

Parameters
Name Description
request ListVulnerabilityReportsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListVulnerabilityReportsResponse

The response received from the server.

ListVulnerabilityReports(ListVulnerabilityReportsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListVulnerabilityReportsResponse ListVulnerabilityReports(ListVulnerabilityReportsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListVulnerabilityReportsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListVulnerabilityReportsResponse

The response received from the server.

ListVulnerabilityReportsAsync(ListVulnerabilityReportsRequest, CallOptions)

public virtual AsyncUnaryCall<ListVulnerabilityReportsResponse> ListVulnerabilityReportsAsync(ListVulnerabilityReportsRequest request, CallOptions options)

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

Parameters
Name Description
request ListVulnerabilityReportsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListVulnerabilityReportsResponse

The call object.

ListVulnerabilityReportsAsync(ListVulnerabilityReportsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListVulnerabilityReportsResponse> ListVulnerabilityReportsAsync(ListVulnerabilityReportsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListVulnerabilityReportsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListVulnerabilityReportsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override OsConfigZonalService.OsConfigZonalServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
OsConfigZonalServiceOsConfigZonalServiceClient
Overrides

UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest, CallOptions)

public virtual Operation UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

UpdateOSPolicyAssignmentAsync(UpdateOSPolicyAssignmentRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateOSPolicyAssignmentAsync(UpdateOSPolicyAssignmentRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdateOSPolicyAssignmentAsync(UpdateOSPolicyAssignmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpdateOSPolicyAssignmentAsync(UpdateOSPolicyAssignmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.