@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,420 @@
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/http.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/http.proto.
25
+ */
26
+ export const file_google_api_http: GenFile = /*@__PURE__*/
27
+ fileDesc("ChVnb29nbGUvYXBpL2h0dHAucHJvdG8SCmdvb2dsZS5hcGkiVAoESHR0cBIjCgVydWxlcxgBIAMoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGUSJwofZnVsbHlfZGVjb2RlX3Jlc2VydmVkX2V4cGFuc2lvbhgCIAEoCCKBAgoISHR0cFJ1bGUSEAoIc2VsZWN0b3IYASABKAkSDQoDZ2V0GAIgASgJSAASDQoDcHV0GAMgASgJSAASDgoEcG9zdBgEIAEoCUgAEhAKBmRlbGV0ZRgFIAEoCUgAEg8KBXBhdGNoGAYgASgJSAASLwoGY3VzdG9tGAggASgLMh0uZ29vZ2xlLmFwaS5DdXN0b21IdHRwUGF0dGVybkgAEgwKBGJvZHkYByABKAkSFQoNcmVzcG9uc2VfYm9keRgMIAEoCRIxChNhZGRpdGlvbmFsX2JpbmRpbmdzGAsgAygLMhQuZ29vZ2xlLmFwaS5IdHRwUnVsZUIJCgdwYXR0ZXJuIi8KEUN1c3RvbUh0dHBQYXR0ZXJuEgwKBGtpbmQYASABKAkSDAoEcGF0aBgCIAEoCUJqCg5jb20uZ29vZ2xlLmFwaUIJSHR0cFByb3RvUAFaQWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL2Fubm90YXRpb25zO2Fubm90YXRpb25z+AEBogIER0FQSWIGcHJvdG8z");
28
+
29
+ /**
30
+ * Defines the HTTP configuration for an API service. It contains a list of
31
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
32
+ * to one or more HTTP REST API methods.
33
+ *
34
+ * @generated from message google.api.Http
35
+ */
36
+ export type Http = Message<"google.api.Http"> & {
37
+ /**
38
+ * A list of HTTP configuration rules that apply to individual API methods.
39
+ *
40
+ * **NOTE:** All service configuration rules follow "last one wins" order.
41
+ *
42
+ * @generated from field: repeated google.api.HttpRule rules = 1;
43
+ */
44
+ rules: HttpRule[];
45
+
46
+ /**
47
+ * When set to true, URL path parmeters will be fully URI-decoded except in
48
+ * cases of single segment matches in reserved expansion, where "%2F" will be
49
+ * left encoded.
50
+ *
51
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
52
+ * segment matches.
53
+ *
54
+ * @generated from field: bool fully_decode_reserved_expansion = 2;
55
+ */
56
+ fullyDecodeReservedExpansion: boolean;
57
+ };
58
+
59
+ /**
60
+ * Describes the message google.api.Http.
61
+ * Use `create(HttpSchema)` to create a new message.
62
+ */
63
+ export const HttpSchema: GenMessage<Http> = /*@__PURE__*/
64
+ messageDesc(file_google_api_http, 0);
65
+
66
+ /**
67
+ * `HttpRule` defines the mapping of an RPC method to one or more HTTP
68
+ * REST API methods. The mapping specifies how different portions of the RPC
69
+ * request message are mapped to URL path, URL query parameters, and
70
+ * HTTP request body. The mapping is typically specified as an
71
+ * `google.api.http` annotation on the RPC method,
72
+ * see "google/api/annotations.proto" for details.
73
+ *
74
+ * The mapping consists of a field specifying the path template and
75
+ * method kind. The path template can refer to fields in the request
76
+ * message, as in the example below which describes a REST GET
77
+ * operation on a resource collection of messages:
78
+ *
79
+ *
80
+ * service Messaging {
81
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
82
+ * option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
83
+ * }
84
+ * }
85
+ * message GetMessageRequest {
86
+ * message SubMessage {
87
+ * string subfield = 1;
88
+ * }
89
+ * string message_id = 1; // mapped to the URL
90
+ * SubMessage sub = 2; // `sub.subfield` is url-mapped
91
+ * }
92
+ * message Message {
93
+ * string text = 1; // content of the resource
94
+ * }
95
+ *
96
+ * The same http annotation can alternatively be expressed inside the
97
+ * `GRPC API Configuration` YAML file.
98
+ *
99
+ * http:
100
+ * rules:
101
+ * - selector: <proto_package_name>.Messaging.GetMessage
102
+ * get: /v1/messages/{message_id}/{sub.subfield}
103
+ *
104
+ * This definition enables an automatic, bidrectional mapping of HTTP
105
+ * JSON to RPC. Example:
106
+ *
107
+ * HTTP | RPC
108
+ * -----|-----
109
+ * `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
110
+ *
111
+ * In general, not only fields but also field paths can be referenced
112
+ * from a path pattern. Fields mapped to the path pattern cannot be
113
+ * repeated and must have a primitive (non-message) type.
114
+ *
115
+ * Any fields in the request message which are not bound by the path
116
+ * pattern automatically become (optional) HTTP query
117
+ * parameters. Assume the following definition of the request message:
118
+ *
119
+ *
120
+ * service Messaging {
121
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
122
+ * option (google.api.http).get = "/v1/messages/{message_id}";
123
+ * }
124
+ * }
125
+ * message GetMessageRequest {
126
+ * message SubMessage {
127
+ * string subfield = 1;
128
+ * }
129
+ * string message_id = 1; // mapped to the URL
130
+ * int64 revision = 2; // becomes a parameter
131
+ * SubMessage sub = 3; // `sub.subfield` becomes a parameter
132
+ * }
133
+ *
134
+ *
135
+ * This enables a HTTP JSON to RPC mapping as below:
136
+ *
137
+ * HTTP | RPC
138
+ * -----|-----
139
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
140
+ *
141
+ * Note that fields which are mapped to HTTP parameters must have a
142
+ * primitive type or a repeated primitive type. Message types are not
143
+ * allowed. In the case of a repeated type, the parameter can be
144
+ * repeated in the URL, as in `...?param=A&param=B`.
145
+ *
146
+ * For HTTP method kinds which allow a request body, the `body` field
147
+ * specifies the mapping. Consider a REST update method on the
148
+ * message resource collection:
149
+ *
150
+ *
151
+ * service Messaging {
152
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
153
+ * option (google.api.http) = {
154
+ * put: "/v1/messages/{message_id}"
155
+ * body: "message"
156
+ * };
157
+ * }
158
+ * }
159
+ * message UpdateMessageRequest {
160
+ * string message_id = 1; // mapped to the URL
161
+ * Message message = 2; // mapped to the body
162
+ * }
163
+ *
164
+ *
165
+ * The following HTTP JSON to RPC mapping is enabled, where the
166
+ * representation of the JSON in the request body is determined by
167
+ * protos JSON encoding:
168
+ *
169
+ * HTTP | RPC
170
+ * -----|-----
171
+ * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
172
+ *
173
+ * The special name `*` can be used in the body mapping to define that
174
+ * every field not bound by the path template should be mapped to the
175
+ * request body. This enables the following alternative definition of
176
+ * the update method:
177
+ *
178
+ * service Messaging {
179
+ * rpc UpdateMessage(Message) returns (Message) {
180
+ * option (google.api.http) = {
181
+ * put: "/v1/messages/{message_id}"
182
+ * body: "*"
183
+ * };
184
+ * }
185
+ * }
186
+ * message Message {
187
+ * string message_id = 1;
188
+ * string text = 2;
189
+ * }
190
+ *
191
+ *
192
+ * The following HTTP JSON to RPC mapping is enabled:
193
+ *
194
+ * HTTP | RPC
195
+ * -----|-----
196
+ * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
197
+ *
198
+ * Note that when using `*` in the body mapping, it is not possible to
199
+ * have HTTP parameters, as all fields not bound by the path end in
200
+ * the body. This makes this option more rarely used in practice of
201
+ * defining REST APIs. The common usage of `*` is in custom methods
202
+ * which don't use the URL at all for transferring data.
203
+ *
204
+ * It is possible to define multiple HTTP methods for one RPC by using
205
+ * the `additional_bindings` option. Example:
206
+ *
207
+ * service Messaging {
208
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
209
+ * option (google.api.http) = {
210
+ * get: "/v1/messages/{message_id}"
211
+ * additional_bindings {
212
+ * get: "/v1/users/{user_id}/messages/{message_id}"
213
+ * }
214
+ * };
215
+ * }
216
+ * }
217
+ * message GetMessageRequest {
218
+ * string message_id = 1;
219
+ * string user_id = 2;
220
+ * }
221
+ *
222
+ *
223
+ * This enables the following two alternative HTTP JSON to RPC
224
+ * mappings:
225
+ *
226
+ * HTTP | RPC
227
+ * -----|-----
228
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
229
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
230
+ *
231
+ * # Rules for HTTP mapping
232
+ *
233
+ * The rules for mapping HTTP path, query parameters, and body fields
234
+ * to the request message are as follows:
235
+ *
236
+ * 1. The `body` field specifies either `*` or a field path, or is
237
+ * omitted. If omitted, it indicates there is no HTTP request body.
238
+ * 2. Leaf fields (recursive expansion of nested messages in the
239
+ * request) can be classified into three types:
240
+ * (a) Matched in the URL template.
241
+ * (b) Covered by body (if body is `*`, everything except (a) fields;
242
+ * else everything under the body field)
243
+ * (c) All other fields.
244
+ * 3. URL query parameters found in the HTTP request are mapped to (c) fields.
245
+ * 4. Any body sent with an HTTP request can contain only (b) fields.
246
+ *
247
+ * The syntax of the path template is as follows:
248
+ *
249
+ * Template = "/" Segments [ Verb ] ;
250
+ * Segments = Segment { "/" Segment } ;
251
+ * Segment = "*" | "**" | LITERAL | Variable ;
252
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
253
+ * FieldPath = IDENT { "." IDENT } ;
254
+ * Verb = ":" LITERAL ;
255
+ *
256
+ * The syntax `*` matches a single path segment. The syntax `**` matches zero
257
+ * or more path segments, which must be the last part of the path except the
258
+ * `Verb`. The syntax `LITERAL` matches literal text in the path.
259
+ *
260
+ * The syntax `Variable` matches part of the URL path as specified by its
261
+ * template. A variable template must not contain other variables. If a variable
262
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
263
+ * is equivalent to `{var=*}`.
264
+ *
265
+ * If a variable contains exactly one path segment, such as `"{var}"` or
266
+ * `"{var=*}"`, when such a variable is expanded into a URL path, all characters
267
+ * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
268
+ * Discovery Document as `{var}`.
269
+ *
270
+ * If a variable contains one or more path segments, such as `"{var=foo/*}"`
271
+ * or `"{var=**}"`, when such a variable is expanded into a URL path, all
272
+ * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
273
+ * show up in the Discovery Document as `{+var}`.
274
+ *
275
+ * NOTE: While the single segment variable matches the semantics of
276
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
277
+ * Simple String Expansion, the multi segment variable **does not** match
278
+ * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
279
+ * does not expand special characters like `?` and `#`, which would lead
280
+ * to invalid URLs.
281
+ *
282
+ * NOTE: the field paths in variables and in the `body` must not refer to
283
+ * repeated fields or map fields.
284
+ *
285
+ * @generated from message google.api.HttpRule
286
+ */
287
+ export type HttpRule = Message<"google.api.HttpRule"> & {
288
+ /**
289
+ * Selects methods to which this rule applies.
290
+ *
291
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
292
+ *
293
+ * @generated from field: string selector = 1;
294
+ */
295
+ selector: string;
296
+
297
+ /**
298
+ * Determines the URL pattern is matched by this rules. This pattern can be
299
+ * used with any of the {get|put|post|delete|patch} methods. A custom method
300
+ * can be defined using the 'custom' field.
301
+ *
302
+ * @generated from oneof google.api.HttpRule.pattern
303
+ */
304
+ pattern: {
305
+ /**
306
+ * Used for listing and getting information about resources.
307
+ *
308
+ * @generated from field: string get = 2;
309
+ */
310
+ value: string;
311
+ case: "get";
312
+ } | {
313
+ /**
314
+ * Used for updating a resource.
315
+ *
316
+ * @generated from field: string put = 3;
317
+ */
318
+ value: string;
319
+ case: "put";
320
+ } | {
321
+ /**
322
+ * Used for creating a resource.
323
+ *
324
+ * @generated from field: string post = 4;
325
+ */
326
+ value: string;
327
+ case: "post";
328
+ } | {
329
+ /**
330
+ * Used for deleting a resource.
331
+ *
332
+ * @generated from field: string delete = 5;
333
+ */
334
+ value: string;
335
+ case: "delete";
336
+ } | {
337
+ /**
338
+ * Used for updating a resource.
339
+ *
340
+ * @generated from field: string patch = 6;
341
+ */
342
+ value: string;
343
+ case: "patch";
344
+ } | {
345
+ /**
346
+ * The custom pattern is used for specifying an HTTP method that is not
347
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
348
+ * HTTP method unspecified for this rule. The wild-card rule is useful
349
+ * for services that provide content to Web (HTML) clients.
350
+ *
351
+ * @generated from field: google.api.CustomHttpPattern custom = 8;
352
+ */
353
+ value: CustomHttpPattern;
354
+ case: "custom";
355
+ } | { case: undefined; value?: undefined };
356
+
357
+ /**
358
+ * The name of the request field whose value is mapped to the HTTP body, or
359
+ * `*` for mapping all fields not captured by the path pattern to the HTTP
360
+ * body. NOTE: the referred field must not be a repeated field and must be
361
+ * present at the top-level of request message type.
362
+ *
363
+ * @generated from field: string body = 7;
364
+ */
365
+ body: string;
366
+
367
+ /**
368
+ * Optional. The name of the response field whose value is mapped to the HTTP
369
+ * body of response. Other response fields are ignored. When
370
+ * not set, the response message will be used as HTTP body of response.
371
+ *
372
+ * @generated from field: string response_body = 12;
373
+ */
374
+ responseBody: string;
375
+
376
+ /**
377
+ * Additional HTTP bindings for the selector. Nested bindings must
378
+ * not contain an `additional_bindings` field themselves (that is,
379
+ * the nesting may only be one level deep).
380
+ *
381
+ * @generated from field: repeated google.api.HttpRule additional_bindings = 11;
382
+ */
383
+ additionalBindings: HttpRule[];
384
+ };
385
+
386
+ /**
387
+ * Describes the message google.api.HttpRule.
388
+ * Use `create(HttpRuleSchema)` to create a new message.
389
+ */
390
+ export const HttpRuleSchema: GenMessage<HttpRule> = /*@__PURE__*/
391
+ messageDesc(file_google_api_http, 1);
392
+
393
+ /**
394
+ * A custom pattern is used for defining custom HTTP verb.
395
+ *
396
+ * @generated from message google.api.CustomHttpPattern
397
+ */
398
+ export type CustomHttpPattern = Message<"google.api.CustomHttpPattern"> & {
399
+ /**
400
+ * The name of this custom HTTP verb.
401
+ *
402
+ * @generated from field: string kind = 1;
403
+ */
404
+ kind: string;
405
+
406
+ /**
407
+ * The path matched by this custom verb.
408
+ *
409
+ * @generated from field: string path = 2;
410
+ */
411
+ path: string;
412
+ };
413
+
414
+ /**
415
+ * Describes the message google.api.CustomHttpPattern.
416
+ * Use `create(CustomHttpPatternSchema)` to create a new message.
417
+ */
418
+ export const CustomHttpPatternSchema: GenMessage<CustomHttpPattern> = /*@__PURE__*/
419
+ messageDesc(file_google_api_http, 2);
420
+
@@ -0,0 +1,27 @@
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.HttpBodySchema = exports.file_google_api_httpbody = void 0;
17
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
18
+ const wkt_1 = require("@bufbuild/protobuf/wkt");
19
+ /**
20
+ * Describes the file google/api/httpbody.proto.
21
+ */
22
+ exports.file_google_api_httpbody = (0, codegenv2_1.fileDesc)("Chlnb29nbGUvYXBpL2h0dHBib2R5LnByb3RvEgpnb29nbGUuYXBpIlgKCEh0dHBCb2R5EhQKDGNvbnRlbnRfdHlwZRgBIAEoCRIMCgRkYXRhGAIgASgMEigKCmV4dGVuc2lvbnMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55QmUKDmNvbS5nb29nbGUuYXBpQg1IdHRwQm9keVByb3RvUAFaO2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL2h0dHBib2R5O2h0dHBib2R5ogIER0FQSWIGcHJvdG8z", [wkt_1.file_google_protobuf_any]);
23
+ /**
24
+ * Describes the message google.api.HttpBody.
25
+ * Use `create(HttpBodySchema)` to create a new message.
26
+ */
27
+ exports.HttpBodySchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_httpbody, 0);
@@ -0,0 +1,103 @@
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/httpbody.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 { Any } from "@bufbuild/protobuf/wkt";
22
+ import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
23
+ import type { Message } from "@bufbuild/protobuf";
24
+
25
+ /**
26
+ * Describes the file google/api/httpbody.proto.
27
+ */
28
+ export const file_google_api_httpbody: GenFile = /*@__PURE__*/
29
+ fileDesc("Chlnb29nbGUvYXBpL2h0dHBib2R5LnByb3RvEgpnb29nbGUuYXBpIlgKCEh0dHBCb2R5EhQKDGNvbnRlbnRfdHlwZRgBIAEoCRIMCgRkYXRhGAIgASgMEigKCmV4dGVuc2lvbnMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55QmUKDmNvbS5nb29nbGUuYXBpQg1IdHRwQm9keVByb3RvUAFaO2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL2h0dHBib2R5O2h0dHBib2R5ogIER0FQSWIGcHJvdG8z", [file_google_protobuf_any]);
30
+
31
+ /**
32
+ * Message that represents an arbitrary HTTP body. It should only be used for
33
+ * payload formats that can't be represented as JSON, such as raw binary or
34
+ * an HTML page.
35
+ *
36
+ *
37
+ * This message can be used both in streaming and non-streaming API methods in
38
+ * the request as well as the response.
39
+ *
40
+ * It can be used as a top-level request field, which is convenient if one
41
+ * wants to extract parameters from either the URL or HTTP template into the
42
+ * request fields and also want access to the raw HTTP body.
43
+ *
44
+ * Example:
45
+ *
46
+ * message GetResourceRequest {
47
+ * // A unique request id.
48
+ * string request_id = 1;
49
+ *
50
+ * // The raw HTTP body is bound to this field.
51
+ * google.api.HttpBody http_body = 2;
52
+ * }
53
+ *
54
+ * service ResourceService {
55
+ * rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
56
+ * rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
57
+ * }
58
+ *
59
+ * Example with streaming methods:
60
+ *
61
+ * service CaldavService {
62
+ * rpc GetCalendar(stream google.api.HttpBody)
63
+ * returns (stream google.api.HttpBody);
64
+ * rpc UpdateCalendar(stream google.api.HttpBody)
65
+ * returns (stream google.api.HttpBody);
66
+ * }
67
+ *
68
+ * Use of this type only changes how the request and response bodies are
69
+ * handled, all other features will continue to work unchanged.
70
+ *
71
+ * @generated from message google.api.HttpBody
72
+ */
73
+ export type HttpBody = Message<"google.api.HttpBody"> & {
74
+ /**
75
+ * The HTTP Content-Type string representing the content type of the body.
76
+ *
77
+ * @generated from field: string content_type = 1;
78
+ */
79
+ contentType: string;
80
+
81
+ /**
82
+ * HTTP body binary data.
83
+ *
84
+ * @generated from field: bytes data = 2;
85
+ */
86
+ data: Uint8Array;
87
+
88
+ /**
89
+ * Application specific response metadata. Must be set in the first response
90
+ * for streaming APIs.
91
+ *
92
+ * @generated from field: repeated google.protobuf.Any extensions = 3;
93
+ */
94
+ extensions: Any[];
95
+ };
96
+
97
+ /**
98
+ * Describes the message google.api.HttpBody.
99
+ * Use `create(HttpBodySchema)` to create a new message.
100
+ */
101
+ export const HttpBodySchema: GenMessage<HttpBody> = /*@__PURE__*/
102
+ messageDesc(file_google_api_httpbody, 0);
103
+
@@ -0,0 +1,56 @@
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.LabelDescriptor_ValueTypeSchema = exports.LabelDescriptor_ValueType = exports.LabelDescriptorSchema = exports.file_google_api_label = void 0;
17
+ const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
18
+ /**
19
+ * Describes the file google/api/label.proto.
20
+ */
21
+ exports.file_google_api_label = (0, codegenv2_1.fileDesc)("ChZnb29nbGUvYXBpL2xhYmVsLnByb3RvEgpnb29nbGUuYXBpIpwBCg9MYWJlbERlc2NyaXB0b3ISCwoDa2V5GAEgASgJEjkKCnZhbHVlX3R5cGUYAiABKA4yJS5nb29nbGUuYXBpLkxhYmVsRGVzY3JpcHRvci5WYWx1ZVR5cGUSEwoLZGVzY3JpcHRpb24YAyABKAkiLAoJVmFsdWVUeXBlEgoKBlNUUklORxAAEggKBEJPT0wQARIJCgVJTlQ2NBACQl8KDmNvbS5nb29nbGUuYXBpQgpMYWJlbFByb3RvUAFaNWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL2xhYmVsO2xhYmVs+AEBogIER0FQSWIGcHJvdG8z");
22
+ /**
23
+ * Describes the message google.api.LabelDescriptor.
24
+ * Use `create(LabelDescriptorSchema)` to create a new message.
25
+ */
26
+ exports.LabelDescriptorSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_label, 0);
27
+ /**
28
+ * Value types that can be used as label values.
29
+ *
30
+ * @generated from enum google.api.LabelDescriptor.ValueType
31
+ */
32
+ var LabelDescriptor_ValueType;
33
+ (function (LabelDescriptor_ValueType) {
34
+ /**
35
+ * A variable-length string. This is the default.
36
+ *
37
+ * @generated from enum value: STRING = 0;
38
+ */
39
+ LabelDescriptor_ValueType[LabelDescriptor_ValueType["STRING"] = 0] = "STRING";
40
+ /**
41
+ * Boolean; true or false.
42
+ *
43
+ * @generated from enum value: BOOL = 1;
44
+ */
45
+ LabelDescriptor_ValueType[LabelDescriptor_ValueType["BOOL"] = 1] = "BOOL";
46
+ /**
47
+ * A 64-bit signed integer.
48
+ *
49
+ * @generated from enum value: INT64 = 2;
50
+ */
51
+ LabelDescriptor_ValueType[LabelDescriptor_ValueType["INT64"] = 2] = "INT64";
52
+ })(LabelDescriptor_ValueType || (exports.LabelDescriptor_ValueType = LabelDescriptor_ValueType = {}));
53
+ /**
54
+ * Describes the enum google.api.LabelDescriptor.ValueType.
55
+ */
56
+ exports.LabelDescriptor_ValueTypeSchema = (0, codegenv2_1.enumDesc)(exports.file_google_api_label, 0, 0);