API hub v1 API - Class HostProjectRegistrationService.HostProjectRegistrationServiceClient (1.0.0)

public class HostProjectRegistrationService.HostProjectRegistrationServiceClient : ClientBase<HostProjectRegistrationService.HostProjectRegistrationServiceClient>

Reference documentation and code samples for the API hub v1 API class HostProjectRegistrationService.HostProjectRegistrationServiceClient.

Client for HostProjectRegistrationService

Inheritance

object > ClientBase > ClientBaseHostProjectRegistrationServiceHostProjectRegistrationServiceClient > HostProjectRegistrationService.HostProjectRegistrationServiceClient

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Constructors

HostProjectRegistrationServiceClient()

protected HostProjectRegistrationServiceClient()

Protected parameterless constructor to allow creation of test doubles.

HostProjectRegistrationServiceClient(CallInvoker)

public HostProjectRegistrationServiceClient(CallInvoker callInvoker)

Creates a new client for HostProjectRegistrationService that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

HostProjectRegistrationServiceClient(ChannelBase)

public HostProjectRegistrationServiceClient(ChannelBase channel)

Creates a new client for HostProjectRegistrationService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

HostProjectRegistrationServiceClient(ClientBaseConfiguration)

protected HostProjectRegistrationServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateHostProjectRegistration(CreateHostProjectRegistrationRequest, CallOptions)

public virtual HostProjectRegistration CreateHostProjectRegistration(CreateHostProjectRegistrationRequest request, CallOptions options)

Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.

Parameters
Name Description
request CreateHostProjectRegistrationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
HostProjectRegistration

The response received from the server.

CreateHostProjectRegistration(CreateHostProjectRegistrationRequest, Metadata, DateTime?, CancellationToken)

public virtual HostProjectRegistration CreateHostProjectRegistration(CreateHostProjectRegistrationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.

Parameters
Name Description
request CreateHostProjectRegistrationRequest

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
HostProjectRegistration

The response received from the server.

CreateHostProjectRegistrationAsync(CreateHostProjectRegistrationRequest, CallOptions)

public virtual AsyncUnaryCall<HostProjectRegistration> CreateHostProjectRegistrationAsync(CreateHostProjectRegistrationRequest request, CallOptions options)

Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.

Parameters
Name Description
request CreateHostProjectRegistrationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallHostProjectRegistration

The call object.

CreateHostProjectRegistrationAsync(CreateHostProjectRegistrationRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<HostProjectRegistration> CreateHostProjectRegistrationAsync(CreateHostProjectRegistrationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.

Parameters
Name Description
request CreateHostProjectRegistrationRequest

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
AsyncUnaryCallHostProjectRegistration

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

GetHostProjectRegistration(GetHostProjectRegistrationRequest, CallOptions)

public virtual HostProjectRegistration GetHostProjectRegistration(GetHostProjectRegistrationRequest request, CallOptions options)

Get a host project registration.

Parameters
Name Description
request GetHostProjectRegistrationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
HostProjectRegistration

The response received from the server.

GetHostProjectRegistration(GetHostProjectRegistrationRequest, Metadata, DateTime?, CancellationToken)

public virtual HostProjectRegistration GetHostProjectRegistration(GetHostProjectRegistrationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get a host project registration.

Parameters
Name Description
request GetHostProjectRegistrationRequest

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
HostProjectRegistration

The response received from the server.

GetHostProjectRegistrationAsync(GetHostProjectRegistrationRequest, CallOptions)

public virtual AsyncUnaryCall<HostProjectRegistration> GetHostProjectRegistrationAsync(GetHostProjectRegistrationRequest request, CallOptions options)

Get a host project registration.

Parameters
Name Description
request GetHostProjectRegistrationRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallHostProjectRegistration

The call object.

GetHostProjectRegistrationAsync(GetHostProjectRegistrationRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<HostProjectRegistration> GetHostProjectRegistrationAsync(GetHostProjectRegistrationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get a host project registration.

Parameters
Name Description
request GetHostProjectRegistrationRequest

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
AsyncUnaryCallHostProjectRegistration

The call object.

ListHostProjectRegistrations(ListHostProjectRegistrationsRequest, CallOptions)

public virtual ListHostProjectRegistrationsResponse ListHostProjectRegistrations(ListHostProjectRegistrationsRequest request, CallOptions options)

Lists host project registrations.

Parameters
Name Description
request ListHostProjectRegistrationsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListHostProjectRegistrationsResponse

The response received from the server.

ListHostProjectRegistrations(ListHostProjectRegistrationsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListHostProjectRegistrationsResponse ListHostProjectRegistrations(ListHostProjectRegistrationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists host project registrations.

Parameters
Name Description
request ListHostProjectRegistrationsRequest

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
ListHostProjectRegistrationsResponse

The response received from the server.

ListHostProjectRegistrationsAsync(ListHostProjectRegistrationsRequest, CallOptions)

public virtual AsyncUnaryCall<ListHostProjectRegistrationsResponse> ListHostProjectRegistrationsAsync(ListHostProjectRegistrationsRequest request, CallOptions options)

Lists host project registrations.

Parameters
Name Description
request ListHostProjectRegistrationsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListHostProjectRegistrationsResponse

The call object.

ListHostProjectRegistrationsAsync(ListHostProjectRegistrationsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListHostProjectRegistrationsResponse> ListHostProjectRegistrationsAsync(ListHostProjectRegistrationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists host project registrations.

Parameters
Name Description
request ListHostProjectRegistrationsRequest

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
AsyncUnaryCallListHostProjectRegistrationsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override HostProjectRegistrationService.HostProjectRegistrationServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
HostProjectRegistrationServiceHostProjectRegistrationServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ApiHub.V1.HostProjectRegistrationService.HostProjectRegistrationServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)