Constructor
new HostProjectRegistrationService(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new HostProjectRegistrationService service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
createHostProjectRegistration(request, callback) → {undefined}
Calls CreateHostProjectRegistration.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.apihub.v1.ICreateHostProjectRegistrationRequest |
CreateHostProjectRegistrationRequest message or plain object |
callback |
google.cloud.apihub.v1.HostProjectRegistrationService.CreateHostProjectRegistrationCallback |
Node-style callback called with the error, if any, and HostProjectRegistration |
Returns:
Type | Description |
---|---|
undefined |
createHostProjectRegistration(request) → {Promise.<google.cloud.apihub.v1.HostProjectRegistration>}
Calls CreateHostProjectRegistration.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.apihub.v1.ICreateHostProjectRegistrationRequest |
CreateHostProjectRegistrationRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.apihub.v1.HostProjectRegistration> |
Promise |
getHostProjectRegistration(request, callback) → {undefined}
Calls GetHostProjectRegistration.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.apihub.v1.IGetHostProjectRegistrationRequest |
GetHostProjectRegistrationRequest message or plain object |
callback |
google.cloud.apihub.v1.HostProjectRegistrationService.GetHostProjectRegistrationCallback |
Node-style callback called with the error, if any, and HostProjectRegistration |
Returns:
Type | Description |
---|---|
undefined |
getHostProjectRegistration(request) → {Promise.<google.cloud.apihub.v1.HostProjectRegistration>}
Calls GetHostProjectRegistration.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.apihub.v1.IGetHostProjectRegistrationRequest |
GetHostProjectRegistrationRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.apihub.v1.HostProjectRegistration> |
Promise |
listHostProjectRegistrations(request, callback) → {undefined}
Calls ListHostProjectRegistrations.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.apihub.v1.IListHostProjectRegistrationsRequest |
ListHostProjectRegistrationsRequest message or plain object |
callback |
google.cloud.apihub.v1.HostProjectRegistrationService.ListHostProjectRegistrationsCallback |
Node-style callback called with the error, if any, and ListHostProjectRegistrationsResponse |
Returns:
Type | Description |
---|---|
undefined |
listHostProjectRegistrations(request) → {Promise.<google.cloud.apihub.v1.ListHostProjectRegistrationsResponse>}
Calls ListHostProjectRegistrations.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.apihub.v1.IListHostProjectRegistrationsRequest |
ListHostProjectRegistrationsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.apihub.v1.ListHostProjectRegistrationsResponse> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {HostProjectRegistrationService}
Creates new HostProjectRegistrationService service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
HostProjectRegistrationService |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateHostProjectRegistrationCallback(error, responseopt)
Callback as used by createHostProjectRegistration.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.apihub.v1.HostProjectRegistration |
<optional> |
HostProjectRegistration |
GetHostProjectRegistrationCallback(error, responseopt)
Callback as used by getHostProjectRegistration.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.apihub.v1.HostProjectRegistration |
<optional> |
HostProjectRegistration |
ListHostProjectRegistrationsCallback(error, responseopt)
Callback as used by listHostProjectRegistrations.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.apihub.v1.ListHostProjectRegistrationsResponse |
<optional> |
ListHostProjectRegistrationsResponse |