123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- syntax = "proto3";
- package google.cloud.billing.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/iam/v1/iam_policy.proto";
- import "google/iam/v1/policy.proto";
- import "google/protobuf/field_mask.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/billing/v1;billing";
- option java_multiple_files = true;
- option java_outer_classname = "CloudBillingProto";
- option java_package = "com.google.cloud.billing.v1";
- service CloudBilling {
- option (google.api.default_host) = "cloudbilling.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-billing,"
- "https://www.googleapis.com/auth/cloud-billing.readonly,"
- "https://www.googleapis.com/auth/cloud-platform";
-
-
-
- rpc GetBillingAccount(GetBillingAccountRequest) returns (BillingAccount) {
- option (google.api.http) = {
- get: "/v1/{name=billingAccounts/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
- rpc ListBillingAccounts(ListBillingAccountsRequest) returns (ListBillingAccountsResponse) {
- option (google.api.http) = {
- get: "/v1/billingAccounts"
- };
- option (google.api.method_signature) = "";
- }
-
-
-
-
-
-
- rpc UpdateBillingAccount(UpdateBillingAccountRequest) returns (BillingAccount) {
- option (google.api.http) = {
- patch: "/v1/{name=billingAccounts/*}"
- body: "account"
- };
- option (google.api.method_signature) = "name,account";
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rpc CreateBillingAccount(CreateBillingAccountRequest) returns (BillingAccount) {
- option (google.api.http) = {
- post: "/v1/billingAccounts"
- body: "billing_account"
- };
- option (google.api.method_signature) = "billing_account";
- }
-
-
-
-
- rpc ListProjectBillingInfo(ListProjectBillingInfoRequest) returns (ListProjectBillingInfoResponse) {
- option (google.api.http) = {
- get: "/v1/{name=billingAccounts/*}/projects"
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
-
- rpc GetProjectBillingInfo(GetProjectBillingInfoRequest) returns (ProjectBillingInfo) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*}/billingInfo"
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rpc UpdateProjectBillingInfo(UpdateProjectBillingInfoRequest) returns (ProjectBillingInfo) {
- option (google.api.http) = {
- put: "/v1/{name=projects/*}/billingInfo"
- body: "project_billing_info"
- };
- option (google.api.method_signature) = "name,project_billing_info";
- }
-
-
-
-
- rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
- option (google.api.http) = {
- get: "/v1/{resource=billingAccounts/*}:getIamPolicy"
- };
- option (google.api.method_signature) = "resource";
- }
-
-
-
-
-
- rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
- option (google.api.http) = {
- post: "/v1/{resource=billingAccounts/*}:setIamPolicy"
- body: "*"
- };
- option (google.api.method_signature) = "resource,policy";
- }
-
-
-
- rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
- option (google.api.http) = {
- post: "/v1/{resource=billingAccounts/*}:testIamPermissions"
- body: "*"
- };
- option (google.api.method_signature) = "resource,permissions";
- }
- }
- message BillingAccount {
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.resource_reference) = {
- type: "cloudbilling.googleapis.com/BillingAccount"
- }
- ];
-
-
-
- bool open = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string display_name = 3;
-
-
-
-
-
- string master_billing_account = 4;
- }
- message ProjectBillingInfo {
-
-
-
-
- string name = 1;
-
-
-
- string project_id = 2;
-
-
- string billing_account_name = 3;
-
-
-
-
- bool billing_enabled = 4;
- }
- message GetBillingAccountRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudbilling.googleapis.com/BillingAccount"
- }
- ];
- }
- message ListBillingAccountsRequest {
-
-
- int32 page_size = 1;
-
-
-
- string page_token = 2;
-
-
-
-
-
-
- string filter = 3;
- }
- message ListBillingAccountsResponse {
-
- repeated BillingAccount billing_accounts = 1;
-
-
-
- string next_page_token = 2;
- }
- message CreateBillingAccountRequest {
-
-
-
-
- BillingAccount billing_account = 1 [(google.api.field_behavior) = REQUIRED];
- }
- message UpdateBillingAccountRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudbilling.googleapis.com/BillingAccount"
- }
- ];
-
- BillingAccount account = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- google.protobuf.FieldMask update_mask = 3;
- }
- message ListProjectBillingInfoRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudbilling.googleapis.com/BillingAccount"
- }
- ];
-
-
- int32 page_size = 2;
-
-
-
- string page_token = 3;
- }
- message ListProjectBillingInfoResponse {
-
-
- repeated ProjectBillingInfo project_billing_info = 1;
-
-
-
- string next_page_token = 2;
- }
- message GetProjectBillingInfoRequest {
-
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
- }
- message UpdateProjectBillingInfoRequest {
-
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- ProjectBillingInfo project_billing_info = 2;
- }
|