Skip to content

Commit 363067c

Browse files
feat: Add support for granular repricing configurations via SkuGroups in Cloud Channel Repricing APIs (#3718)
* feat: Add support for granular repricing configurations via SkuGroups in Cloud Channel Repricing APIs PiperOrigin-RevId: 494176375 Source-Link: googleapis/googleapis@e69c47f Source-Link: googleapis/googleapis-gen@0f26146 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNoYW5uZWwvLk93bEJvdC55YW1sIiwiaCI6IjBmMjYxNDYxMWYzMmUyMjVmYmFkNTM4YTM5YmU0ZmJmOWM1MmE3YTQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
1 parent 6de9664 commit 363067c

52 files changed

Lines changed: 2519 additions & 952 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-cloud-channel/protos/google/cloud/channel/v1/channel_partner_links.proto

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ option java_multiple_files = true;
2626
option java_outer_classname = "ChannelPartnerLinksProto";
2727
option java_package = "com.google.cloud.channel.v1";
2828

29-
// The level of granularity the [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] will display.
29+
// The level of granularity the
30+
// [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] will
31+
// display.
3032
enum ChannelPartnerLinkView {
3133
// The default / unset value.
3234
// The API will default to the BASIC view.
@@ -72,24 +74,29 @@ message ChannelPartnerLink {
7274
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
7375

7476
// Required. Cloud Identity ID of the linked reseller.
75-
string reseller_cloud_identity_id = 2 [(google.api.field_behavior) = REQUIRED];
77+
string reseller_cloud_identity_id = 2
78+
[(google.api.field_behavior) = REQUIRED];
7679

7780
// Required. State of the channel partner link.
78-
ChannelPartnerLinkState link_state = 3 [(google.api.field_behavior) = REQUIRED];
81+
ChannelPartnerLinkState link_state = 3
82+
[(google.api.field_behavior) = REQUIRED];
7983

8084
// Output only. URI of the web page where partner accepts the link invitation.
8185
string invite_link_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
8286

8387
// Output only. Timestamp of when the channel partner link is created.
84-
google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
88+
google.protobuf.Timestamp create_time = 5
89+
[(google.api.field_behavior) = OUTPUT_ONLY];
8590

8691
// Output only. Timestamp of when the channel partner link is updated.
87-
google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
92+
google.protobuf.Timestamp update_time = 6
93+
[(google.api.field_behavior) = OUTPUT_ONLY];
8894

89-
// Output only. Public identifier that a customer must use to generate a transfer token
90-
// to move to this distributor-reseller combination.
95+
// Output only. Public identifier that a customer must use to generate a
96+
// transfer token to move to this distributor-reseller combination.
9197
string public_id = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
9298

9399
// Output only. Cloud Identity info of the channel partner (IR).
94-
CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
95-
}
100+
CloudIdentityInfo channel_partner_cloud_identity_info = 8
101+
[(google.api.field_behavior) = OUTPUT_ONLY];
102+
}

packages/google-cloud-channel/protos/google/cloud/channel/v1/common.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ message AdminUser {
149149

150150
// Family name of the admin user.
151151
string family_name = 3;
152-
}
152+
}

packages/google-cloud-channel/protos/google/cloud/channel/v1/customers.proto

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ message Customer {
4545
// embargoes, we require a region and zip code. You must provide valid
4646
// addresses for every customer. To set the customer's language, use the
4747
// Customer-level language code.
48-
google.type.PostalAddress org_postal_address = 3 [(google.api.field_behavior) = REQUIRED];
48+
google.type.PostalAddress org_postal_address = 3
49+
[(google.api.field_behavior) = REQUIRED];
4950

5051
// Primary contact info.
5152
ContactInfo primary_contact_info = 4;
@@ -62,10 +63,12 @@ message Customer {
6263
string domain = 6 [(google.api.field_behavior) = REQUIRED];
6364

6465
// Output only. Time when the customer was created.
65-
google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
66+
google.protobuf.Timestamp create_time = 7
67+
[(google.api.field_behavior) = OUTPUT_ONLY];
6668

6769
// Output only. Time when the customer was updated.
68-
google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
70+
google.protobuf.Timestamp update_time = 8
71+
[(google.api.field_behavior) = OUTPUT_ONLY];
6972

7073
// Output only. The customer's Cloud Identity ID if the customer has a Cloud
7174
// Identity resource.
@@ -78,7 +81,8 @@ message Customer {
7881

7982
// Output only. Cloud Identity information for the customer.
8083
// Populated only if a Cloud Identity account exists for this customer.
81-
CloudIdentityInfo cloud_identity_info = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
84+
CloudIdentityInfo cloud_identity_info = 12
85+
[(google.api.field_behavior) = OUTPUT_ONLY];
8286

8387
// Cloud Identity ID of the customer's channel partner.
8488
// Populated only if a channel partner exists for this customer.
@@ -107,4 +111,4 @@ message ContactInfo {
107111

108112
// The customer account's contact phone number.
109113
string phone = 7;
110-
}
114+
}

packages/google-cloud-channel/protos/google/cloud/channel/v1/entitlements.proto

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ message Entitlement {
4747
SUSPENDED = 5;
4848
}
4949

50-
// Suspension reason for an entitlement if [provisioning_state][google.cloud.channel.v1.Entitlement.provisioning_state] = SUSPENDED.
50+
// Suspension reason for an entitlement if
51+
// [provisioning_state][google.cloud.channel.v1.Entitlement.provisioning_state]
52+
// = SUSPENDED.
5153
enum SuspensionReason {
5254
// Not used.
5355
SUSPENSION_REASON_UNSPECIFIED = 0;
@@ -74,10 +76,12 @@ message Entitlement {
7476
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
7577

7678
// Output only. The time at which the entitlement is created.
77-
google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
79+
google.protobuf.Timestamp create_time = 5
80+
[(google.api.field_behavior) = OUTPUT_ONLY];
7881

7982
// Output only. The time at which the entitlement is updated.
80-
google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
83+
google.protobuf.Timestamp update_time = 6
84+
[(google.api.field_behavior) = OUTPUT_ONLY];
8185

8286
// Required. The offer resource name for which the entitlement is to be
8387
// created. Takes the form: accounts/{account_id}/offers/{offer_id}.
@@ -93,19 +97,23 @@ message Entitlement {
9397
CommitmentSettings commitment_settings = 12;
9498

9599
// Output only. Current provisioning state of the entitlement.
96-
ProvisioningState provisioning_state = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
100+
ProvisioningState provisioning_state = 13
101+
[(google.api.field_behavior) = OUTPUT_ONLY];
97102

98103
// Output only. Service provisioning details for the entitlement.
99-
ProvisionedService provisioned_service = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
100-
101-
// Output only. Enumerable of all current suspension reasons for an entitlement.
102-
repeated SuspensionReason suspension_reasons = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
103-
104-
// Optional. This purchase order (PO) information is for resellers to use for their
105-
// company tracking usage. If a purchaseOrderId value is given, it appears in
106-
// the API responses and shows up in the invoice. The property accepts up to
107-
// 80 plain text characters. This is only supported for Google Workspace
108-
// entitlements.
104+
ProvisionedService provisioned_service = 16
105+
[(google.api.field_behavior) = OUTPUT_ONLY];
106+
107+
// Output only. Enumerable of all current suspension reasons for an
108+
// entitlement.
109+
repeated SuspensionReason suspension_reasons = 18
110+
[(google.api.field_behavior) = OUTPUT_ONLY];
111+
112+
// Optional. This purchase order (PO) information is for resellers to use for
113+
// their company tracking usage. If a purchaseOrderId value is given, it
114+
// appears in the API responses and shows up in the invoice. The property
115+
// accepts up to 80 plain text characters. This is only supported for Google
116+
// Workspace entitlements.
109117
string purchase_order_id = 19 [(google.api.field_behavior) = OPTIONAL];
110118

111119
// Output only. Settings for trial offers.
@@ -136,42 +144,45 @@ message Parameter {
136144
// Value of the parameter.
137145
Value value = 2;
138146

139-
// Output only. Specifies whether this parameter is allowed to be changed. For example, for
140-
// a Google Workspace Business Starter entitlement in commitment plan,
141-
// num_units is editable when entitlement is active.
147+
// Output only. Specifies whether this parameter is allowed to be changed. For
148+
// example, for a Google Workspace Business Starter entitlement in commitment
149+
// plan, num_units is editable when entitlement is active.
142150
bool editable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
143151
}
144152

145153
// Association links that an entitlement has to other entitlements.
146154
message AssociationInfo {
147155
// The name of the base entitlement, for which this entitlement is an add-on.
148156
string base_entitlement = 1 [(google.api.resource_reference) = {
149-
type: "cloudchannel.googleapis.com/Entitlement"
150-
}];
157+
type: "cloudchannel.googleapis.com/Entitlement"
158+
}];
151159
}
152160

153161
// Service provisioned for an entitlement.
154162
message ProvisionedService {
155-
// Output only. Provisioning ID of the entitlement. For Google Workspace, this is the
156-
// underlying Subscription ID. For Google Cloud Platform, this is the
163+
// Output only. Provisioning ID of the entitlement. For Google Workspace, this
164+
// is the underlying Subscription ID. For Google Cloud Platform, this is the
157165
// Billing Account ID of the billing subaccount."
158166
string provisioning_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
159167

160-
// Output only. The product pertaining to the provisioning resource as specified in the
161-
// Offer.
168+
// Output only. The product pertaining to the provisioning resource as
169+
// specified in the Offer.
162170
string product_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
163171

164-
// Output only. The SKU pertaining to the provisioning resource as specified in the Offer.
172+
// Output only. The SKU pertaining to the provisioning resource as specified
173+
// in the Offer.
165174
string sku_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
166175
}
167176

168177
// Commitment settings for commitment-based offers.
169178
message CommitmentSettings {
170179
// Output only. Commitment start timestamp.
171-
google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
180+
google.protobuf.Timestamp start_time = 1
181+
[(google.api.field_behavior) = OUTPUT_ONLY];
172182

173183
// Output only. Commitment end timestamp.
174-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
184+
google.protobuf.Timestamp end_time = 2
185+
[(google.api.field_behavior) = OUTPUT_ONLY];
175186

176187
// Optional. Renewal settings applicable for a commitment-based Offer.
177188
RenewalSettings renewal_settings = 4 [(google.api.field_behavior) = OPTIONAL];
@@ -218,7 +229,8 @@ message TransferableSku {
218229
// The SKU pertaining to the provisioning resource as specified in the Offer.
219230
Sku sku = 11;
220231

221-
// Optional. The customer to transfer has an entitlement with the populated legacy SKU.
232+
// Optional. The customer to transfer has an entitlement with the populated
233+
// legacy SKU.
222234
Sku legacy_sku = 12 [(google.api.field_behavior) = OPTIONAL];
223235
}
224236

@@ -247,4 +259,4 @@ message TransferEligibility {
247259

248260
// Specified the reason for ineligibility.
249261
Reason ineligibility_reason = 3;
250-
}
262+
}

packages/google-cloud-channel/protos/google/cloud/channel/v1/offers.proto

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ enum PeriodType {
125125
}
126126

127127
// Represents an offer made to resellers for purchase.
128-
// An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan for payment, a price, and
129-
// defines the constraints for buying.
128+
// An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan
129+
// for payment, a price, and defines the constraints for buying.
130130
message Offer {
131131
option (google.api.resource) = {
132132
type: "cloudchannel.googleapis.com/Offer"
@@ -156,7 +156,8 @@ message Offer {
156156
google.protobuf.Timestamp start_time = 7;
157157

158158
// Output only. End of the Offer validity time.
159-
google.protobuf.Timestamp end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
159+
google.protobuf.Timestamp end_time = 8
160+
[(google.api.field_behavior) = OUTPUT_ONLY];
160161

161162
// Parameters required to use current Offer to purchase.
162163
repeated ParameterDefinition parameter_definitions = 9;
@@ -326,4 +327,4 @@ message Period {
326327

327328
// Period Type.
328329
PeriodType period_type = 2;
329-
}
330+
}

packages/google-cloud-channel/protos/google/cloud/channel/v1/operations.proto

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ option java_multiple_files = true;
2121
option java_outer_classname = "OperationsProto";
2222
option java_package = "com.google.cloud.channel.v1";
2323

24-
// Provides contextual information about a [google.longrunning.Operation][google.longrunning.Operation].
24+
// Provides contextual information about a
25+
// [google.longrunning.Operation][google.longrunning.Operation].
2526
message OperationMetadata {
2627
// RPCs that return a Long Running Operation.
2728
enum OperationType {
@@ -64,4 +65,4 @@ message OperationMetadata {
6465

6566
// The RPC that initiated this Long Running Operation.
6667
OperationType operation_type = 1;
67-
}
68+
}

packages/google-cloud-channel/protos/google/cloud/channel/v1/products.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ message Media {
9191

9292
// Type of the media.
9393
MediaType type = 3;
94-
}
94+
}

0 commit comments

Comments
 (0)