@@ -71,10 +71,13 @@ service CloudChannelService {
7171 rpc ListCustomers (ListCustomersRequest ) returns (ListCustomersResponse ) {
7272 option (google.api.http ) = {
7373 get : "/v1/{parent=accounts/*}/customers"
74+ additional_bindings {
75+ get : "/v1/{parent=accounts/*/channelPartnerLinks/*}/customers"
76+ }
7477 };
7578 }
7679
77- // Returns a requested [Customer][google.cloud.channel.v1.Customer] resource.
80+ // Returns the requested [Customer][google.cloud.channel.v1.Customer] resource.
7881 //
7982 // Possible error codes:
8083 //
@@ -89,6 +92,9 @@ service CloudChannelService {
8992 rpc GetCustomer (GetCustomerRequest ) returns (Customer ) {
9093 option (google.api.http ) = {
9194 get : "/v1/{name=accounts/*/customers/*}"
95+ additional_bindings {
96+ get : "/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}"
97+ }
9298 };
9399 option (google.api.method_signature ) = "name" ;
94100 }
@@ -133,6 +139,10 @@ service CloudChannelService {
133139 option (google.api.http ) = {
134140 post : "/v1/{parent=accounts/*}/customers"
135141 body : "customer"
142+ additional_bindings {
143+ post : "/v1/{parent=accounts/*/channelPartnerLinks/*}/customers"
144+ body : "customer"
145+ }
136146 };
137147 }
138148
@@ -152,10 +162,14 @@ service CloudChannelService {
152162 option (google.api.http ) = {
153163 patch : "/v1/{customer.name=accounts/*/customers/*}"
154164 body : "customer"
165+ additional_bindings {
166+ patch : "/v1/{customer.name=accounts/*/channelPartnerLinks/*/customers/*}"
167+ body : "customer"
168+ }
155169 };
156170 }
157171
158- // Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly .
172+ // Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently.
159173 //
160174 // Possible error codes:
161175 //
@@ -167,6 +181,9 @@ service CloudChannelService {
167181 rpc DeleteCustomer (DeleteCustomerRequest ) returns (google.protobuf.Empty ) {
168182 option (google.api.http ) = {
169183 delete : "/v1/{name=accounts/*/customers/*}"
184+ additional_bindings {
185+ delete : "/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}"
186+ }
170187 };
171188 option (google.api.method_signature ) = "name" ;
172189 }
@@ -268,7 +285,7 @@ service CloudChannelService {
268285 };
269286 }
270287
271- // Returns a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
288+ // Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
272289 //
273290 // Possible error codes:
274291 //
@@ -670,7 +687,7 @@ service CloudChannelService {
670687 };
671688 }
672689
673- // Returns a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
690+ // Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
674691 // You must be a distributor to call this method.
675692 //
676693 // Possible error codes:
@@ -746,6 +763,22 @@ service CloudChannelService {
746763 };
747764 }
748765
766+ // Returns the requested [Offer][google.cloud.channel.v1.Offer] resource.
767+ //
768+ // Possible error codes:
769+ //
770+ // * PERMISSION_DENIED: The entitlement doesn't belong to the reseller.
771+ // * INVALID_ARGUMENT: Required request parameters are missing or invalid.
772+ // * NOT_FOUND: Entitlement or offer was not found.
773+ //
774+ // Return value:
775+ // The [Offer][google.cloud.channel.v1.Offer] resource.
776+ rpc LookupOffer (LookupOfferRequest ) returns (Offer ) {
777+ option (google.api.http ) = {
778+ get : "/v1/{entitlement=accounts/*/customers/*/entitlements/*}:lookupOffer"
779+ };
780+ }
781+
749782 // Lists the Products the reseller is authorized to sell.
750783 //
751784 // Possible error codes:
@@ -1508,6 +1541,19 @@ message ActivateEntitlementRequest {
15081541 string request_id = 3 [(google.api.field_behavior ) = OPTIONAL ];
15091542}
15101543
1544+ // Request message for LookupOffer.
1545+ message LookupOfferRequest {
1546+ // Required. The resource name of the entitlement to retrieve the Offer.
1547+ // Entitlement uses the format:
1548+ // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
1549+ string entitlement = 1 [
1550+ (google.api.field_behavior ) = REQUIRED ,
1551+ (google.api.resource_reference ) = {
1552+ type : "cloudchannel.googleapis.com/Entitlement"
1553+ }
1554+ ];
1555+ }
1556+
15111557// Request message for ListProducts.
15121558message ListProductsRequest {
15131559 // Required. The resource name of the reseller account.
0 commit comments