public class OsConfigZonalServiceClient : ClientBase<OsConfigZonalService.OsConfigZonalServiceClient>Client for OsConfigZonalService
Inheritance
System.Object > ClientBase > ClientBase<OsConfigZonalService.OsConfigZonalServiceClient> > OsConfigZonalService.OsConfigZonalServiceClientNamespace
Google.Cloud.OsConfig.V1Assembly
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 |
CallInvokerThe callInvoker to use to make remote calls. |
OsConfigZonalServiceClient(ChannelBase)
public OsConfigZonalServiceClient(ChannelBase channel)Creates a new client for OsConfigZonalService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
OsConfigZonalServiceClient(ClientBase.ClientBaseConfiguration)
protected OsConfigZonalServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfigurationThe 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 | |
|---|---|
| Name | Description |
request |
GetInventoryRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetInventoryRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn 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 |
GetInventoryRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetInventoryRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetVulnerabilityReportRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetVulnerabilityReportRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn 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 |
GetVulnerabilityReportRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetVulnerabilityReportRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListInventoriesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListInventoriesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn 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 |
ListInventoriesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListInventoriesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListVulnerabilityReportsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListVulnerabilityReportsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn 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 |
ListVulnerabilityReportsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListVulnerabilityReportsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.Nullable<System.DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
System.Threading.CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
OsConfigZonalService.OsConfigZonalServiceClient |
|