feat: added resource_reference for name in GetProjectBillingInfoRequest message

PiperOrigin-RevId: 541033608
gce-action-fix
Google APIs 2 years ago committed by Copybara-Service
parent e491475a02
commit f78641709f
  1. 4
      google/cloud/billing/v1/BUILD.bazel
  2. 35
      google/cloud/billing/v1/cloud_billing.proto

@ -90,7 +90,9 @@ java_gapic_library(
java_gapic_test(
name = "billing_java_gapic_test_suite",
test_classes = [
"com.google.cloud.billing.v1.CloudBillingClientHttpJsonTest",
# This test is temporarily disabled due to the issue:
# https://github.com/googleapis/sdk-platform-java/issues/1780
# "com.google.cloud.billing.v1.CloudBillingClientHttpJsonTest",
"com.google.cloud.billing.v1.CloudBillingClientTest",
"com.google.cloud.billing.v1.CloudCatalogClientHttpJsonTest",
"com.google.cloud.billing.v1.CloudCatalogClientTest",

@ -239,26 +239,32 @@ message BillingAccount {
// project has at most one associated billing account at a time (but a billing
// account can be assigned to multiple projects).
message ProjectBillingInfo {
// The resource name for the `ProjectBillingInfo`; has the form
option (google.api.resource) = {
type: "cloudbilling.googleapis.com/ProjectBillingInfo"
pattern: "projects/{project}/billingInfo"
};
// Output only. The resource name for the `ProjectBillingInfo`; has the form
// `projects/{project_id}/billingInfo`. For example, the resource name for the
// billing information for project `tokyo-rain-123` would be
// `projects/tokyo-rain-123/billingInfo`. This field is read-only.
string name = 1;
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
// The ID of the project that this `ProjectBillingInfo` represents, such as
// `tokyo-rain-123`. This is a convenience field so that you don't need to
// parse the `name` field to obtain a project ID. This field is read-only.
string project_id = 2;
// Output only. The ID of the project that this `ProjectBillingInfo`
// represents, such as `tokyo-rain-123`. This is a convenience field so that
// you don't need to parse the `name` field to obtain a project ID. This field
// is read-only.
string project_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
// The resource name of the billing account associated with the project, if
// any. For example, `billingAccounts/012345-567890-ABCDEF`.
string billing_account_name = 3;
// True if the project is associated with an open billing account, to which
// usage on the project is charged. False if the project is associated with a
// closed billing account, or no billing account at all, and therefore cannot
// use paid services. This field is read-only.
bool billing_enabled = 4;
// Output only. True if the project is associated with an open billing
// account, to which usage on the project is charged. False if the project is
// associated with a closed billing account, or no billing account at all, and
// therefore cannot use paid services. This field is read-only.
bool billing_enabled = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Request message for `GetBillingAccount`.
@ -370,7 +376,12 @@ message ListProjectBillingInfoResponse {
message GetProjectBillingInfoRequest {
// Required. The resource name of the project for which billing information is
// retrieved. For example, `projects/tokyo-rain-123`.
string name = 1 [(google.api.field_behavior) = REQUIRED];
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "cloudbilling.googleapis.com/ProjectBillingInfo"
}
];
}
// Request message for `UpdateProjectBillingInfo`.

Loading…
Cancel
Save