Skip to content

Commit

Permalink
feat: added partition_keys field to filter results from FetchReportRe…
Browse files Browse the repository at this point in the history
…sults

docs: Change references from GCP to Google Cloud

PiperOrigin-RevId: 532265140
  • Loading branch information
Google APIs authored and Copybara-Service committed May 15, 2023
1 parent 271b0b5 commit 31893ad
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
5 changes: 0 additions & 5 deletions google/cloud/channel/v1/cloudchannel_v1.yaml
Expand Up @@ -21,11 +21,6 @@ documentation:
The Cloud Channel API enables Google Cloud partners to have a single
unified resale platform and APIs across all of Google Cloud including GCP,
Workspace, Maps and Chrome.
rules:
- selector: google.longrunning.Operations.ListOperations
description: |-
Lists operations that match the specified filter in the request. If
the server doesn't support this method, it returns `UNIMPLEMENTED`.
http:
rules:
Expand Down
8 changes: 4 additions & 4 deletions google/cloud/channel/v1/entitlements.proto
Expand Up @@ -138,8 +138,8 @@ message Entitlement {
//
// - assigned_units: The number of licenses assigned to users.
//
// For GCP billing subaccounts, the following Parameter may be accepted as
// input:
// For Google Cloud billing subaccounts, the following Parameter may be
// accepted as input:
//
// - display_name: The display name of the billing subaccount.
repeated Parameter parameters = 26;
Expand Down Expand Up @@ -174,8 +174,8 @@ message AssociationInfo {
// Service provisioned for an entitlement.
message ProvisionedService {
// Output only. Provisioning ID of the entitlement. For Google Workspace, this
// is the underlying Subscription ID. For Google Cloud Platform, this is the
// Billing Account ID of the billing subaccount."
// is the underlying Subscription ID. For Google Cloud, this is the Billing
// Account ID of the billing subaccount."
string provisioning_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The product pertaining to the provisioning resource as
Expand Down
13 changes: 6 additions & 7 deletions google/cloud/channel/v1/offers.proto
Expand Up @@ -98,14 +98,13 @@ enum ResourceType {
// Voice usage.
MINUTES = 5;

// For IaaS SKUs like Google Cloud Platform, monetization is based on usage
// accrued on your billing account irrespective of the type of monetizable
// resource. This enum represents an aggregated resource/container for all
// usage SKUs on a billing account. Currently, only applicable to Google Cloud
// Platform.
// For IaaS SKUs like Google Cloud, monetization is based on usage accrued on
// your billing account irrespective of the type of monetizable resource. This
// enum represents an aggregated resource/container for all usage SKUs on a
// billing account. Currently, only applicable to Google Cloud.
IAAS_USAGE = 6;

// For Google Cloud Platform subscriptions like Anthos or SAP.
// For Google Cloud subscriptions like Anthos or SAP.
SUBSCRIPTION = 7;
}

Expand Down Expand Up @@ -249,7 +248,7 @@ message Plan {
Period trial_period = 4;

// Reseller Billing account to charge after an offer transaction.
// Only present for Google Cloud Platform offers.
// Only present for Google Cloud offers.
string billing_account = 5;
}

Expand Down
25 changes: 16 additions & 9 deletions google/cloud/channel/v1/reports_service.proto
Expand Up @@ -35,8 +35,7 @@ option java_package = "com.google.cloud.channel.v1";

// CloudChannelReportsService lets Google Cloud resellers and
// distributors retrieve and combine a variety of data in Cloud Channel for
// multiple products (Google Cloud Platform (GCP), Google Voice, and
// Google Workspace.)
// multiple products (Google Cloud, Google Voice, and Google Workspace.)
service CloudChannelReportsService {
option (google.api.default_host) = "cloudchannel.googleapis.com";
option (google.api.oauth_scopes) =
Expand Down Expand Up @@ -179,6 +178,10 @@ message FetchReportResultsRequest {
// [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]
// call.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];

// Optional. List of keys specifying which report partitions to return.
// If empty, returns all partitions.
repeated string partition_keys = 4 [(google.api.field_behavior) = OPTIONAL];
}

// Response message for
Expand Down Expand Up @@ -341,22 +344,25 @@ message DateRange {

// The earliest invoice date (inclusive).
//
// If your product uses monthly invoices, and this value is not the beginning
// of a month, this will adjust the date to the first day of the given month.
// If this value is not the first day of a month, this will move it back to
// the first day of the given month.
google.type.Date invoice_start_date = 3;

// The latest invoice date (exclusive).
// The latest invoice date (inclusive).
//
// If your product uses monthly invoices, and this value is not the beginning
// of a month, this will adjust the date to the first day of the following
// month.
// If this value is not the last day of a month, this will move it forward to
// the last day of the given month.
google.type.Date invoice_end_date = 4;
}

// A row of report values.
message Row {
// The list of values in the row.
repeated ReportValue values = 1;

// The key for the partition this row belongs to. This field is empty
// if the report is not partitioned.
string partition_key = 2;
}

// A single report value.
Expand Down Expand Up @@ -417,7 +423,8 @@ message ReportStatus {
}

// The ID and description of a report that was used to generate report data.
// For example, "GCP Daily Spend", "Google Workspace License Activity", etc.
// For example, "Google Cloud Daily Spend", "Google Workspace License Activity",
// etc.
message Report {
option (google.api.resource) = {
type: "cloudchannel.googleapis.com/Report"
Expand Down

0 comments on commit 31893ad

Please sign in to comment.