Class DeveloperRegistrationServiceClientImpl
DeveloperRegistrationService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public sealed class DeveloperRegistrationServiceClientImpl : DeveloperRegistrationServiceClient
Remarks
Service to access Developer Registration.
Constructors
DeveloperRegistrationServiceClientImpl(DeveloperRegistrationServiceClient, DeveloperRegistrationServiceSettings, ILogger)
Constructs a client wrapper for the DeveloperRegistrationService service, with the specified gRPC client and settings.
Declaration
public DeveloperRegistrationServiceClientImpl(DeveloperRegistrationService.DeveloperRegistrationServiceClient grpcClient, DeveloperRegistrationServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
DeveloperRegistrationService.DeveloperRegistrationServiceClient | grpcClient | The underlying gRPC client. |
DeveloperRegistrationServiceSettings | settings | The base DeveloperRegistrationServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC DeveloperRegistrationService client
Declaration
public override DeveloperRegistrationService.DeveloperRegistrationServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
DeveloperRegistrationService.DeveloperRegistrationServiceClient |
Overrides
Methods
GetDeveloperRegistration(GetDeveloperRegistrationRequest, CallSettings)
Retrieves a developer registration for a merchant.
Declaration
public override DeveloperRegistration GetDeveloperRegistration(GetDeveloperRegistrationRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetDeveloperRegistrationRequest | request | 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 |
---|---|
DeveloperRegistration | The RPC response. |
Overrides
GetDeveloperRegistrationAsync(GetDeveloperRegistrationRequest, CallSettings)
Retrieves a developer registration for a merchant.
Declaration
public override Task<DeveloperRegistration> GetDeveloperRegistrationAsync(GetDeveloperRegistrationRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetDeveloperRegistrationRequest | request | 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 |
---|---|
Task<DeveloperRegistration> | A Task containing the RPC response. |
Overrides
RegisterGcp(RegisterGcpRequest, CallSettings)
Registers the GCP used for the API call to the shopping account passed in the request. Will create a user with an "API developer" and add the "developer_email" as a contact with "API notifications" email preference on.
Declaration
public override DeveloperRegistration RegisterGcp(RegisterGcpRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
RegisterGcpRequest | request | 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 |
---|---|
DeveloperRegistration | The RPC response. |
Overrides
RegisterGcpAsync(RegisterGcpRequest, CallSettings)
Registers the GCP used for the API call to the shopping account passed in the request. Will create a user with an "API developer" and add the "developer_email" as a contact with "API notifications" email preference on.
Declaration
public override Task<DeveloperRegistration> RegisterGcpAsync(RegisterGcpRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
RegisterGcpRequest | request | 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 |
---|---|
Task<DeveloperRegistration> | A Task containing the RPC response. |
Overrides
UnregisterGcp(UnregisterGcpRequest, CallSettings)
Unregister the calling GCP from the calling shopping account. Note that the GCP will still be able to access the API for at most 1 day from the unregister succussful call.
Declaration
public override void UnregisterGcp(UnregisterGcpRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UnregisterGcpRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
UnregisterGcpAsync(UnregisterGcpRequest, CallSettings)
Unregister the calling GCP from the calling shopping account. Note that the GCP will still be able to access the API for at most 1 day from the unregister succussful call.
Declaration
public override Task UnregisterGcpAsync(UnregisterGcpRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UnregisterGcpRequest | request | 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 |
---|---|
Task | A Task containing the RPC response. |