Class CloudChannelServiceGrpc.CloudChannelServiceImplBase (3.10.0)

Stay organized with collections Save and categorize content based on your preferences.
public abstract static class CloudChannelServiceGrpc.CloudChannelServiceImplBase implements BindableService

CloudChannelService lets Google cloud resellers and distributors manage their customers, channel partners, entitlements, and reports. Using this service:

  1. Resellers and distributors can manage a customer entity.
  2. Distributors can register an authorized reseller in their channel and provide them with delegated admin access.
  3. Resellers and distributors can manage customer entitlements. CloudChannelService exposes the following resources:
  4. Customers: An entity\u2014usually an enterprise\u2014managed by a reseller or distributor.
  5. Entitlements: An entity that provides a customer with the means to use a service. Entitlements are created or updated as a result of a successful fulfillment.
  6. ChannelPartnerLinks: An entity that identifies links between distributors and their indirect resellers in a channel.

Inheritance

java.lang.Object > CloudChannelServiceGrpc.CloudChannelServiceImplBase

Implements

io.grpc.BindableService

Constructors

CloudChannelServiceImplBase()

public CloudChannelServiceImplBase()

Methods

activateEntitlement(ActivateEntitlementRequest request, StreamObserver<Operation> responseObserver)

public void activateEntitlement(ActivateEntitlementRequest request, StreamObserver<Operation> responseObserver)

Activates a previously suspended entitlement. Entitlements suspended for pending ToS acceptance can't be activated using this method. An entitlement activation is a long-running operation and it updates the state of the customer entitlement. Possible error codes:

  • PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request.
  • INVALID_ARGUMENT: Required request parameters are missing or invalid.
  • NOT_FOUND: Entitlement resource not found.
  • SUSPENSION_NOT_RESELLER_INITIATED: Can only activate reseller-initiated suspensions and entitlements that have accepted the TOS.
  • NOT_SUSPENDED: Can only activate suspended entitlements not in an ACTIVE state.
  • INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
  • UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters
NameDescription
requestActivateEntitlementRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

cancelEntitlement(CancelEntitlementRequest request, StreamObserver<Operation> responseObserver)

public void cancelEntitlement(CancelEntitlementRequest request, StreamObserver<Operation> responseObserver)

Cancels a previously fulfilled entitlement. An entitlement cancellation is a long-running operation. Possible error codes:

  • PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request.
  • FAILED_PRECONDITION: There are Google Cloud projects linked to the Google Cloud entitlement's Cloud Billing subaccount.
  • INVALID_ARGUMENT: Required request parameters are missing or invalid.
  • NOT_FOUND: Entitlement resource not found.
  • DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google Workspace add-ons, or entitlements for Google Cloud's development platform.
  • INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
  • UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of OperationMetadata.
Parameters
NameDescription
requestCancelEntitlementRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

changeOffer(ChangeOfferRequest request, StreamObserver<Operation> responseObserver)

public void changeOffer(ChangeOfferRequest request, StreamObserver<Operation> responseObserver)

Updates the Offer for an existing customer entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error codes:

  • PERMISSION_DENIED: The customer doesn't belong to the reseller.
  • INVALID_ARGUMENT: Required request parameters are missing or invalid.
  • NOT_FOUND: Offer or Entitlement resource not found.
  • INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
  • UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
Parameters
NameDescription
requestChangeOfferRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

changeParameters(ChangeParametersRequest request, StreamObserver<Operation> responseObserver)

public void changeParameters(ChangeParametersRequest request, StreamObserver<Operation> responseObserver)

Change parameters of the entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error codes:

  • PERMISSION_DENIED: The customer doesn't belong to the reseller.
  • INVALID_ARGUMENT: Required request parameters are missing or invalid. For example, the number of seats being changed is greater than the allowed number of max seats, or decreasing seats for a commitment based plan.
  • NOT_FOUND: Entitlement resource not found.
  • INTERNAL: Any non-user error related to a technical issue in