|
|
|
@ -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`. |
|
|
|
|