API hub v1 API - Class HostProjectRegistrationServiceClientImpl (1.0.0)

public sealed class HostProjectRegistrationServiceClientImpl : HostProjectRegistrationServiceClient

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

HostProjectRegistrationService client wrapper implementation, for convenient use.

Inheritance

object > HostProjectRegistrationServiceClient > HostProjectRegistrationServiceClientImpl

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Remarks

This service is used for managing the host project registrations.

Constructors

HostProjectRegistrationServiceClientImpl(HostProjectRegistrationServiceClient, HostProjectRegistrationServiceSettings, ILogger)

public HostProjectRegistrationServiceClientImpl(HostProjectRegistrationService.HostProjectRegistrationServiceClient grpcClient, HostProjectRegistrationServiceSettings settings, ILogger logger)

Constructs a client wrapper for the HostProjectRegistrationService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient HostProjectRegistrationServiceHostProjectRegistrationServiceClient

The underlying gRPC client.

settings HostProjectRegistrationServiceSettings

The base HostProjectRegistrationServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override HostProjectRegistrationService.HostProjectRegistrationServiceClient GrpcClient { get; }

The underlying gRPC HostProjectRegistrationService client

Property Value
Type Description
HostProjectRegistrationServiceHostProjectRegistrationServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

CreateHostProjectRegistration(CreateHostProjectRegistrationRequest, CallSettings)

public override HostProjectRegistration CreateHostProjectRegistration(CreateHostProjectRegistrationRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HostProjectRegistration

The RPC response.

Overrides

CreateHostProjectRegistrationAsync(CreateHostProjectRegistrationRequest, CallSettings)

public override Task<HostProjectRegistration> CreateHostProjectRegistrationAsync(CreateHostProjectRegistrationRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHostProjectRegistration

A Task containing the RPC response.

Overrides

GetHostProjectRegistration(GetHostProjectRegistrationRequest, CallSettings)

public override HostProjectRegistration GetHostProjectRegistration(GetHostProjectRegistrationRequest request, CallSettings callSettings = null)

Get a host project registration.

Parameters
Name Description
request GetHostProjectRegistrationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HostProjectRegistration

The RPC response.

Overrides

GetHostProjectRegistrationAsync(GetHostProjectRegistrationRequest, CallSettings)

public override Task<HostProjectRegistration> GetHostProjectRegistrationAsync(GetHostProjectRegistrationRequest request, CallSettings callSettings = null)

Get a host project registration.

Parameters
Name Description
request GetHostProjectRegistrationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHostProjectRegistration

A Task containing the RPC response.

Overrides

ListHostProjectRegistrations(ListHostProjectRegistrationsRequest, CallSettings)

public override PagedEnumerable<ListHostProjectRegistrationsResponse, HostProjectRegistration> ListHostProjectRegistrations(ListHostProjectRegistrationsRequest request, CallSettings callSettings = null)

Lists host project registrations.

Parameters
Name Description
request ListHostProjectRegistrationsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListHostProjectRegistrationsResponseHostProjectRegistration

A pageable sequence of HostProjectRegistration resources.

Overrides

ListHostProjectRegistrationsAsync(ListHostProjectRegistrationsRequest, CallSettings)

public override PagedAsyncEnumerable<ListHostProjectRegistrationsResponse, HostProjectRegistration> ListHostProjectRegistrationsAsync(ListHostProjectRegistrationsRequest request, CallSettings callSettings = null)

Lists host project registrations.

Parameters
Name Description
request ListHostProjectRegistrationsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListHostProjectRegistrationsResponseHostProjectRegistration

A pageable asynchronous sequence of HostProjectRegistration resources.

Overrides