public class ProjectViews.ProjectViewsClient : ClientBase<ProjectViews.ProjectViewsClient>Reference documentation and code samples for the Compute Engine v1 API class ProjectViews.ProjectViewsClient.
Client for ProjectViews
Inheritance
object > ClientBase > ClientBaseProjectViewsProjectViewsClient > ProjectViews.ProjectViewsClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
ProjectViewsClient()
protected ProjectViewsClient()Protected parameterless constructor to allow creation of test doubles.
ProjectViewsClient(CallInvoker)
public ProjectViewsClient(CallInvoker callInvoker)Creates a new client for ProjectViews that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
ProjectViewsClient(ChannelBase)
public ProjectViewsClient(ChannelBase channel)Creates a new client for ProjectViews
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
ProjectViewsClient(ClientBaseConfiguration)
protected ProjectViewsClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
Get(GetProjectViewRequest, CallOptions)
public virtual ProjectView Get(GetProjectViewRequest request, CallOptions options)Returns the specified global ProjectViews resource, with a regional context. This regional API endpoint reads resource metadata from regional read-only replicas. Because changes are copied to these regional replicas asynchronously, for real-time resource reads or any write operations (creating, updating, or deleting resources), use the global projects.get endpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
GetProjectViewRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ProjectView |
The response received from the server. |
Get(GetProjectViewRequest, Metadata, DateTime?, CancellationToken)
public virtual ProjectView Get(GetProjectViewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Returns the specified global ProjectViews resource, with a regional context. This regional API endpoint reads resource metadata from regional read-only replicas. Because changes are copied to these regional replicas asynchronously, for real-time resource reads or any write operations (creating, updating, or deleting resources), use the global projects.get endpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
GetProjectViewRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ProjectView |
The response received from the server. |
GetAsync(GetProjectViewRequest, CallOptions)
public virtual AsyncUnaryCall<ProjectView> GetAsync(GetProjectViewRequest request, CallOptions options)Returns the specified global ProjectViews resource, with a regional context. This regional API endpoint reads resource metadata from regional read-only replicas. Because changes are copied to these regional replicas asynchronously, for real-time resource reads or any write operations (creating, updating, or deleting resources), use the global projects.get endpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
GetProjectViewRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallProjectView |
The call object. |
GetAsync(GetProjectViewRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ProjectView> GetAsync(GetProjectViewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Returns the specified global ProjectViews resource, with a regional context. This regional API endpoint reads resource metadata from regional read-only replicas. Because changes are copied to these regional replicas asynchronously, for real-time resource reads or any write operations (creating, updating, or deleting resources), use the global projects.get endpoint.
| Parameters | |
|---|---|
| Name | Description |
request |
GetProjectViewRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallProjectView |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override ProjectViews.ProjectViewsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
ProjectViewsProjectViewsClient |
|