Google Cloud OS Config v1 API - Class OsConfigZonalService.OsConfigZonalServiceClient (2.2.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

OsConfigZonalServiceClient(ChannelBase)

public OsConfigZonalServiceClient(ChannelBase channel)

Creates a new client for OsConfigZonalService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

OsConfigZonalServiceClient(ClientBaseConfiguration)

protected OsConfigZonalServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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
NameDescription
requestCreateOSPolicyAssignmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestCreateOSPolicyAssignmentRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestCreateOSPolicyAssignmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestCreateOSPolicyAssignmentRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
requestDeleteOSPolicyAssignmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteOSPolicyAssignmentRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestDeleteOSPolicyAssignmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestDeleteOSPolicyAssignmentRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetInventoryRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetInventoryRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetInventoryRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetInventoryRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetOSPolicyAssignmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetOSPolicyAssignmentRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetOSPolicyAssignmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetOSPolicyAssignmentRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetOSPolicyAssignmentReportRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetOSPolicyAssignmentReportRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetOSPolicyAssignmentReportRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetOSPolicyAssignmentReportRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetVulnerabilityReportRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetVulnerabilityReportRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetVulnerabilityReportRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestGetVulnerabilityReportRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListInventoriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListInventoriesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListInventoriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListInventoriesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentReportsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentReportsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentReportsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentReportsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentRevisionsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentRevisionsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentRevisionsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentRevisionsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListOSPolicyAssignmentsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListVulnerabilityReportsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListVulnerabilityReportsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestListVulnerabilityReportsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestListVulnerabilityReportsRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListVulnerabilityReportsResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
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
NameDescription
requestUpdateOSPolicyAssignmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestUpdateOSPolicyAssignmentRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestUpdateOSPolicyAssignmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestUpdateOSPolicyAssignmentRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.