|
6 | 6 | - [cbws/service_management/resource_accounting/v1alpha1/resource_accounting.proto](#cbws/service_management/resource_accounting/v1alpha1/resource_accounting.proto) |
7 | 7 | - [AccountRequest](#cbws.service_management.resource_accounting.v1alpha1.AccountRequest) |
8 | 8 | - [AccountResponse](#cbws.service_management.resource_accounting.v1alpha1.AccountResponse) |
| 9 | + - [AggregateProjectUsageRequest](#cbws.service_management.resource_accounting.v1alpha1.AggregateProjectUsageRequest) |
| 10 | + - [AggregateProjectUsageResponse](#cbws.service_management.resource_accounting.v1alpha1.AggregateProjectUsageResponse) |
| 11 | + - [GenerateUsagePDFRequest](#cbws.service_management.resource_accounting.v1alpha1.GenerateUsagePDFRequest) |
| 12 | + - [GenerateUsagePDFResponse](#cbws.service_management.resource_accounting.v1alpha1.GenerateUsagePDFResponse) |
9 | 13 | - [ListResourcesRequest](#cbws.service_management.resource_accounting.v1alpha1.ListResourcesRequest) |
10 | 14 | - [ListResourcesResponse](#cbws.service_management.resource_accounting.v1alpha1.ListResourcesResponse) |
| 15 | + - [ReportedUsage](#cbws.service_management.resource_accounting.v1alpha1.ReportedUsage) |
11 | 16 | - [Resource](#cbws.service_management.resource_accounting.v1alpha1.Resource) |
12 | 17 | - [Usage](#cbws.service_management.resource_accounting.v1alpha1.Usage) |
13 | 18 | - [UsageCurrent](#cbws.service_management.resource_accounting.v1alpha1.UsageCurrent) |
|
56 | 61 |
|
57 | 62 |
|
58 | 63 |
|
| 64 | +<a name="cbws.service_management.resource_accounting.v1alpha1.AggregateProjectUsageRequest"></a> |
| 65 | + |
| 66 | +### AggregateProjectUsageRequest |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | +| Field | Type | Label | Description | |
| 71 | +| ----- | ---- | ----- | ----------- | |
| 72 | +| projects | [string](#string) | | Required. The resource name of the project to aggregate the usage for | |
| 73 | +| start | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | | |
| 74 | +| end | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | | |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | +<a name="cbws.service_management.resource_accounting.v1alpha1.AggregateProjectUsageResponse"></a> |
| 82 | + |
| 83 | +### AggregateProjectUsageResponse |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | +| Field | Type | Label | Description | |
| 88 | +| ----- | ---- | ----- | ----------- | |
| 89 | +| usage | [ReportedUsage](#cbws.service_management.resource_accounting.v1alpha1.ReportedUsage) | repeated | All the usages to report by product | |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | +<a name="cbws.service_management.resource_accounting.v1alpha1.GenerateUsagePDFRequest"></a> |
| 97 | + |
| 98 | +### GenerateUsagePDFRequest |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +| Field | Type | Label | Description | |
| 103 | +| ----- | ---- | ----- | ----------- | |
| 104 | +| project | [string](#string) | repeated | Required. The resource name of the project to aggregate the usage for | |
| 105 | +| start | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | | |
| 106 | +| end | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | | |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | +<a name="cbws.service_management.resource_accounting.v1alpha1.GenerateUsagePDFResponse"></a> |
| 114 | + |
| 115 | +### GenerateUsagePDFResponse |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | +| Field | Type | Label | Description | |
| 120 | +| ----- | ---- | ----- | ----------- | |
| 121 | +| pdf | [bytes](#bytes) | | | |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
59 | 128 | <a name="cbws.service_management.resource_accounting.v1alpha1.ListResourcesRequest"></a> |
60 | 129 |
|
61 | 130 | ### ListResourcesRequest |
@@ -89,6 +158,22 @@ The resource list response. |
89 | 158 |
|
90 | 159 |
|
91 | 160 |
|
| 161 | +<a name="cbws.service_management.resource_accounting.v1alpha1.ReportedUsage"></a> |
| 162 | + |
| 163 | +### ReportedUsage |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | +| Field | Type | Label | Description | |
| 168 | +| ----- | ---- | ----- | ----------- | |
| 169 | +| product | [string](#string) | | The product resource name in format services/domains.cbws.xyz/products/domain-nl | |
| 170 | +| total | [double](#double) | | | |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
92 | 177 | <a name="cbws.service_management.resource_accounting.v1alpha1.Resource"></a> |
93 | 178 |
|
94 | 179 | ### Resource |
@@ -191,6 +276,12 @@ Hostname: resourceaccounting.cbws.xyz |
191 | 276 |
|
192 | 277 | | Method Name | Request Type | Response Type | Description | |
193 | 278 | | ----------- | ------------ | ------------- | ------------| |
| 279 | +| AggregateProjectUsage | [AggregateProjectUsageRequest](#cbws.service_management.resource_accounting.v1alpha1.AggregateProjectUsageRequest) | [AggregateProjectUsageResponse](#cbws.service_management.resource_accounting.v1alpha1.AggregateProjectUsageResponse) | Request a aggregated set of all usage grouped by product. |
| 280 | + |
| 281 | +Permission required: resourceaccounting.cbws.xyz/Usage/aggregate | |
| 282 | +| GenerateUsagePDF | [GenerateUsagePDFRequest](#cbws.service_management.resource_accounting.v1alpha1.GenerateUsagePDFRequest) | [GenerateUsagePDFResponse](#cbws.service_management.resource_accounting.v1alpha1.GenerateUsagePDFResponse) | Generate a usage breakdown PDF for a set of projects, this is the same document that also gets attached to invoices by the Cloudbear Webservices billing. |
| 283 | + |
| 284 | +Permission required: resourceaccounting.cbws.xyz/Usage/generatePDF | |
194 | 285 | | ListResources | [ListResourcesRequest](#cbws.service_management.resource_accounting.v1alpha1.ListResourcesRequest) | [ListResourcesResponse](#cbws.service_management.resource_accounting.v1alpha1.ListResourcesResponse) | Permission required: resourceaccounting.cbws.xyz/Resource/list | |
195 | 286 | | Account | [AccountRequest](#cbws.service_management.resource_accounting.v1alpha1.AccountRequest) | [AccountResponse](#cbws.service_management.resource_accounting.v1alpha1.AccountResponse) | Account usage for a resource in a consumer project |
196 | 287 |
|
|
0 commit comments