@@ -38,6 +38,10 @@ option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb";
3838option java_multiple_files = true ;
3939option java_outer_classname = "ServiceProto" ;
4040option java_package = "com.google.cloud.channel.v1" ;
41+ option (google.api.resource_definition ) = {
42+ type : "cloudchannel.googleapis.com/Account"
43+ pattern : "accounts/{account}"
44+ };
4145
4246// CloudChannelService lets Google cloud resellers and distributors manage
4347// their customers, channel partners, entitlements, and reports.
@@ -1361,8 +1365,8 @@ service CloudChannelService {
13611365 };
13621366 }
13631367
1364- // Registers a service account with subscriber privileges on the Cloud Pub/Sub
1365- // topic for this Channel Services account. After you create a
1368+ // Registers a service account with subscriber privileges on the Pub/Sub
1369+ // topic for this Channel Services account or integrator . After you create a
13661370 // subscriber, you get the events through
13671371 // [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
13681372 //
@@ -1384,13 +1388,17 @@ service CloudChannelService {
13841388 option (google.api.http ) = {
13851389 post : "/v1/{account=accounts/*}:register"
13861390 body : "*"
1391+ additional_bindings {
1392+ post : "/v1/{integrator=integrators/*}:registerSubscriber"
1393+ body : "*"
1394+ }
13871395 };
13881396 }
13891397
1390- // Unregisters a service account with subscriber privileges on the Cloud
1391- // Pub/Sub topic created for this Channel Services account. If there are no
1392- // service accounts left with subscriber privileges, this deletes the topic.
1393- // You can call ListSubscribers to check for these accounts.
1398+ // Unregisters a service account with subscriber privileges on the Pub/Sub
1399+ // topic created for this Channel Services account or integrator . If there are
1400+ // no service accounts left with subscriber privileges, this deletes the
1401+ // topic. You can call ListSubscribers to check for these accounts.
13941402 //
13951403 // Possible error codes:
13961404 //
@@ -1413,11 +1421,15 @@ service CloudChannelService {
14131421 option (google.api.http ) = {
14141422 post : "/v1/{account=accounts/*}:unregister"
14151423 body : "*"
1424+ additional_bindings {
1425+ post : "/v1/{integrator=integrators/*}:unregisterSubscriber"
1426+ body : "*"
1427+ }
14161428 };
14171429 }
14181430
1419- // Lists service accounts with subscriber privileges on the Cloud Pub/Sub
1420- // topic created for this Channel Services account.
1431+ // Lists service accounts with subscriber privileges on the Pub/Sub topic
1432+ // created for this Channel Services account or integrator .
14211433 //
14221434 // Possible error codes:
14231435 //
@@ -1437,6 +1449,9 @@ service CloudChannelService {
14371449 returns (ListSubscribersResponse ) {
14381450 option (google.api.http ) = {
14391451 get : "/v1/{account=accounts/*}:listSubscribers"
1452+ additional_bindings {
1453+ get : "/v1/{integrator=integrators/*}:listSubscribers"
1454+ }
14401455 };
14411456 }
14421457
@@ -1489,7 +1504,8 @@ message CloudIdentityCustomerAccount {
14891504 bool existing = 1 ;
14901505
14911506 // Returns true if the Cloud Identity account is associated with a customer
1492- // of the Channel Services partner.
1507+ // of the Channel Services partner (with active subscriptions or purchase
1508+ // consents).
14931509 bool owned = 2 ;
14941510
14951511 // If owned = true, the name of the customer that owns the Cloud Identity
@@ -1843,6 +1859,11 @@ message ListTransferableOffersResponse {
18431859message TransferableOffer {
18441860 // Offer with parameter constraints updated to allow the Transfer.
18451861 Offer offer = 1 ;
1862+
1863+ // Optional. Price reference ID for the offer. Only for offers that require
1864+ // additional price information. Used to guarantee that the pricing is
1865+ // consistent between quoting the offer and placing the order.
1866+ string price_reference_id = 2 [(google.api.field_behavior ) = OPTIONAL ];
18461867}
18471868
18481869// Request message for
@@ -2167,7 +2188,8 @@ message ListSkuGroupsRequest {
21672188
21682189 // Optional. A token identifying a page of results beyond the first page.
21692190 // Obtained through
2170- // [ListSkuGroups.next_page_token][] of the previous
2191+ // [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
2192+ // of the previous
21712193 // [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
21722194 // call.
21732195 string page_token = 3 [(google.api.field_behavior ) = OPTIONAL ];
@@ -2191,7 +2213,8 @@ message ListSkuGroupBillableSkusRequest {
21912213
21922214 // Optional. A token identifying a page of results beyond the first page.
21932215 // Obtained through
2194- // [ListSkuGroupBillableSkus.next_page_token][] of the previous
2216+ // [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
2217+ // of the previous
21952218 // [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
21962219 // call.
21972220 string page_token = 3 [(google.api.field_behavior ) = OPTIONAL ];
@@ -2203,8 +2226,9 @@ message ListSkuGroupsResponse {
22032226 repeated SkuGroup sku_groups = 1 ;
22042227
22052228 // A token to retrieve the next page of results.
2206- // Pass to [ListSkuGroups.page_token][] to obtain that
2207- // page.
2229+ // Pass to
2230+ // [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
2231+ // to obtain that page.
22082232 string next_page_token = 2 ;
22092233}
22102234
@@ -2214,8 +2238,9 @@ message ListSkuGroupBillableSkusResponse {
22142238 repeated BillableSku billable_skus = 1 ;
22152239
22162240 // A token to retrieve the next page of results.
2217- // Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
2218- // page.
2241+ // Pass to
2242+ // [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
2243+ // to obtain that page.
22192244 string next_page_token = 2 ;
22202245}
22212246
@@ -2356,7 +2381,8 @@ message TransferEntitlementsToGoogleRequest {
23562381 string request_id = 3 [(google.api.field_behavior ) = OPTIONAL ];
23572382}
23582383
2359- // Request message for [CloudChannelService.ChangeParametersRequest][].
2384+ // Request message for
2385+ // [CloudChannelService.ChangeParameters][google.cloud.channel.v1.CloudChannelService.ChangeParameters].
23602386message ChangeParametersRequest {
23612387 // Required. The name of the entitlement to update.
23622388 // Name uses the format:
@@ -2461,6 +2487,11 @@ message ChangeOfferRequest {
24612487 // This field is only relevant for multi-currency accounts. It should be
24622488 // left empty for single currency accounts.
24632489 string billing_account = 7 [(google.api.field_behavior ) = OPTIONAL ];
2490+
2491+ // Optional. Price reference ID for the offer. Only for offers that require
2492+ // additional price information. Used to guarantee that the pricing is
2493+ // consistent between quoting the offer and placing the order.
2494+ string price_reference_id = 8 [(google.api.field_behavior ) = OPTIONAL ];
24642495}
24652496
24662497// Request message for
@@ -2673,6 +2704,9 @@ message ListOffersRequest {
26732704// Response message for ListOffers.
26742705message ListOffersResponse {
26752706 // The list of Offers requested.
2707+ //
2708+ // The pricing information for each Offer only includes the base price.
2709+ // Effective prices and discounts aren't populated.
26762710 repeated Offer offers = 1 ;
26772711
26782712 // A token to retrieve the next page of results.
@@ -2843,6 +2877,11 @@ message ListPurchasableOffersResponse {
28432877message PurchasableOffer {
28442878 // Offer.
28452879 Offer offer = 1 ;
2880+
2881+ // Optional. Price reference ID for the offer. Only for offers that require
2882+ // additional price information. Used to guarantee that the pricing is
2883+ // consistent between quoting the offer and placing the order.
2884+ string price_reference_id = 2 [(google.api.field_behavior ) = OPTIONAL ];
28462885}
28472886
28482887// Request message for QueryEligibleBillingAccounts.
@@ -2889,12 +2928,22 @@ message BillingAccountPurchaseInfo {
28892928
28902929// Request Message for RegisterSubscriber.
28912930message RegisterSubscriberRequest {
2892- // Required. Resource name of the account.
2893- string account = 1 [(google.api.field_behavior ) = REQUIRED ];
2931+ // Optional. Resource name of the account. Required if integrator is not
2932+ // provided. Otherwise, leave this field empty/unset.
2933+ string account = 1 [
2934+ (google.api.field_behavior ) = OPTIONAL ,
2935+ (google.api.resource_reference ) = {
2936+ type : "cloudchannel.googleapis.com/Account"
2937+ }
2938+ ];
28942939
28952940 // Required. Service account that provides subscriber access to the registered
28962941 // topic.
28972942 string service_account = 2 [(google.api.field_behavior ) = REQUIRED ];
2943+
2944+ // Optional. Resource name of the integrator. Required if account is not
2945+ // provided. Otherwise, leave this field empty/unset.
2946+ optional string integrator = 3 [(google.api.field_behavior ) = OPTIONAL ];
28982947}
28992948
29002949// Response Message for RegisterSubscriber.
@@ -2905,12 +2954,22 @@ message RegisterSubscriberResponse {
29052954
29062955// Request Message for UnregisterSubscriber.
29072956message UnregisterSubscriberRequest {
2908- // Required. Resource name of the account.
2909- string account = 1 [(google.api.field_behavior ) = REQUIRED ];
2957+ // Optional. Resource name of the account. Required if integrator is not
2958+ // provided. Otherwise, leave this field empty/unset.
2959+ string account = 1 [
2960+ (google.api.field_behavior ) = OPTIONAL ,
2961+ (google.api.resource_reference ) = {
2962+ type : "cloudchannel.googleapis.com/Account"
2963+ }
2964+ ];
29102965
29112966 // Required. Service account to unregister from subscriber access to the
29122967 // topic.
29132968 string service_account = 2 [(google.api.field_behavior ) = REQUIRED ];
2969+
2970+ // Optional. Resource name of the integrator. Required if account is not
2971+ // provided. Otherwise, leave this field empty/unset.
2972+ optional string integrator = 3 [(google.api.field_behavior ) = OPTIONAL ];
29142973}
29152974
29162975// Response Message for UnregisterSubscriber.
@@ -2921,8 +2980,14 @@ message UnregisterSubscriberResponse {
29212980
29222981// Request Message for ListSubscribers.
29232982message ListSubscribersRequest {
2924- // Required. Resource name of the account.
2925- string account = 1 [(google.api.field_behavior ) = REQUIRED ];
2983+ // Optional. Resource name of the account. Required if integrator is not
2984+ // provided. Otherwise, leave this field empty/unset.
2985+ string account = 1 [
2986+ (google.api.field_behavior ) = OPTIONAL ,
2987+ (google.api.resource_reference ) = {
2988+ type : "cloudchannel.googleapis.com/Account"
2989+ }
2990+ ];
29262991
29272992 // Optional. The maximum number of service accounts to return. The service may
29282993 // return fewer than this value. If unspecified, returns at most 100 service
@@ -2936,6 +3001,10 @@ message ListSubscribersRequest {
29363001 // When paginating, all other parameters provided to `ListSubscribers` must
29373002 // match the call that provided the page token.
29383003 string page_token = 3 [(google.api.field_behavior ) = OPTIONAL ];
3004+
3005+ // Optional. Resource name of the integrator. Required if account is not
3006+ // provided. Otherwise, leave this field empty/unset.
3007+ optional string integrator = 4 [(google.api.field_behavior ) = OPTIONAL ];
29393008}
29403009
29413010// Response Message for ListSubscribers.
0 commit comments