Class CloudChannelServiceConnection (2.31.0)

This interface defines virtual methods for each of the user-facing overload sets in CloudChannelServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type CloudChannelServiceClient.

To create a concrete instance, see MakeCloudChannelServiceConnection().

For mocking, see channel_v1_mocks::MockCloudChannelServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListCustomers(google::cloud::channel::v1::ListCustomersRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListCustomersRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::Customer >

virtual GetCustomer(google::cloud::channel::v1::GetCustomerRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::GetCustomerRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::Customer >

virtual CheckCloudIdentityAccountsExist(google::cloud::channel::v1::CheckCloudIdentityAccountsExistRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::CheckCloudIdentityAccountsExistRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::CheckCloudIdentityAccountsExistResponse >

virtual CreateCustomer(google::cloud::channel::v1::CreateCustomerRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::CreateCustomerRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::Customer >

virtual UpdateCustomer(google::cloud::channel::v1::UpdateCustomerRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::UpdateCustomerRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::Customer >

virtual DeleteCustomer(google::cloud::channel::v1::DeleteCustomerRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::DeleteCustomerRequest const &
Returns
Type Description
Status

virtual ImportCustomer(google::cloud::channel::v1::ImportCustomerRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::ImportCustomerRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::Customer >

virtual ProvisionCloudIdentity(google::cloud::channel::v1::ProvisionCloudIdentityRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::ProvisionCloudIdentityRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Customer > >

virtual ProvisionCloudIdentity(NoAwaitTag, google::cloud::channel::v1::ProvisionCloudIdentityRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::ProvisionCloudIdentityRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ProvisionCloudIdentity(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Customer > >

virtual ListEntitlements(google::cloud::channel::v1::ListEntitlementsRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListEntitlementsRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::Entitlement >

virtual ListTransferableSkus(google::cloud::channel::v1::ListTransferableSkusRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListTransferableSkusRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::TransferableSku >

virtual ListTransferableOffers(google::cloud::channel::v1::ListTransferableOffersRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListTransferableOffersRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::TransferableOffer >

virtual GetEntitlement(google::cloud::channel::v1::GetEntitlementRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::GetEntitlementRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::Entitlement >

virtual CreateEntitlement(google::cloud::channel::v1::CreateEntitlementRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::CreateEntitlementRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual CreateEntitlement(NoAwaitTag, google::cloud::channel::v1::CreateEntitlementRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::CreateEntitlementRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateEntitlement(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual ChangeParameters(google::cloud::channel::v1::ChangeParametersRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::ChangeParametersRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual ChangeParameters(NoAwaitTag, google::cloud::channel::v1::ChangeParametersRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::ChangeParametersRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ChangeParameters(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual ChangeRenewalSettings(google::cloud::channel::v1::ChangeRenewalSettingsRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::ChangeRenewalSettingsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual ChangeRenewalSettings(NoAwaitTag, google::cloud::channel::v1::ChangeRenewalSettingsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::ChangeRenewalSettingsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ChangeRenewalSettings(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual ChangeOffer(google::cloud::channel::v1::ChangeOfferRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::ChangeOfferRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual ChangeOffer(NoAwaitTag, google::cloud::channel::v1::ChangeOfferRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::ChangeOfferRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ChangeOffer(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual StartPaidService(google::cloud::channel::v1::StartPaidServiceRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::StartPaidServiceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual StartPaidService(NoAwaitTag, google::cloud::channel::v1::StartPaidServiceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::StartPaidServiceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual StartPaidService(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual SuspendEntitlement(google::cloud::channel::v1::SuspendEntitlementRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::SuspendEntitlementRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual SuspendEntitlement(NoAwaitTag, google::cloud::channel::v1::SuspendEntitlementRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::SuspendEntitlementRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual SuspendEntitlement(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual CancelEntitlement(google::cloud::channel::v1::CancelEntitlementRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::CancelEntitlementRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::OperationMetadata > >

virtual CancelEntitlement(NoAwaitTag, google::cloud::channel::v1::CancelEntitlementRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::CancelEntitlementRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CancelEntitlement(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::OperationMetadata > >

virtual ActivateEntitlement(google::cloud::channel::v1::ActivateEntitlementRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::ActivateEntitlementRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual ActivateEntitlement(NoAwaitTag, google::cloud::channel::v1::ActivateEntitlementRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::ActivateEntitlementRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ActivateEntitlement(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::Entitlement > >

virtual TransferEntitlements(google::cloud::channel::v1::TransferEntitlementsRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::TransferEntitlementsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::TransferEntitlementsResponse > >

virtual TransferEntitlements(NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::TransferEntitlementsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual TransferEntitlements(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::TransferEntitlementsResponse > >

virtual TransferEntitlementsToGoogle(google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::OperationMetadata > >

virtual TransferEntitlementsToGoogle(NoAwaitTag, google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::channel::v1::TransferEntitlementsToGoogleRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual TransferEntitlementsToGoogle(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::channel::v1::OperationMetadata > >

virtual ListChannelPartnerLinks(google::cloud::channel::v1::ListChannelPartnerLinksRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListChannelPartnerLinksRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::ChannelPartnerLink >

virtual GetChannelPartnerLink(google::cloud::channel::v1::GetChannelPartnerLinkRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::GetChannelPartnerLinkRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::ChannelPartnerLink >

virtual CreateChannelPartnerLink(google::cloud::channel::v1::CreateChannelPartnerLinkRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::CreateChannelPartnerLinkRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::ChannelPartnerLink >

virtual UpdateChannelPartnerLink(google::cloud::channel::v1::UpdateChannelPartnerLinkRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::UpdateChannelPartnerLinkRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::ChannelPartnerLink >

virtual GetCustomerRepricingConfig(google::cloud::channel::v1::GetCustomerRepricingConfigRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::GetCustomerRepricingConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::CustomerRepricingConfig >

virtual ListCustomerRepricingConfigs(google::cloud::channel::v1::ListCustomerRepricingConfigsRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListCustomerRepricingConfigsRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::CustomerRepricingConfig >

virtual CreateCustomerRepricingConfig(google::cloud::channel::v1::CreateCustomerRepricingConfigRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::CreateCustomerRepricingConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::CustomerRepricingConfig >

virtual UpdateCustomerRepricingConfig(google::cloud::channel::v1::UpdateCustomerRepricingConfigRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::UpdateCustomerRepricingConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::CustomerRepricingConfig >

virtual DeleteCustomerRepricingConfig(google::cloud::channel::v1::DeleteCustomerRepricingConfigRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::DeleteCustomerRepricingConfigRequest const &
Returns
Type Description
Status

virtual GetChannelPartnerRepricingConfig(google::cloud::channel::v1::GetChannelPartnerRepricingConfigRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::GetChannelPartnerRepricingConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::ChannelPartnerRepricingConfig >

virtual ListChannelPartnerRepricingConfigs(google::cloud::channel::v1::ListChannelPartnerRepricingConfigsRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListChannelPartnerRepricingConfigsRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::ChannelPartnerRepricingConfig >

virtual CreateChannelPartnerRepricingConfig(google::cloud::channel::v1::CreateChannelPartnerRepricingConfigRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::CreateChannelPartnerRepricingConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::ChannelPartnerRepricingConfig >

virtual UpdateChannelPartnerRepricingConfig(google::cloud::channel::v1::UpdateChannelPartnerRepricingConfigRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::UpdateChannelPartnerRepricingConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::ChannelPartnerRepricingConfig >

virtual DeleteChannelPartnerRepricingConfig(google::cloud::channel::v1::DeleteChannelPartnerRepricingConfigRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::DeleteChannelPartnerRepricingConfigRequest const &
Returns
Type Description
Status

virtual ListSkuGroups(google::cloud::channel::v1::ListSkuGroupsRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListSkuGroupsRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::SkuGroup >

virtual ListSkuGroupBillableSkus(google::cloud::channel::v1::ListSkuGroupBillableSkusRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListSkuGroupBillableSkusRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::BillableSku >

virtual LookupOffer(google::cloud::channel::v1::LookupOfferRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::LookupOfferRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::Offer >

virtual ListProducts(google::cloud::channel::v1::ListProductsRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListProductsRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::Product >

virtual ListSkus(google::cloud::channel::v1::ListSkusRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListSkusRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::Sku >

virtual ListOffers(google::cloud::channel::v1::ListOffersRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListOffersRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::Offer >

virtual ListPurchasableSkus(google::cloud::channel::v1::ListPurchasableSkusRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListPurchasableSkusRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::PurchasableSku >

virtual ListPurchasableOffers(google::cloud::channel::v1::ListPurchasableOffersRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListPurchasableOffersRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::PurchasableOffer >

virtual QueryEligibleBillingAccounts(google::cloud::channel::v1::QueryEligibleBillingAccountsRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::QueryEligibleBillingAccountsRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::QueryEligibleBillingAccountsResponse >

virtual RegisterSubscriber(google::cloud::channel::v1::RegisterSubscriberRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::RegisterSubscriberRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::RegisterSubscriberResponse >

virtual UnregisterSubscriber(google::cloud::channel::v1::UnregisterSubscriberRequest const &)

Parameter
Name Description
request google::cloud::channel::v1::UnregisterSubscriberRequest const &
Returns
Type Description
StatusOr< google::cloud::channel::v1::UnregisterSubscriberResponse >

virtual ListSubscribers(google::cloud::channel::v1::ListSubscribersRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListSubscribersRequest
Returns
Type Description
StreamRange< std::string >

virtual ListEntitlementChanges(google::cloud::channel::v1::ListEntitlementChangesRequest)

Parameter
Name Description
request google::cloud::channel::v1::ListEntitlementChangesRequest
Returns
Type Description
StreamRange< google::cloud::channel::v1::EntitlementChange >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status