mirror of
https://github.com/googleapis/googleapis.git
synced 2026-08-19 13:17:47 +02:00
chore: reformat protos
PiperOrigin-RevId: 504926695
This commit is contained in:
parent
91b494f124
commit
d8e1dade75
1 changed files with 34 additions and 21 deletions
|
|
@ -51,7 +51,8 @@ service CloudBilling {
|
|||
// Lists the billing accounts that the current authenticated user has
|
||||
// permission to
|
||||
// [view](https://cloud.google.com/billing/docs/how-to/billing-access).
|
||||
rpc ListBillingAccounts(ListBillingAccountsRequest) returns (ListBillingAccountsResponse) {
|
||||
rpc ListBillingAccounts(ListBillingAccountsRequest)
|
||||
returns (ListBillingAccountsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/billingAccounts"
|
||||
};
|
||||
|
|
@ -64,7 +65,8 @@ service CloudBilling {
|
|||
// IAM permission, which is typically given to the
|
||||
// [administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
|
||||
// of the billing account.
|
||||
rpc UpdateBillingAccount(UpdateBillingAccountRequest) returns (BillingAccount) {
|
||||
rpc UpdateBillingAccount(UpdateBillingAccountRequest)
|
||||
returns (BillingAccount) {
|
||||
option (google.api.http) = {
|
||||
patch: "/v1/{name=billingAccounts/*}"
|
||||
body: "account"
|
||||
|
|
@ -87,7 +89,8 @@ service CloudBilling {
|
|||
// [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
|
||||
// This method will return an error if the parent account has not been
|
||||
// provisioned as a reseller account.
|
||||
rpc CreateBillingAccount(CreateBillingAccountRequest) returns (BillingAccount) {
|
||||
rpc CreateBillingAccount(CreateBillingAccountRequest)
|
||||
returns (BillingAccount) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/billingAccounts"
|
||||
body: "billing_account"
|
||||
|
|
@ -99,7 +102,8 @@ service CloudBilling {
|
|||
// authenticated user must have the `billing.resourceAssociations.list` IAM
|
||||
// permission, which is often given to billing account
|
||||
// [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
|
||||
rpc ListProjectBillingInfo(ListProjectBillingInfoRequest) returns (ListProjectBillingInfoResponse) {
|
||||
rpc ListProjectBillingInfo(ListProjectBillingInfoRequest)
|
||||
returns (ListProjectBillingInfoResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/{name=billingAccounts/*}/projects"
|
||||
};
|
||||
|
|
@ -111,7 +115,8 @@ service CloudBilling {
|
|||
// which can be granted by assigning the [Project
|
||||
// Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
|
||||
// role.
|
||||
rpc GetProjectBillingInfo(GetProjectBillingInfoRequest) returns (ProjectBillingInfo) {
|
||||
rpc GetProjectBillingInfo(GetProjectBillingInfoRequest)
|
||||
returns (ProjectBillingInfo) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/{name=projects/*}/billingInfo"
|
||||
};
|
||||
|
|
@ -149,7 +154,8 @@ service CloudBilling {
|
|||
// resources used by the project will be shut down. Thus, unless you wish to
|
||||
// disable billing, you should always call this method with the name of an
|
||||
// *open* billing account.
|
||||
rpc UpdateProjectBillingInfo(UpdateProjectBillingInfoRequest) returns (ProjectBillingInfo) {
|
||||
rpc UpdateProjectBillingInfo(UpdateProjectBillingInfoRequest)
|
||||
returns (ProjectBillingInfo) {
|
||||
option (google.api.http) = {
|
||||
put: "/v1/{name=projects/*}/billingInfo"
|
||||
body: "project_billing_info"
|
||||
|
|
@ -161,7 +167,8 @@ service CloudBilling {
|
|||
// The caller must have the `billing.accounts.getIamPolicy` permission on the
|
||||
// account, which is often given to billing account
|
||||
// [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
|
||||
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
|
||||
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
|
||||
returns (google.iam.v1.Policy) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/{resource=billingAccounts/*}:getIamPolicy"
|
||||
};
|
||||
|
|
@ -173,7 +180,8 @@ service CloudBilling {
|
|||
// The caller must have the `billing.accounts.setIamPolicy` permission on the
|
||||
// account, which is often given to billing account
|
||||
// [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
|
||||
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
|
||||
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
|
||||
returns (google.iam.v1.Policy) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/{resource=billingAccounts/*}:setIamPolicy"
|
||||
body: "*"
|
||||
|
|
@ -184,7 +192,8 @@ service CloudBilling {
|
|||
// Tests the access control policy for a billing account. This method takes
|
||||
// the resource and a set of permissions as input and returns the subset of
|
||||
// the input permissions that the caller is allowed for that resource.
|
||||
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
|
||||
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
|
||||
returns (google.iam.v1.TestIamPermissionsResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/{resource=billingAccounts/*}:testIamPermissions"
|
||||
body: "*"
|
||||
|
|
@ -197,8 +206,8 @@ service CloudBilling {
|
|||
// [Google Cloud Console](https://console.cloud.google.com/). You can assign a
|
||||
// billing account to one or more projects.
|
||||
message BillingAccount {
|
||||
// Output only. The resource name of the billing account. The resource name has the form
|
||||
// `billingAccounts/{billing_account_id}`. For example,
|
||||
// Output only. The resource name of the billing account. The resource name
|
||||
// has the form `billingAccounts/{billing_account_id}`. For example,
|
||||
// `billingAccounts/012345-567890-ABCDEF` would be the resource name for
|
||||
// billing account `012345-567890-ABCDEF`.
|
||||
string name = 1 [
|
||||
|
|
@ -208,9 +217,10 @@ message BillingAccount {
|
|||
}
|
||||
];
|
||||
|
||||
// Output only. True if the billing account is open, and will therefore be charged for any
|
||||
// usage on associated projects. False if the billing account is closed, and
|
||||
// therefore projects associated with it will be unable to use paid services.
|
||||
// Output only. True if the billing account is open, and will therefore be
|
||||
// charged for any usage on associated projects. False if the billing account
|
||||
// is closed, and therefore projects associated with it will be unable to use
|
||||
// paid services.
|
||||
bool open = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
|
||||
|
||||
// The display name given to the billing account, such as `My Billing
|
||||
|
|
@ -253,8 +263,8 @@ message ProjectBillingInfo {
|
|||
|
||||
// Request message for `GetBillingAccount`.
|
||||
message GetBillingAccountRequest {
|
||||
// Required. The resource name of the billing account to retrieve. For example,
|
||||
// `billingAccounts/012345-567890-ABCDEF`.
|
||||
// Required. The resource name of the billing account to retrieve. For
|
||||
// example, `billingAccounts/012345-567890-ABCDEF`.
|
||||
string name = 1 [
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(google.api.resource_reference) = {
|
||||
|
|
@ -313,7 +323,8 @@ message UpdateBillingAccountRequest {
|
|||
}
|
||||
];
|
||||
|
||||
// Required. The billing account resource to replace the resource on the server.
|
||||
// Required. The billing account resource to replace the resource on the
|
||||
// server.
|
||||
BillingAccount account = 2 [(google.api.field_behavior) = REQUIRED];
|
||||
|
||||
// The update mask applied to the resource.
|
||||
|
|
@ -323,8 +334,9 @@ message UpdateBillingAccountRequest {
|
|||
|
||||
// Request message for `ListProjectBillingInfo`.
|
||||
message ListProjectBillingInfoRequest {
|
||||
// Required. The resource name of the billing account associated with the projects that
|
||||
// you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
|
||||
// Required. The resource name of the billing account associated with the
|
||||
// projects that you want to list. For example,
|
||||
// `billingAccounts/012345-567890-ABCDEF`.
|
||||
string name = 1 [
|
||||
(google.api.field_behavior) = REQUIRED,
|
||||
(google.api.resource_reference) = {
|
||||
|
|
@ -363,8 +375,9 @@ message GetProjectBillingInfoRequest {
|
|||
|
||||
// Request message for `UpdateProjectBillingInfo`.
|
||||
message UpdateProjectBillingInfoRequest {
|
||||
// Required. The resource name of the project associated with the billing information
|
||||
// that you want to update. For example, `projects/tokyo-rain-123`.
|
||||
// Required. The resource name of the project associated with the billing
|
||||
// information that you want to update. For example,
|
||||
// `projects/tokyo-rain-123`.
|
||||
string name = 1 [(google.api.field_behavior) = REQUIRED];
|
||||
|
||||
// The new billing information for the project. Read-only fields are ignored;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue