Class OsConfigZonalService.OsConfigZonalServiceClient (1.4.0)

public class OsConfigZonalServiceClient : ClientBase<OsConfigZonalService.OsConfigZonalServiceClient>

Client for OsConfigZonalService

Inheritance

Object > ClientBase > ClientBase<OsConfigZonalService.OsConfigZonalServiceClient> > 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(ClientBase.ClientBaseConfiguration)

protected OsConfigZonalServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Inventory>

The call object.

GetInventoryAsync(GetInventoryRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Inventory>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<VulnerabilityReport>

The call object.

GetVulnerabilityReportAsync(GetVulnerabilityReportRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<VulnerabilityReport>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ListInventoriesResponse>

The call object.

ListInventoriesAsync(ListInventoriesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ListInventoriesResponse>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ListVulnerabilityReportsResponse>

The call object.

ListVulnerabilityReportsAsync(ListVulnerabilityReportsRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ListVulnerabilityReportsResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
OsConfigZonalService.OsConfigZonalServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.OsConfig.V1.OsConfigZonalService.OsConfigZonalServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)