@alphauspkgs/blue-sdk-ts 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/README.md +32 -0
  2. package/admin/v1/admin_pb.js +239 -0
  3. package/admin/v1/admin_pb.ts +1604 -0
  4. package/admin/v1/client.js +9 -0
  5. package/admin/v1/client.ts +7 -0
  6. package/api/account_pb.js +22 -0
  7. package/api/account_pb.ts +132 -0
  8. package/api/accountgroup_pb.js +18 -0
  9. package/api/accountgroup_pb.ts +56 -0
  10. package/api/adjustment_pb.js +26 -0
  11. package/api/adjustment_pb.ts +102 -0
  12. package/api/apiclient_pb.js +16 -0
  13. package/api/apiclient_pb.ts +66 -0
  14. package/api/audit_pb.js +21 -0
  15. package/api/audit_pb.ts +70 -0
  16. package/api/aws/breakeven_pb.js +21 -0
  17. package/api/aws/breakeven_pb.ts +93 -0
  18. package/api/aws/calculator_pb.js +31 -0
  19. package/api/aws/calculator_pb.ts +138 -0
  20. package/api/aws/cost_pb.js +22 -0
  21. package/api/aws/cost_pb.ts +315 -0
  22. package/api/aws/recommendation_pb.js +36 -0
  23. package/api/aws/recommendation_pb.ts +338 -0
  24. package/api/aws/reduction_pb.js +31 -0
  25. package/api/aws/reduction_pb.ts +416 -0
  26. package/api/azure/cost_pb.js +21 -0
  27. package/api/azure/cost_pb.ts +268 -0
  28. package/api/azureea/cost_pb.js +16 -0
  29. package/api/azureea/cost_pb.ts +141 -0
  30. package/api/budget_pb.js +57 -0
  31. package/api/budget_pb.ts +293 -0
  32. package/api/costtag_pb.js +17 -0
  33. package/api/costtag_pb.ts +77 -0
  34. package/api/cover/accountaccess_pb.js +46 -0
  35. package/api/cover/accountaccess_pb.ts +334 -0
  36. package/api/cover/alert_pb.js +36 -0
  37. package/api/cover/alert_pb.ts +183 -0
  38. package/api/cover/applyrecommendation_pb.js +41 -0
  39. package/api/cover/applyrecommendation_pb.ts +133 -0
  40. package/api/cover/asset_pb.js +26 -0
  41. package/api/cover/asset_pb.ts +305 -0
  42. package/api/cover/attribute_pb.js +21 -0
  43. package/api/cover/attribute_pb.ts +58 -0
  44. package/api/cover/budget_pb.js +42 -0
  45. package/api/cover/budget_pb.ts +275 -0
  46. package/api/cover/costforecast_pb.js +16 -0
  47. package/api/cover/costforecast_pb.ts +81 -0
  48. package/api/cover/costgroup_pb.js +89 -0
  49. package/api/cover/costgroup_pb.ts +473 -0
  50. package/api/cover/discountplan_pb.js +31 -0
  51. package/api/cover/discountplan_pb.ts +461 -0
  52. package/api/cover/discountrecommendation_pb.js +96 -0
  53. package/api/cover/discountrecommendation_pb.ts +500 -0
  54. package/api/cover/insightreport_pb.js +26 -0
  55. package/api/cover/insightreport_pb.ts +167 -0
  56. package/api/cover/optimizationrecommendation_pb.js +262 -0
  57. package/api/cover/optimizationrecommendation_pb.ts +1964 -0
  58. package/api/cover/recommendation/aws_pb.js +407 -0
  59. package/api/cover/recommendation/aws_pb.ts +2418 -0
  60. package/api/cover/recommendation/azurecsp_pb.js +16 -0
  61. package/api/cover/recommendation/azurecsp_pb.ts +27 -0
  62. package/api/cover/recommendation/gcp_pb.js +27 -0
  63. package/api/cover/recommendation/gcp_pb.ts +91 -0
  64. package/api/cover/recommendation/octoaws_pb.js +22 -0
  65. package/api/cover/recommendation/octoaws_pb.ts +55 -0
  66. package/api/cover/recommendation/octoazurecsp_pb.js +16 -0
  67. package/api/cover/recommendation/octoazurecsp_pb.ts +27 -0
  68. package/api/cover/recommendation/octogcp_pb.js +16 -0
  69. package/api/cover/recommendation/octogcp_pb.ts +27 -0
  70. package/api/cover/recommendation/recommendation_pb.js +27 -0
  71. package/api/cover/recommendation/recommendation_pb.ts +190 -0
  72. package/api/cover/rightsizingrecommendation_pb.js +21 -0
  73. package/api/cover/rightsizingrecommendation_pb.ts +133 -0
  74. package/api/cover/unitcost_pb.js +82 -0
  75. package/api/cover/unitcost_pb.ts +576 -0
  76. package/api/cover/user_pb.js +26 -0
  77. package/api/cover/user_pb.ts +330 -0
  78. package/api/cover/view_pb.js +53 -0
  79. package/api/cover/view_pb.ts +393 -0
  80. package/api/coverage_pb.js +31 -0
  81. package/api/coverage_pb.ts +132 -0
  82. package/api/forecast_pb.js +61 -0
  83. package/api/forecast_pb.ts +346 -0
  84. package/api/gcp/cost_pb.js +16 -0
  85. package/api/gcp/cost_pb.ts +128 -0
  86. package/api/grouprootuser_pb.js +21 -0
  87. package/api/grouprootuser_pb.ts +390 -0
  88. package/api/invoice_pb.js +96 -0
  89. package/api/invoice_pb.ts +905 -0
  90. package/api/keyvalue_pb.js +21 -0
  91. package/api/keyvalue_pb.ts +72 -0
  92. package/api/notification_pb.js +46 -0
  93. package/api/notification_pb.ts +232 -0
  94. package/api/pricing/details_pb.js +17 -0
  95. package/api/pricing/details_pb.ts +172 -0
  96. package/api/rbac_pb.js +31 -0
  97. package/api/rbac_pb.ts +142 -0
  98. package/api/ripple/accessgroup_pb.js +16 -0
  99. package/api/ripple/accessgroup_pb.ts +48 -0
  100. package/api/ripple/billinggroup_pb.js +16 -0
  101. package/api/ripple/billinggroup_pb.ts +154 -0
  102. package/api/ripple/customfield_pb.js +16 -0
  103. package/api/ripple/customfield_pb.ts +49 -0
  104. package/api/ripple/customizedbillingservice_pb.js +175 -0
  105. package/api/ripple/customizedbillingservice_pb.ts +455 -0
  106. package/api/ripple/duedate_pb.js +16 -0
  107. package/api/ripple/duedate_pb.ts +58 -0
  108. package/api/ripple/exchangerate_pb.js +41 -0
  109. package/api/ripple/exchangerate_pb.ts +205 -0
  110. package/api/ripple/invoicelayout_pb.js +46 -0
  111. package/api/ripple/invoicelayout_pb.ts +547 -0
  112. package/api/ripple/org_pb.js +16 -0
  113. package/api/ripple/org_pb.ts +51 -0
  114. package/api/ripple/payer_pb.js +18 -0
  115. package/api/ripple/payer_pb.ts +60 -0
  116. package/api/ripple/reseller_pb.js +21 -0
  117. package/api/ripple/reseller_pb.ts +168 -0
  118. package/api/ripple/rounding_pb.js +46 -0
  119. package/api/ripple/rounding_pb.ts +69 -0
  120. package/api/ripple/untaggedgroup_pb.js +28 -0
  121. package/api/ripple/untaggedgroup_pb.ts +151 -0
  122. package/api/ripple/v1/accountsupportplan_pb.js +59 -0
  123. package/api/ripple/v1/accountsupportplan_pb.ts +98 -0
  124. package/api/ripple/v1/adjustmententry_pb.js +31 -0
  125. package/api/ripple/v1/adjustmententry_pb.ts +275 -0
  126. package/api/ripple/v1/dashboard_pb.js +61 -0
  127. package/api/ripple/v1/dashboard_pb.ts +661 -0
  128. package/api/ripple/v1/export_pb.js +16 -0
  129. package/api/ripple/v1/export_pb.ts +49 -0
  130. package/api/ripple/v1/invoiceservicediscounts_pb.js +48 -0
  131. package/api/ripple/v1/invoiceservicediscounts_pb.ts +298 -0
  132. package/api/ripple/yearmonth_pb.js +16 -0
  133. package/api/ripple/yearmonth_pb.ts +35 -0
  134. package/api/user_pb.js +26 -0
  135. package/api/user_pb.ts +124 -0
  136. package/api/utilization_pb.js +21 -0
  137. package/api/utilization_pb.ts +78 -0
  138. package/api/wave/adjustment_pb.js +16 -0
  139. package/api/wave/adjustment_pb.ts +105 -0
  140. package/api/wave/budget_pb.js +27 -0
  141. package/api/wave/budget_pb.ts +122 -0
  142. package/billing/v1/billing_pb.js +952 -0
  143. package/billing/v1/billing_pb.ts +7570 -0
  144. package/billing/v1/client.js +9 -0
  145. package/billing/v1/client.ts +7 -0
  146. package/conn/conn.js +38 -0
  147. package/conn/conn.ts +46 -0
  148. package/cost/v1/client.js +9 -0
  149. package/cost/v1/client.ts +7 -0
  150. package/cost/v1/cost_pb.js +721 -0
  151. package/cost/v1/cost_pb.ts +5845 -0
  152. package/cover/v1/client.js +9 -0
  153. package/cover/v1/client.ts +7 -0
  154. package/cover/v1/cover_pb.js +2085 -0
  155. package/cover/v1/cover_pb.ts +12883 -0
  156. package/flow/v1/client.js +9 -0
  157. package/flow/v1/client.ts +7 -0
  158. package/flow/v1/flow_pb.js +265 -0
  159. package/flow/v1/flow_pb.ts +2496 -0
  160. package/google/api/annotations_pb.js +29 -0
  161. package/google/api/annotations_pb.ts +39 -0
  162. package/google/api/auth_pb.js +47 -0
  163. package/google/api/auth_pb.ts +295 -0
  164. package/google/api/backend_pb.js +31 -0
  165. package/google/api/backend_pb.ts +97 -0
  166. package/google/api/billing_pb.js +32 -0
  167. package/google/api/billing_pb.ts +104 -0
  168. package/google/api/client_pb.js +101 -0
  169. package/google/api/client_pb.ts +114 -0
  170. package/google/api/config_change_pb.js +71 -0
  171. package/google/api/config_change_pb.ts +161 -0
  172. package/google/api/consumer_pb.js +73 -0
  173. package/google/api/consumer_pb.ts +156 -0
  174. package/google/api/context_pb.js +31 -0
  175. package/google/api/context_pb.ts +105 -0
  176. package/google/api/control_pb.js +26 -0
  177. package/google/api/control_pb.ts +52 -0
  178. package/google/api/distribution_pb.js +58 -0
  179. package/google/api/distribution_pb.ts +388 -0
  180. package/google/api/documentation_pb.js +36 -0
  181. package/google/api/documentation_pb.ts +238 -0
  182. package/google/api/endpoint_pb.js +27 -0
  183. package/google/api/endpoint_pb.ts +105 -0
  184. package/google/api/field_behavior_pb.js +103 -0
  185. package/google/api/field_behavior_pb.ts +119 -0
  186. package/google/api/http_pb.js +36 -0
  187. package/google/api/http_pb.ts +420 -0
  188. package/google/api/httpbody_pb.js +27 -0
  189. package/google/api/httpbody_pb.ts +103 -0
  190. package/google/api/label_pb.js +56 -0
  191. package/google/api/label_pb.ts +97 -0
  192. package/google/api/launch_stage_pb.js +92 -0
  193. package/google/api/launch_stage_pb.ts +105 -0
  194. package/google/api/log_pb.js +27 -0
  195. package/google/api/log_pb.ts +86 -0
  196. package/google/api/logging_pb.js +32 -0
  197. package/google/api/logging_pb.ts +124 -0
  198. package/google/api/metric_pb.js +128 -0
  199. package/google/api/metric_pb.ts +322 -0
  200. package/google/api/monitored_resource_pb.js +38 -0
  201. package/google/api/monitored_resource_pb.ts +188 -0
  202. package/google/api/monitoring_pb.js +32 -0
  203. package/google/api/monitoring_pb.ts +130 -0
  204. package/google/api/quota_pb.js +37 -0
  205. package/google/api/quota_pb.ts +351 -0
  206. package/google/api/resource_pb.js +118 -0
  207. package/google/api/resource_pb.ts +410 -0
  208. package/google/api/service_pb.js +45 -0
  209. package/google/api/service_pb.ts +302 -0
  210. package/google/api/source_info_pb.js +27 -0
  211. package/google/api/source_info_pb.ts +51 -0
  212. package/google/api/system_parameter_pb.js +36 -0
  213. package/google/api/system_parameter_pb.ts +157 -0
  214. package/google/api/usage_pb.js +32 -0
  215. package/google/api/usage_pb.ts +141 -0
  216. package/google/longrunning/operations_pb.js +90 -0
  217. package/google/longrunning/operations_pb.ts +434 -0
  218. package/google/rpc/code_pb.js +244 -0
  219. package/google/rpc/code_pb.ts +268 -0
  220. package/google/rpc/context/attribute_context_pb.js +57 -0
  221. package/google/rpc/context/attribute_context_pb.ts +532 -0
  222. package/google/rpc/error_details_pb.js +92 -0
  223. package/google/rpc/error_details_pb.ts +513 -0
  224. package/google/rpc/status_pb.js +27 -0
  225. package/google/rpc/status_pb.ts +74 -0
  226. package/iam/v1/client.js +9 -0
  227. package/iam/v1/client.ts +8 -0
  228. package/iam/v1/iam_pb.js +285 -0
  229. package/iam/v1/iam_pb.ts +1698 -0
  230. package/kvstore/v1/kvstore_pb.js +40 -0
  231. package/kvstore/v1/kvstore_pb.ts +155 -0
  232. package/operations/v1/operations_pb.js +52 -0
  233. package/operations/v1/operations_pb.ts +235 -0
  234. package/org/v1/client.js +9 -0
  235. package/org/v1/client.ts +7 -0
  236. package/org/v1/org_pb.js +61 -0
  237. package/org/v1/org_pb.ts +321 -0
  238. package/package.json +22 -0
  239. package/preferences/v1/client.js +9 -0
  240. package/preferences/v1/client.ts +8 -0
  241. package/preferences/v1/preferences_pb.js +29 -0
  242. package/preferences/v1/preferences_pb.ts +63 -0
  243. package/pricing/v1/client.js +9 -0
  244. package/pricing/v1/client.ts +7 -0
  245. package/pricing/v1/pricing_pb.js +60 -0
  246. package/pricing/v1/pricing_pb.ts +311 -0
  247. package/prism/v1/client.js +9 -0
  248. package/prism/v1/client.ts +7 -0
  249. package/prism/v1/prism_pb.js +250 -0
  250. package/prism/v1/prism_pb.ts +1396 -0
  251. package/protoc-gen-openapiv2/options/annotations_pb.js +58 -0
  252. package/protoc-gen-openapiv2/options/annotations_pb.ts +72 -0
  253. package/protoc-gen-openapiv2/options/openapiv2_pb.js +253 -0
  254. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1313 -0
  255. package/protos/entity_pb.js +17 -0
  256. package/protos/entity_pb.ts +49 -0
  257. package/protos/message_pb.js +16 -0
  258. package/protos/message_pb.ts +40 -0
  259. package/protos/operation_pb.js +33 -0
  260. package/protos/operation_pb.ts +198 -0
  261. package/tsconfig.json +12 -0
  262. package/vortex/v1/client.js +9 -0
  263. package/vortex/v1/client.ts +7 -0
  264. package/vortex/v1/vortex_pb.js +65 -0
  265. package/vortex/v1/vortex_pb.ts +280 -0
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ // Copyright (c) 2015, Google Inc.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.http = exports.file_google_api_annotations = void 0;
17
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
18
+ const http_pb_1 = require("./http_pb");
19
+ const wkt_1 = require("@bufbuild/protobuf/wkt");
20
+ /**
21
+ * Describes the file google/api/annotations.proto.
22
+ */
23
+ exports.file_google_api_annotations = (0, codegenv2_1.fileDesc)("Chxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvEgpnb29nbGUuYXBpOksKBGh0dHASHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxiwyrwiIAEoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGVSBGh0dHBCbgoOY29tLmdvb2dsZS5hcGlCEEFubm90YXRpb25zUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3RhdGlvbnOiAgRHQVBJYgZwcm90bzM", [http_pb_1.file_google_api_http, wkt_1.file_google_protobuf_descriptor]);
24
+ /**
25
+ * See `HttpRule`.
26
+ *
27
+ * @generated from extension: google.api.HttpRule http = 72295728;
28
+ */
29
+ exports.http = (0, codegenv2_1.extDesc)(exports.file_google_api_annotations, 0);
@@ -0,0 +1,39 @@
1
+ // Copyright (c) 2015, Google Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
16
+ // @generated from file google/api/annotations.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import type { GenExtension, GenFile } from "@bufbuild/protobuf/codegenv2";
20
+ import { extDesc, fileDesc } from "@bufbuild/protobuf/codegenv2";
21
+ import type { HttpRule } from "./http_pb";
22
+ import { file_google_api_http } from "./http_pb";
23
+ import type { MethodOptions } from "@bufbuild/protobuf/wkt";
24
+ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
25
+
26
+ /**
27
+ * Describes the file google/api/annotations.proto.
28
+ */
29
+ export const file_google_api_annotations: GenFile = /*@__PURE__*/
30
+ fileDesc("Chxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvEgpnb29nbGUuYXBpOksKBGh0dHASHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxiwyrwiIAEoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGVSBGh0dHBCbgoOY29tLmdvb2dsZS5hcGlCEEFubm90YXRpb25zUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3RhdGlvbnOiAgRHQVBJYgZwcm90bzM", [file_google_api_http, file_google_protobuf_descriptor]);
31
+
32
+ /**
33
+ * See `HttpRule`.
34
+ *
35
+ * @generated from extension: google.api.HttpRule http = 72295728;
36
+ */
37
+ export const http: GenExtension<MethodOptions, HttpRule> = /*@__PURE__*/
38
+ extDesc(file_google_api_annotations, 0);
39
+
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // Copyright 2018 Google LLC.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AuthRequirementSchema = exports.OAuthRequirementsSchema = exports.AuthProviderSchema = exports.AuthenticationRuleSchema = exports.AuthenticationSchema = exports.file_google_api_auth = void 0;
17
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
18
+ const annotations_pb_1 = require("./annotations_pb");
19
+ /**
20
+ * Describes the file google/api/auth.proto.
21
+ */
22
+ exports.file_google_api_auth = (0, codegenv2_1.fileDesc)("ChVnb29nbGUvYXBpL2F1dGgucHJvdG8SCmdvb2dsZS5hcGkibAoOQXV0aGVudGljYXRpb24SLQoFcnVsZXMYAyADKAsyHi5nb29nbGUuYXBpLkF1dGhlbnRpY2F0aW9uUnVsZRIrCglwcm92aWRlcnMYBCADKAsyGC5nb29nbGUuYXBpLkF1dGhQcm92aWRlciKpAQoSQXV0aGVudGljYXRpb25SdWxlEhAKCHNlbGVjdG9yGAEgASgJEiwKBW9hdXRoGAIgASgLMh0uZ29vZ2xlLmFwaS5PQXV0aFJlcXVpcmVtZW50cxIgChhhbGxvd193aXRob3V0X2NyZWRlbnRpYWwYBSABKAgSMQoMcmVxdWlyZW1lbnRzGAcgAygLMhsuZ29vZ2xlLmFwaS5BdXRoUmVxdWlyZW1lbnQiagoMQXV0aFByb3ZpZGVyEgoKAmlkGAEgASgJEg4KBmlzc3VlchgCIAEoCRIQCghqd2tzX3VyaRgDIAEoCRIRCglhdWRpZW5jZXMYBCABKAkSGQoRYXV0aG9yaXphdGlvbl91cmwYBSABKAkiLQoRT0F1dGhSZXF1aXJlbWVudHMSGAoQY2Fub25pY2FsX3Njb3BlcxgBIAEoCSI5Cg9BdXRoUmVxdWlyZW1lbnQSEwoLcHJvdmlkZXJfaWQYASABKAkSEQoJYXVkaWVuY2VzGAIgASgJQmsKDmNvbS5nb29nbGUuYXBpQglBdXRoUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvc2VydmljZWNvbmZpZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z", [annotations_pb_1.file_google_api_annotations]);
23
+ /**
24
+ * Describes the message google.api.Authentication.
25
+ * Use `create(AuthenticationSchema)` to create a new message.
26
+ */
27
+ exports.AuthenticationSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 0);
28
+ /**
29
+ * Describes the message google.api.AuthenticationRule.
30
+ * Use `create(AuthenticationRuleSchema)` to create a new message.
31
+ */
32
+ exports.AuthenticationRuleSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 1);
33
+ /**
34
+ * Describes the message google.api.AuthProvider.
35
+ * Use `create(AuthProviderSchema)` to create a new message.
36
+ */
37
+ exports.AuthProviderSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 2);
38
+ /**
39
+ * Describes the message google.api.OAuthRequirements.
40
+ * Use `create(OAuthRequirementsSchema)` to create a new message.
41
+ */
42
+ exports.OAuthRequirementsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 3);
43
+ /**
44
+ * Describes the message google.api.AuthRequirement.
45
+ * Use `create(AuthRequirementSchema)` to create a new message.
46
+ */
47
+ exports.AuthRequirementSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 4);
@@ -0,0 +1,295 @@
1
+ // Copyright 2018 Google LLC.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
16
+ // @generated from file google/api/auth.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
20
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
21
+ import { file_google_api_annotations } from "./annotations_pb";
22
+ import type { Message } from "@bufbuild/protobuf";
23
+
24
+ /**
25
+ * Describes the file google/api/auth.proto.
26
+ */
27
+ export const file_google_api_auth: GenFile = /*@__PURE__*/
28
+ fileDesc("ChVnb29nbGUvYXBpL2F1dGgucHJvdG8SCmdvb2dsZS5hcGkibAoOQXV0aGVudGljYXRpb24SLQoFcnVsZXMYAyADKAsyHi5nb29nbGUuYXBpLkF1dGhlbnRpY2F0aW9uUnVsZRIrCglwcm92aWRlcnMYBCADKAsyGC5nb29nbGUuYXBpLkF1dGhQcm92aWRlciKpAQoSQXV0aGVudGljYXRpb25SdWxlEhAKCHNlbGVjdG9yGAEgASgJEiwKBW9hdXRoGAIgASgLMh0uZ29vZ2xlLmFwaS5PQXV0aFJlcXVpcmVtZW50cxIgChhhbGxvd193aXRob3V0X2NyZWRlbnRpYWwYBSABKAgSMQoMcmVxdWlyZW1lbnRzGAcgAygLMhsuZ29vZ2xlLmFwaS5BdXRoUmVxdWlyZW1lbnQiagoMQXV0aFByb3ZpZGVyEgoKAmlkGAEgASgJEg4KBmlzc3VlchgCIAEoCRIQCghqd2tzX3VyaRgDIAEoCRIRCglhdWRpZW5jZXMYBCABKAkSGQoRYXV0aG9yaXphdGlvbl91cmwYBSABKAkiLQoRT0F1dGhSZXF1aXJlbWVudHMSGAoQY2Fub25pY2FsX3Njb3BlcxgBIAEoCSI5Cg9BdXRoUmVxdWlyZW1lbnQSEwoLcHJvdmlkZXJfaWQYASABKAkSEQoJYXVkaWVuY2VzGAIgASgJQmsKDmNvbS5nb29nbGUuYXBpQglBdXRoUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvc2VydmljZWNvbmZpZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z", [file_google_api_annotations]);
29
+
30
+ /**
31
+ * `Authentication` defines the authentication configuration for an API.
32
+ *
33
+ * Example for an API targeted for external use:
34
+ *
35
+ * name: calendar.googleapis.com
36
+ * authentication:
37
+ * providers:
38
+ * - id: google_calendar_auth
39
+ * jwks_uri: https://www.googleapis.com/oauth2/v1/certs
40
+ * issuer: https://securetoken.google.com
41
+ * rules:
42
+ * - selector: "*"
43
+ * requirements:
44
+ * provider_id: google_calendar_auth
45
+ *
46
+ * @generated from message google.api.Authentication
47
+ */
48
+ export type Authentication = Message<"google.api.Authentication"> & {
49
+ /**
50
+ * A list of authentication rules that apply to individual API methods.
51
+ *
52
+ * **NOTE:** All service configuration rules follow "last one wins" order.
53
+ *
54
+ * @generated from field: repeated google.api.AuthenticationRule rules = 3;
55
+ */
56
+ rules: AuthenticationRule[];
57
+
58
+ /**
59
+ * Defines a set of authentication providers that a service supports.
60
+ *
61
+ * @generated from field: repeated google.api.AuthProvider providers = 4;
62
+ */
63
+ providers: AuthProvider[];
64
+ };
65
+
66
+ /**
67
+ * Describes the message google.api.Authentication.
68
+ * Use `create(AuthenticationSchema)` to create a new message.
69
+ */
70
+ export const AuthenticationSchema: GenMessage<Authentication> = /*@__PURE__*/
71
+ messageDesc(file_google_api_auth, 0);
72
+
73
+ /**
74
+ * Authentication rules for the service.
75
+ *
76
+ * By default, if a method has any authentication requirements, every request
77
+ * must include a valid credential matching one of the requirements.
78
+ * It's an error to include more than one kind of credential in a single
79
+ * request.
80
+ *
81
+ * If a method doesn't have any auth requirements, request credentials will be
82
+ * ignored.
83
+ *
84
+ * @generated from message google.api.AuthenticationRule
85
+ */
86
+ export type AuthenticationRule = Message<"google.api.AuthenticationRule"> & {
87
+ /**
88
+ * Selects the methods to which this rule applies.
89
+ *
90
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
91
+ *
92
+ * @generated from field: string selector = 1;
93
+ */
94
+ selector: string;
95
+
96
+ /**
97
+ * The requirements for OAuth credentials.
98
+ *
99
+ * @generated from field: google.api.OAuthRequirements oauth = 2;
100
+ */
101
+ oauth?: OAuthRequirements;
102
+
103
+ /**
104
+ * If true, the service accepts API keys without any other credential.
105
+ *
106
+ * @generated from field: bool allow_without_credential = 5;
107
+ */
108
+ allowWithoutCredential: boolean;
109
+
110
+ /**
111
+ * Requirements for additional authentication providers.
112
+ *
113
+ * @generated from field: repeated google.api.AuthRequirement requirements = 7;
114
+ */
115
+ requirements: AuthRequirement[];
116
+ };
117
+
118
+ /**
119
+ * Describes the message google.api.AuthenticationRule.
120
+ * Use `create(AuthenticationRuleSchema)` to create a new message.
121
+ */
122
+ export const AuthenticationRuleSchema: GenMessage<AuthenticationRule> = /*@__PURE__*/
123
+ messageDesc(file_google_api_auth, 1);
124
+
125
+ /**
126
+ * Configuration for an anthentication provider, including support for
127
+ * [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
128
+ *
129
+ * @generated from message google.api.AuthProvider
130
+ */
131
+ export type AuthProvider = Message<"google.api.AuthProvider"> & {
132
+ /**
133
+ * The unique identifier of the auth provider. It will be referred to by
134
+ * `AuthRequirement.provider_id`.
135
+ *
136
+ * Example: "bookstore_auth".
137
+ *
138
+ * @generated from field: string id = 1;
139
+ */
140
+ id: string;
141
+
142
+ /**
143
+ * Identifies the principal that issued the JWT. See
144
+ * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
145
+ * Usually a URL or an email address.
146
+ *
147
+ * Example: https://securetoken.google.com
148
+ * Example: 1234567-compute@developer.gserviceaccount.com
149
+ *
150
+ * @generated from field: string issuer = 2;
151
+ */
152
+ issuer: string;
153
+
154
+ /**
155
+ * URL of the provider's public key set to validate signature of the JWT. See
156
+ * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
157
+ * Optional if the key set document:
158
+ * - can be retrieved from
159
+ * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html
160
+ * of the issuer.
161
+ * - can be inferred from the email domain of the issuer (e.g. a Google service account).
162
+ *
163
+ * Example: https://www.googleapis.com/oauth2/v1/certs
164
+ *
165
+ * @generated from field: string jwks_uri = 3;
166
+ */
167
+ jwksUri: string;
168
+
169
+ /**
170
+ * The list of JWT
171
+ * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
172
+ * that are allowed to access. A JWT containing any of these audiences will
173
+ * be accepted. When this setting is absent, only JWTs with audience
174
+ * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
175
+ * will be accepted. For example, if no audiences are in the setting,
176
+ * LibraryService API will only accept JWTs with the following audience
177
+ * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
178
+ *
179
+ * Example:
180
+ *
181
+ * audiences: bookstore_android.apps.googleusercontent.com,
182
+ * bookstore_web.apps.googleusercontent.com
183
+ *
184
+ * @generated from field: string audiences = 4;
185
+ */
186
+ audiences: string;
187
+
188
+ /**
189
+ * Redirect URL if JWT token is required but no present or is expired.
190
+ * Implement authorizationUrl of securityDefinitions in OpenAPI spec.
191
+ *
192
+ * @generated from field: string authorization_url = 5;
193
+ */
194
+ authorizationUrl: string;
195
+ };
196
+
197
+ /**
198
+ * Describes the message google.api.AuthProvider.
199
+ * Use `create(AuthProviderSchema)` to create a new message.
200
+ */
201
+ export const AuthProviderSchema: GenMessage<AuthProvider> = /*@__PURE__*/
202
+ messageDesc(file_google_api_auth, 2);
203
+
204
+ /**
205
+ * OAuth scopes are a way to define data and permissions on data. For example,
206
+ * there are scopes defined for "Read-only access to Google Calendar" and
207
+ * "Access to Cloud Platform". Users can consent to a scope for an application,
208
+ * giving it permission to access that data on their behalf.
209
+ *
210
+ * OAuth scope specifications should be fairly coarse grained; a user will need
211
+ * to see and understand the text description of what your scope means.
212
+ *
213
+ * In most cases: use one or at most two OAuth scopes for an entire family of
214
+ * products. If your product has multiple APIs, you should probably be sharing
215
+ * the OAuth scope across all of those APIs.
216
+ *
217
+ * When you need finer grained OAuth consent screens: talk with your product
218
+ * management about how developers will use them in practice.
219
+ *
220
+ * Please note that even though each of the canonical scopes is enough for a
221
+ * request to be accepted and passed to the backend, a request can still fail
222
+ * due to the backend requiring additional scopes or permissions.
223
+ *
224
+ * @generated from message google.api.OAuthRequirements
225
+ */
226
+ export type OAuthRequirements = Message<"google.api.OAuthRequirements"> & {
227
+ /**
228
+ * The list of publicly documented OAuth scopes that are allowed access. An
229
+ * OAuth token containing any of these scopes will be accepted.
230
+ *
231
+ * Example:
232
+ *
233
+ * canonical_scopes: https://www.googleapis.com/auth/calendar,
234
+ * https://www.googleapis.com/auth/calendar.read
235
+ *
236
+ * @generated from field: string canonical_scopes = 1;
237
+ */
238
+ canonicalScopes: string;
239
+ };
240
+
241
+ /**
242
+ * Describes the message google.api.OAuthRequirements.
243
+ * Use `create(OAuthRequirementsSchema)` to create a new message.
244
+ */
245
+ export const OAuthRequirementsSchema: GenMessage<OAuthRequirements> = /*@__PURE__*/
246
+ messageDesc(file_google_api_auth, 3);
247
+
248
+ /**
249
+ * User-defined authentication requirements, including support for
250
+ * [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
251
+ *
252
+ * @generated from message google.api.AuthRequirement
253
+ */
254
+ export type AuthRequirement = Message<"google.api.AuthRequirement"> & {
255
+ /**
256
+ * [id][google.api.AuthProvider.id] from authentication provider.
257
+ *
258
+ * Example:
259
+ *
260
+ * provider_id: bookstore_auth
261
+ *
262
+ * @generated from field: string provider_id = 1;
263
+ */
264
+ providerId: string;
265
+
266
+ /**
267
+ * NOTE: This will be deprecated soon, once AuthProvider.audiences is
268
+ * implemented and accepted in all the runtime components.
269
+ *
270
+ * The list of JWT
271
+ * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
272
+ * that are allowed to access. A JWT containing any of these audiences will
273
+ * be accepted. When this setting is absent, only JWTs with audience
274
+ * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
275
+ * will be accepted. For example, if no audiences are in the setting,
276
+ * LibraryService API will only accept JWTs with the following audience
277
+ * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
278
+ *
279
+ * Example:
280
+ *
281
+ * audiences: bookstore_android.apps.googleusercontent.com,
282
+ * bookstore_web.apps.googleusercontent.com
283
+ *
284
+ * @generated from field: string audiences = 2;
285
+ */
286
+ audiences: string;
287
+ };
288
+
289
+ /**
290
+ * Describes the message google.api.AuthRequirement.
291
+ * Use `create(AuthRequirementSchema)` to create a new message.
292
+ */
293
+ export const AuthRequirementSchema: GenMessage<AuthRequirement> = /*@__PURE__*/
294
+ messageDesc(file_google_api_auth, 4);
295
+
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // Copyright 2018 Google LLC.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BackendRuleSchema = exports.BackendSchema = exports.file_google_api_backend = void 0;
17
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
18
+ /**
19
+ * Describes the file google/api/backend.proto.
20
+ */
21
+ exports.file_google_api_backend = (0, codegenv2_1.fileDesc)("Chhnb29nbGUvYXBpL2JhY2tlbmQucHJvdG8SCmdvb2dsZS5hcGkiMQoHQmFja2VuZBImCgVydWxlcxgBIAMoCzIXLmdvb2dsZS5hcGkuQmFja2VuZFJ1bGUiWAoLQmFja2VuZFJ1bGUSEAoIc2VsZWN0b3IYASABKAkSDwoHYWRkcmVzcxgCIAEoCRIQCghkZWFkbGluZRgDIAEoARIUCgxtaW5fZGVhZGxpbmUYBCABKAFCbgoOY29tLmdvb2dsZS5hcGlCDEJhY2tlbmRQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM");
22
+ /**
23
+ * Describes the message google.api.Backend.
24
+ * Use `create(BackendSchema)` to create a new message.
25
+ */
26
+ exports.BackendSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_backend, 0);
27
+ /**
28
+ * Describes the message google.api.BackendRule.
29
+ * Use `create(BackendRuleSchema)` to create a new message.
30
+ */
31
+ exports.BackendRuleSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_backend, 1);
@@ -0,0 +1,97 @@
1
+ // Copyright 2018 Google LLC.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
16
+ // @generated from file google/api/backend.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
20
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
21
+ import type { Message } from "@bufbuild/protobuf";
22
+
23
+ /**
24
+ * Describes the file google/api/backend.proto.
25
+ */
26
+ export const file_google_api_backend: GenFile = /*@__PURE__*/
27
+ fileDesc("Chhnb29nbGUvYXBpL2JhY2tlbmQucHJvdG8SCmdvb2dsZS5hcGkiMQoHQmFja2VuZBImCgVydWxlcxgBIAMoCzIXLmdvb2dsZS5hcGkuQmFja2VuZFJ1bGUiWAoLQmFja2VuZFJ1bGUSEAoIc2VsZWN0b3IYASABKAkSDwoHYWRkcmVzcxgCIAEoCRIQCghkZWFkbGluZRgDIAEoARIUCgxtaW5fZGVhZGxpbmUYBCABKAFCbgoOY29tLmdvb2dsZS5hcGlCDEJhY2tlbmRQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM");
28
+
29
+ /**
30
+ * `Backend` defines the backend configuration for a service.
31
+ *
32
+ * @generated from message google.api.Backend
33
+ */
34
+ export type Backend = Message<"google.api.Backend"> & {
35
+ /**
36
+ * A list of API backend rules that apply to individual API methods.
37
+ *
38
+ * **NOTE:** All service configuration rules follow "last one wins" order.
39
+ *
40
+ * @generated from field: repeated google.api.BackendRule rules = 1;
41
+ */
42
+ rules: BackendRule[];
43
+ };
44
+
45
+ /**
46
+ * Describes the message google.api.Backend.
47
+ * Use `create(BackendSchema)` to create a new message.
48
+ */
49
+ export const BackendSchema: GenMessage<Backend> = /*@__PURE__*/
50
+ messageDesc(file_google_api_backend, 0);
51
+
52
+ /**
53
+ * A backend rule provides configuration for an individual API element.
54
+ *
55
+ * @generated from message google.api.BackendRule
56
+ */
57
+ export type BackendRule = Message<"google.api.BackendRule"> & {
58
+ /**
59
+ * Selects the methods to which this rule applies.
60
+ *
61
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
62
+ *
63
+ * @generated from field: string selector = 1;
64
+ */
65
+ selector: string;
66
+
67
+ /**
68
+ * The address of the API backend.
69
+ *
70
+ * @generated from field: string address = 2;
71
+ */
72
+ address: string;
73
+
74
+ /**
75
+ * The number of seconds to wait for a response from a request. The default
76
+ * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
77
+ *
78
+ * @generated from field: double deadline = 3;
79
+ */
80
+ deadline: number;
81
+
82
+ /**
83
+ * Minimum deadline in seconds needed for this method. Calls having deadline
84
+ * value lower than this will be rejected.
85
+ *
86
+ * @generated from field: double min_deadline = 4;
87
+ */
88
+ minDeadline: number;
89
+ };
90
+
91
+ /**
92
+ * Describes the message google.api.BackendRule.
93
+ * Use `create(BackendRuleSchema)` to create a new message.
94
+ */
95
+ export const BackendRuleSchema: GenMessage<BackendRule> = /*@__PURE__*/
96
+ messageDesc(file_google_api_backend, 1);
97
+
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // Copyright 2018 Google LLC.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Billing_BillingDestinationSchema = exports.BillingSchema = exports.file_google_api_billing = void 0;
17
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
18
+ const annotations_pb_1 = require("./annotations_pb");
19
+ /**
20
+ * Describes the file google/api/billing.proto.
21
+ */
22
+ exports.file_google_api_billing = (0, codegenv2_1.fileDesc)("Chhnb29nbGUvYXBpL2JpbGxpbmcucHJvdG8SCmdvb2dsZS5hcGkikwEKB0JpbGxpbmcSRQoVY29uc3VtZXJfZGVzdGluYXRpb25zGAggAygLMiYuZ29vZ2xlLmFwaS5CaWxsaW5nLkJpbGxpbmdEZXN0aW5hdGlvbhpBChJCaWxsaW5nRGVzdGluYXRpb24SGgoSbW9uaXRvcmVkX3Jlc291cmNlGAEgASgJEg8KB21ldHJpY3MYAiADKAlCbgoOY29tLmdvb2dsZS5hcGlCDEJpbGxpbmdQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM", [annotations_pb_1.file_google_api_annotations]);
23
+ /**
24
+ * Describes the message google.api.Billing.
25
+ * Use `create(BillingSchema)` to create a new message.
26
+ */
27
+ exports.BillingSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_billing, 0);
28
+ /**
29
+ * Describes the message google.api.Billing.BillingDestination.
30
+ * Use `create(Billing_BillingDestinationSchema)` to create a new message.
31
+ */
32
+ exports.Billing_BillingDestinationSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_billing, 0, 0);
@@ -0,0 +1,104 @@
1
+ // Copyright 2018 Google LLC.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
16
+ // @generated from file google/api/billing.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
20
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
21
+ import { file_google_api_annotations } from "./annotations_pb";
22
+ import type { Message } from "@bufbuild/protobuf";
23
+
24
+ /**
25
+ * Describes the file google/api/billing.proto.
26
+ */
27
+ export const file_google_api_billing: GenFile = /*@__PURE__*/
28
+ fileDesc("Chhnb29nbGUvYXBpL2JpbGxpbmcucHJvdG8SCmdvb2dsZS5hcGkikwEKB0JpbGxpbmcSRQoVY29uc3VtZXJfZGVzdGluYXRpb25zGAggAygLMiYuZ29vZ2xlLmFwaS5CaWxsaW5nLkJpbGxpbmdEZXN0aW5hdGlvbhpBChJCaWxsaW5nRGVzdGluYXRpb24SGgoSbW9uaXRvcmVkX3Jlc291cmNlGAEgASgJEg8KB21ldHJpY3MYAiADKAlCbgoOY29tLmdvb2dsZS5hcGlCDEJpbGxpbmdQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM", [file_google_api_annotations]);
29
+
30
+ /**
31
+ * Billing related configuration of the service.
32
+ *
33
+ * The following example shows how to configure monitored resources and metrics
34
+ * for billing:
35
+ *
36
+ * monitored_resources:
37
+ * - type: library.googleapis.com/branch
38
+ * labels:
39
+ * - key: /city
40
+ * description: The city where the library branch is located in.
41
+ * - key: /name
42
+ * description: The name of the branch.
43
+ * metrics:
44
+ * - name: library.googleapis.com/book/borrowed_count
45
+ * metric_kind: DELTA
46
+ * value_type: INT64
47
+ * billing:
48
+ * consumer_destinations:
49
+ * - monitored_resource: library.googleapis.com/branch
50
+ * metrics:
51
+ * - library.googleapis.com/book/borrowed_count
52
+ *
53
+ * @generated from message google.api.Billing
54
+ */
55
+ export type Billing = Message<"google.api.Billing"> & {
56
+ /**
57
+ * Billing configurations for sending metrics to the consumer project.
58
+ * There can be multiple consumer destinations per service, each one must have
59
+ * a different monitored resource type. A metric can be used in at most
60
+ * one consumer destination.
61
+ *
62
+ * @generated from field: repeated google.api.Billing.BillingDestination consumer_destinations = 8;
63
+ */
64
+ consumerDestinations: Billing_BillingDestination[];
65
+ };
66
+
67
+ /**
68
+ * Describes the message google.api.Billing.
69
+ * Use `create(BillingSchema)` to create a new message.
70
+ */
71
+ export const BillingSchema: GenMessage<Billing> = /*@__PURE__*/
72
+ messageDesc(file_google_api_billing, 0);
73
+
74
+ /**
75
+ * Configuration of a specific billing destination (Currently only support
76
+ * bill against consumer project).
77
+ *
78
+ * @generated from message google.api.Billing.BillingDestination
79
+ */
80
+ export type Billing_BillingDestination = Message<"google.api.Billing.BillingDestination"> & {
81
+ /**
82
+ * The monitored resource type. The type must be defined in
83
+ * [Service.monitored_resources][google.api.Service.monitored_resources] section.
84
+ *
85
+ * @generated from field: string monitored_resource = 1;
86
+ */
87
+ monitoredResource: string;
88
+
89
+ /**
90
+ * Names of the metrics to report to this billing destination.
91
+ * Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
92
+ *
93
+ * @generated from field: repeated string metrics = 2;
94
+ */
95
+ metrics: string[];
96
+ };
97
+
98
+ /**
99
+ * Describes the message google.api.Billing.BillingDestination.
100
+ * Use `create(Billing_BillingDestinationSchema)` to create a new message.
101
+ */
102
+ export const Billing_BillingDestinationSchema: GenMessage<Billing_BillingDestination> = /*@__PURE__*/
103
+ messageDesc(file_google_api_billing, 0, 0);
104
+