Compute Engine v1 API - Class ProjectViews.ProjectViewsClient (4.0.0)

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.ProjectViewsClient

Namespace

Google.Cloud.Compute.V1

Assembly

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 CallInvoker

The callInvoker to use to make remote calls.

ProjectViewsClient(ChannelBase)

public ProjectViewsClient(ChannelBase channel)

Creates a new client for ProjectViews

Parameter
Name Description
channel ChannelBase

The 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 ClientBaseClientBaseConfiguration

The 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 GetProjectViewRequest

The request to send to the server.

options CallOptions

The 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 GetProjectViewRequest

The request to send to the server.

headers Metadata

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

deadline System.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
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 GetProjectViewRequest

The request to send to the server.

options CallOptions

The 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 GetProjectViewRequest

The request to send to the server.

headers Metadata

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

deadline System.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
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
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.ProjectViews.ProjectViewsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)