@hyperlane-xyz/cli 16.2.0 → 18.0.0

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 (190) hide show
  1. package/cli-bundle/index.js +39174 -1835
  2. package/examples/submit/transactions/{alfajores-transactions.json → sepolia-transactions.json} +1 -1
  3. package/package.json +5 -5
  4. package/cli-bundle/798.index.js +0 -169715
  5. package/cli-bundle/proto/channelz.proto +0 -564
  6. package/cli-bundle/protos/compute_operations.d.ts +0 -7304
  7. package/cli-bundle/protos/compute_operations.js +0 -1
  8. package/cli-bundle/protos/compute_operations.json +0 -1
  9. package/cli-bundle/protos/google/api/annotations.proto +0 -31
  10. package/cli-bundle/protos/google/api/apikeys/v2/apikeys.proto +0 -288
  11. package/cli-bundle/protos/google/api/apikeys/v2/resources.proto +0 -175
  12. package/cli-bundle/protos/google/api/auth.proto +0 -237
  13. package/cli-bundle/protos/google/api/backend.proto +0 -185
  14. package/cli-bundle/protos/google/api/billing.proto +0 -77
  15. package/cli-bundle/protos/google/api/client.proto +0 -427
  16. package/cli-bundle/protos/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
  17. package/cli-bundle/protos/google/api/cloudquotas/v1/resources.proto +0 -311
  18. package/cli-bundle/protos/google/api/config_change.proto +0 -84
  19. package/cli-bundle/protos/google/api/consumer.proto +0 -82
  20. package/cli-bundle/protos/google/api/context.proto +0 -90
  21. package/cli-bundle/protos/google/api/control.proto +0 -41
  22. package/cli-bundle/protos/google/api/distribution.proto +0 -213
  23. package/cli-bundle/protos/google/api/documentation.proto +0 -168
  24. package/cli-bundle/protos/google/api/endpoint.proto +0 -73
  25. package/cli-bundle/protos/google/api/error_reason.proto +0 -589
  26. package/cli-bundle/protos/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
  27. package/cli-bundle/protos/google/api/expr/v1alpha1/checked.proto +0 -343
  28. package/cli-bundle/protos/google/api/expr/v1alpha1/eval.proto +0 -118
  29. package/cli-bundle/protos/google/api/expr/v1alpha1/explain.proto +0 -53
  30. package/cli-bundle/protos/google/api/expr/v1alpha1/syntax.proto +0 -400
  31. package/cli-bundle/protos/google/api/expr/v1alpha1/value.proto +0 -115
  32. package/cli-bundle/protos/google/api/expr/v1beta1/decl.proto +0 -84
  33. package/cli-bundle/protos/google/api/expr/v1beta1/eval.proto +0 -125
  34. package/cli-bundle/protos/google/api/expr/v1beta1/expr.proto +0 -265
  35. package/cli-bundle/protos/google/api/expr/v1beta1/source.proto +0 -62
  36. package/cli-bundle/protos/google/api/expr/v1beta1/value.proto +0 -114
  37. package/cli-bundle/protos/google/api/field_behavior.proto +0 -104
  38. package/cli-bundle/protos/google/api/field_info.proto +0 -79
  39. package/cli-bundle/protos/google/api/http.proto +0 -379
  40. package/cli-bundle/protos/google/api/httpbody.proto +0 -81
  41. package/cli-bundle/protos/google/api/label.proto +0 -48
  42. package/cli-bundle/protos/google/api/launch_stage.proto +0 -72
  43. package/cli-bundle/protos/google/api/log.proto +0 -54
  44. package/cli-bundle/protos/google/api/logging.proto +0 -81
  45. package/cli-bundle/protos/google/api/metric.proto +0 -268
  46. package/cli-bundle/protos/google/api/monitored_resource.proto +0 -130
  47. package/cli-bundle/protos/google/api/monitoring.proto +0 -107
  48. package/cli-bundle/protos/google/api/policy.proto +0 -85
  49. package/cli-bundle/protos/google/api/quota.proto +0 -184
  50. package/cli-bundle/protos/google/api/resource.proto +0 -238
  51. package/cli-bundle/protos/google/api/routing.proto +0 -461
  52. package/cli-bundle/protos/google/api/service.proto +0 -191
  53. package/cli-bundle/protos/google/api/servicecontrol/v1/check_error.proto +0 -124
  54. package/cli-bundle/protos/google/api/servicecontrol/v1/distribution.proto +0 -166
  55. package/cli-bundle/protos/google/api/servicecontrol/v1/http_request.proto +0 -93
  56. package/cli-bundle/protos/google/api/servicecontrol/v1/log_entry.proto +0 -126
  57. package/cli-bundle/protos/google/api/servicecontrol/v1/metric_value.proto +0 -81
  58. package/cli-bundle/protos/google/api/servicecontrol/v1/operation.proto +0 -123
  59. package/cli-bundle/protos/google/api/servicecontrol/v1/quota_controller.proto +0 -245
  60. package/cli-bundle/protos/google/api/servicecontrol/v1/service_controller.proto +0 -260
  61. package/cli-bundle/protos/google/api/servicecontrol/v2/service_controller.proto +0 -196
  62. package/cli-bundle/protos/google/api/servicemanagement/v1/resources.proto +0 -295
  63. package/cli-bundle/protos/google/api/servicemanagement/v1/servicemanager.proto +0 -508
  64. package/cli-bundle/protos/google/api/serviceusage/v1/resources.proto +0 -130
  65. package/cli-bundle/protos/google/api/serviceusage/v1/serviceusage.proto +0 -305
  66. package/cli-bundle/protos/google/api/serviceusage/v1beta1/resources.proto +0 -458
  67. package/cli-bundle/protos/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
  68. package/cli-bundle/protos/google/api/source_info.proto +0 -31
  69. package/cli-bundle/protos/google/api/system_parameter.proto +0 -96
  70. package/cli-bundle/protos/google/api/usage.proto +0 -96
  71. package/cli-bundle/protos/google/api/visibility.proto +0 -113
  72. package/cli-bundle/protos/google/cloud/location/locations.proto +0 -108
  73. package/cli-bundle/protos/google/iam/v1/iam_policy.proto +0 -155
  74. package/cli-bundle/protos/google/iam/v1/logging/audit_data.proto +0 -33
  75. package/cli-bundle/protos/google/iam/v1/options.proto +0 -48
  76. package/cli-bundle/protos/google/iam/v1/policy.proto +0 -410
  77. package/cli-bundle/protos/google/logging/type/http_request.proto +0 -95
  78. package/cli-bundle/protos/google/logging/type/log_severity.proto +0 -71
  79. package/cli-bundle/protos/google/longrunning/operations.proto +0 -247
  80. package/cli-bundle/protos/google/monitoring/v3/alert.proto +0 -669
  81. package/cli-bundle/protos/google/monitoring/v3/alert_service.proto +0 -256
  82. package/cli-bundle/protos/google/monitoring/v3/common.proto +0 -488
  83. package/cli-bundle/protos/google/monitoring/v3/dropped_labels.proto +0 -46
  84. package/cli-bundle/protos/google/monitoring/v3/group.proto +0 -90
  85. package/cli-bundle/protos/google/monitoring/v3/group_service.proto +0 -290
  86. package/cli-bundle/protos/google/monitoring/v3/metric.proto +0 -239
  87. package/cli-bundle/protos/google/monitoring/v3/metric_service.proto +0 -522
  88. package/cli-bundle/protos/google/monitoring/v3/mutation_record.proto +0 -36
  89. package/cli-bundle/protos/google/monitoring/v3/notification.proto +0 -195
  90. package/cli-bundle/protos/google/monitoring/v3/notification_service.proto +0 -448
  91. package/cli-bundle/protos/google/monitoring/v3/query_service.proto +0 -48
  92. package/cli-bundle/protos/google/monitoring/v3/service.proto +0 -457
  93. package/cli-bundle/protos/google/monitoring/v3/service_service.proto +0 -352
  94. package/cli-bundle/protos/google/monitoring/v3/snooze.proto +0 -78
  95. package/cli-bundle/protos/google/monitoring/v3/snooze_service.proto +0 -210
  96. package/cli-bundle/protos/google/monitoring/v3/span_context.proto +0 -45
  97. package/cli-bundle/protos/google/monitoring/v3/uptime.proto +0 -564
  98. package/cli-bundle/protos/google/monitoring/v3/uptime_service.proto +0 -259
  99. package/cli-bundle/protos/google/protobuf/any.proto +0 -162
  100. package/cli-bundle/protos/google/protobuf/api.proto +0 -207
  101. package/cli-bundle/protos/google/protobuf/bridge/message_set.proto +0 -76
  102. package/cli-bundle/protos/google/protobuf/compiler/plugin.proto +0 -180
  103. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code.proto +0 -77
  104. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2.proto +0 -78
  105. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2_import.proto +0 -12
  106. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit.proto +0 -16
  107. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy.proto +0 -16
  108. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_implicit.proto +0 -14
  109. package/cli-bundle/protos/google/protobuf/cpp_features.proto +0 -45
  110. package/cli-bundle/protos/google/protobuf/descriptor.proto +0 -1225
  111. package/cli-bundle/protos/google/protobuf/duration.proto +0 -115
  112. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_enum.proto +0 -26
  113. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_group.proto +0 -18
  114. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_import.proto +0 -16
  115. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_inline_comments.proto +0 -33
  116. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_multiline_comments.proto +0 -33
  117. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_optional.proto +0 -65
  118. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_packed.proto +0 -14
  119. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_proto3_enum.proto +0 -18
  120. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_required.proto +0 -47
  121. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_unpacked.proto +0 -19
  122. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_disabled.proto +0 -16
  123. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_lite.proto +0 -17
  124. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_verify.proto +0 -14
  125. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_enum.proto +0 -26
  126. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_implicit.proto +0 -65
  127. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_import.proto +0 -16
  128. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_optional.proto +0 -47
  129. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_packed.proto +0 -20
  130. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_unpacked.proto +0 -19
  131. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_utf8_strict.proto +0 -15
  132. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2.proto +0 -129
  133. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_lite.proto +0 -19
  134. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_utf8_disabled.proto +0 -18
  135. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3.proto +0 -32
  136. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3_utf8_disabled.proto +0 -18
  137. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2.proto +0 -14
  138. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2_import.proto +0 -16
  139. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto3.proto +0 -14
  140. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2.proto +0 -91
  141. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_lite.proto +0 -20
  142. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_utf8_disabled.proto +0 -19
  143. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3.proto +0 -25
  144. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3_utf8_disabled.proto +0 -19
  145. package/cli-bundle/protos/google/protobuf/empty.proto +0 -51
  146. package/cli-bundle/protos/google/protobuf/field_mask.proto +0 -245
  147. package/cli-bundle/protos/google/protobuf/sample_messages_edition.proto +0 -427
  148. package/cli-bundle/protos/google/protobuf/source_context.proto +0 -48
  149. package/cli-bundle/protos/google/protobuf/struct.proto +0 -95
  150. package/cli-bundle/protos/google/protobuf/timestamp.proto +0 -144
  151. package/cli-bundle/protos/google/protobuf/type.proto +0 -193
  152. package/cli-bundle/protos/google/protobuf/util/json_format.proto +0 -116
  153. package/cli-bundle/protos/google/protobuf/util/json_format_proto3.proto +0 -301
  154. package/cli-bundle/protos/google/protobuf/wrappers.proto +0 -123
  155. package/cli-bundle/protos/google/rpc/code.proto +0 -186
  156. package/cli-bundle/protos/google/rpc/context/attribute_context.proto +0 -344
  157. package/cli-bundle/protos/google/rpc/context/audit_context.proto +0 -49
  158. package/cli-bundle/protos/google/rpc/error_details.proto +0 -285
  159. package/cli-bundle/protos/google/rpc/http.proto +0 -64
  160. package/cli-bundle/protos/google/rpc/status.proto +0 -49
  161. package/cli-bundle/protos/google/type/calendar_period.proto +0 -56
  162. package/cli-bundle/protos/google/type/color.proto +0 -174
  163. package/cli-bundle/protos/google/type/date.proto +0 -52
  164. package/cli-bundle/protos/google/type/datetime.proto +0 -104
  165. package/cli-bundle/protos/google/type/dayofweek.proto +0 -50
  166. package/cli-bundle/protos/google/type/decimal.proto +0 -95
  167. package/cli-bundle/protos/google/type/expr.proto +0 -73
  168. package/cli-bundle/protos/google/type/fraction.proto +0 -33
  169. package/cli-bundle/protos/google/type/interval.proto +0 -46
  170. package/cli-bundle/protos/google/type/latlng.proto +0 -37
  171. package/cli-bundle/protos/google/type/localized_text.proto +0 -36
  172. package/cli-bundle/protos/google/type/money.proto +0 -42
  173. package/cli-bundle/protos/google/type/month.proto +0 -65
  174. package/cli-bundle/protos/google/type/phone_number.proto +0 -113
  175. package/cli-bundle/protos/google/type/postal_address.proto +0 -134
  176. package/cli-bundle/protos/google/type/quaternion.proto +0 -94
  177. package/cli-bundle/protos/google/type/timeofday.proto +0 -44
  178. package/cli-bundle/protos/http.d.ts +0 -347
  179. package/cli-bundle/protos/http.js +0 -1
  180. package/cli-bundle/protos/iam_service.d.ts +0 -5035
  181. package/cli-bundle/protos/iam_service.js +0 -1
  182. package/cli-bundle/protos/iam_service.json +0 -1
  183. package/cli-bundle/protos/locations.d.ts +0 -4060
  184. package/cli-bundle/protos/locations.js +0 -1
  185. package/cli-bundle/protos/locations.json +0 -1
  186. package/cli-bundle/protos/operations.d.ts +0 -4783
  187. package/cli-bundle/protos/operations.js +0 -1
  188. package/cli-bundle/protos/operations.json +0 -1
  189. package/cli-bundle/protos/status.json +0 -1
  190. package/cli-bundle/worker2.js +0 -174
@@ -1,31 +0,0 @@
1
- // Copyright 2023 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
- syntax = "proto3";
16
-
17
- package google.api;
18
-
19
- import "google/protobuf/any.proto";
20
-
21
- option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
22
- option java_multiple_files = true;
23
- option java_outer_classname = "SourceInfoProto";
24
- option java_package = "com.google.api";
25
- option objc_class_prefix = "GAPI";
26
-
27
- // Source information used to create a Service Config
28
- message SourceInfo {
29
- // All files used during config generation.
30
- repeated google.protobuf.Any source_files = 1;
31
- }
@@ -1,96 +0,0 @@
1
- // Copyright 2023 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
- syntax = "proto3";
16
-
17
- package google.api;
18
-
19
- option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
20
- option java_multiple_files = true;
21
- option java_outer_classname = "SystemParameterProto";
22
- option java_package = "com.google.api";
23
- option objc_class_prefix = "GAPI";
24
-
25
- // ### System parameter configuration
26
- //
27
- // A system parameter is a special kind of parameter defined by the API
28
- // system, not by an individual API. It is typically mapped to an HTTP header
29
- // and/or a URL query parameter. This configuration specifies which methods
30
- // change the names of the system parameters.
31
- message SystemParameters {
32
- // Define system parameters.
33
- //
34
- // The parameters defined here will override the default parameters
35
- // implemented by the system. If this field is missing from the service
36
- // config, default system parameters will be used. Default system parameters
37
- // and names is implementation-dependent.
38
- //
39
- // Example: define api key for all methods
40
- //
41
- // system_parameters
42
- // rules:
43
- // - selector: "*"
44
- // parameters:
45
- // - name: api_key
46
- // url_query_parameter: api_key
47
- //
48
- //
49
- // Example: define 2 api key names for a specific method.
50
- //
51
- // system_parameters
52
- // rules:
53
- // - selector: "/ListShelves"
54
- // parameters:
55
- // - name: api_key
56
- // http_header: Api-Key1
57
- // - name: api_key
58
- // http_header: Api-Key2
59
- //
60
- // **NOTE:** All service configuration rules follow "last one wins" order.
61
- repeated SystemParameterRule rules = 1;
62
- }
63
-
64
- // Define a system parameter rule mapping system parameter definitions to
65
- // methods.
66
- message SystemParameterRule {
67
- // Selects the methods to which this rule applies. Use '*' to indicate all
68
- // methods in all APIs.
69
- //
70
- // Refer to [selector][google.api.DocumentationRule.selector] for syntax
71
- // details.
72
- string selector = 1;
73
-
74
- // Define parameters. Multiple names may be defined for a parameter.
75
- // For a given method call, only one of them should be used. If multiple
76
- // names are used the behavior is implementation-dependent.
77
- // If none of the specified names are present the behavior is
78
- // parameter-dependent.
79
- repeated SystemParameter parameters = 2;
80
- }
81
-
82
- // Define a parameter's name and location. The parameter may be passed as either
83
- // an HTTP header or a URL query parameter, and if both are passed the behavior
84
- // is implementation-dependent.
85
- message SystemParameter {
86
- // Define the name of the parameter, such as "api_key" . It is case sensitive.
87
- string name = 1;
88
-
89
- // Define the HTTP header name to use for the parameter. It is case
90
- // insensitive.
91
- string http_header = 2;
92
-
93
- // Define the URL query parameter name to use for the parameter. It is case
94
- // sensitive.
95
- string url_query_parameter = 3;
96
- }
@@ -1,96 +0,0 @@
1
- // Copyright 2023 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
- syntax = "proto3";
16
-
17
- package google.api;
18
-
19
- option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
20
- option java_multiple_files = true;
21
- option java_outer_classname = "UsageProto";
22
- option java_package = "com.google.api";
23
- option objc_class_prefix = "GAPI";
24
-
25
- // Configuration controlling usage of a service.
26
- message Usage {
27
- // Requirements that must be satisfied before a consumer project can use the
28
- // service. Each requirement is of the form <service.name>/<requirement-id>;
29
- // for example 'serviceusage.googleapis.com/billing-enabled'.
30
- //
31
- // For Google APIs, a Terms of Service requirement must be included here.
32
- // Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
33
- // Other Google APIs should include
34
- // "serviceusage.googleapis.com/tos/universal". Additional ToS can be
35
- // included based on the business needs.
36
- repeated string requirements = 1;
37
-
38
- // A list of usage rules that apply to individual API methods.
39
- //
40
- // **NOTE:** All service configuration rules follow "last one wins" order.
41
- repeated UsageRule rules = 6;
42
-
43
- // The full resource name of a channel used for sending notifications to the
44
- // service producer.
45
- //
46
- // Google Service Management currently only supports
47
- // [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
48
- // channel. To use Google Cloud Pub/Sub as the channel, this must be the name
49
- // of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
50
- // documented in https://cloud.google.com/pubsub/docs/overview.
51
- string producer_notification_channel = 7;
52
- }
53
-
54
- // Usage configuration rules for the service.
55
- //
56
- // NOTE: Under development.
57
- //
58
- //
59
- // Use this rule to configure unregistered calls for the service. Unregistered
60
- // calls are calls that do not contain consumer project identity.
61
- // (Example: calls that do not contain an API key).
62
- // By default, API methods do not allow unregistered calls, and each method call
63
- // must be identified by a consumer project identity. Use this rule to
64
- // allow/disallow unregistered calls.
65
- //
66
- // Example of an API that wants to allow unregistered calls for entire service.
67
- //
68
- // usage:
69
- // rules:
70
- // - selector: "*"
71
- // allow_unregistered_calls: true
72
- //
73
- // Example of a method that wants to allow unregistered calls.
74
- //
75
- // usage:
76
- // rules:
77
- // - selector: "google.example.library.v1.LibraryService.CreateBook"
78
- // allow_unregistered_calls: true
79
- message UsageRule {
80
- // Selects the methods to which this rule applies. Use '*' to indicate all
81
- // methods in all APIs.
82
- //
83
- // Refer to [selector][google.api.DocumentationRule.selector] for syntax
84
- // details.
85
- string selector = 1;
86
-
87
- // If true, the selected method allows unregistered calls, e.g. calls
88
- // that don't identify any user or application.
89
- bool allow_unregistered_calls = 2;
90
-
91
- // If true, the selected method should skip service control and the control
92
- // plane features, such as quota and billing, will not be available.
93
- // This flag is used by Google Cloud Endpoints to bypass checks for internal
94
- // methods, such as service health check methods.
95
- bool skip_service_control = 3;
96
- }
@@ -1,113 +0,0 @@
1
- // Copyright 2023 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
- syntax = "proto3";
16
-
17
- package google.api;
18
-
19
- import "google/protobuf/descriptor.proto";
20
-
21
- option cc_enable_arenas = true;
22
- option go_package = "google.golang.org/genproto/googleapis/api/visibility;visibility";
23
- option java_multiple_files = true;
24
- option java_outer_classname = "VisibilityProto";
25
- option java_package = "com.google.api";
26
- option objc_class_prefix = "GAPI";
27
-
28
- extend google.protobuf.EnumOptions {
29
- // See `VisibilityRule`.
30
- google.api.VisibilityRule enum_visibility = 72295727;
31
- }
32
-
33
- extend google.protobuf.EnumValueOptions {
34
- // See `VisibilityRule`.
35
- google.api.VisibilityRule value_visibility = 72295727;
36
- }
37
-
38
- extend google.protobuf.FieldOptions {
39
- // See `VisibilityRule`.
40
- google.api.VisibilityRule field_visibility = 72295727;
41
- }
42
-
43
- extend google.protobuf.MessageOptions {
44
- // See `VisibilityRule`.
45
- google.api.VisibilityRule message_visibility = 72295727;
46
- }
47
-
48
- extend google.protobuf.MethodOptions {
49
- // See `VisibilityRule`.
50
- google.api.VisibilityRule method_visibility = 72295727;
51
- }
52
-
53
- extend google.protobuf.ServiceOptions {
54
- // See `VisibilityRule`.
55
- google.api.VisibilityRule api_visibility = 72295727;
56
- }
57
-
58
- // `Visibility` restricts service consumer's access to service elements,
59
- // such as whether an application can call a visibility-restricted method.
60
- // The restriction is expressed by applying visibility labels on service
61
- // elements. The visibility labels are elsewhere linked to service consumers.
62
- //
63
- // A service can define multiple visibility labels, but a service consumer
64
- // should be granted at most one visibility label. Multiple visibility
65
- // labels for a single service consumer are not supported.
66
- //
67
- // If an element and all its parents have no visibility label, its visibility
68
- // is unconditionally granted.
69
- //
70
- // Example:
71
- //
72
- // visibility:
73
- // rules:
74
- // - selector: google.calendar.Calendar.EnhancedSearch
75
- // restriction: PREVIEW
76
- // - selector: google.calendar.Calendar.Delegate
77
- // restriction: INTERNAL
78
- //
79
- // Here, all methods are publicly visible except for the restricted methods
80
- // EnhancedSearch and Delegate.
81
- message Visibility {
82
- // A list of visibility rules that apply to individual API elements.
83
- //
84
- // **NOTE:** All service configuration rules follow "last one wins" order.
85
- repeated VisibilityRule rules = 1;
86
- }
87
-
88
- // A visibility rule provides visibility configuration for an individual API
89
- // element.
90
- message VisibilityRule {
91
- // Selects methods, messages, fields, enums, etc. to which this rule applies.
92
- //
93
- // Refer to [selector][google.api.DocumentationRule.selector] for syntax
94
- // details.
95
- string selector = 1;
96
-
97
- // A comma-separated list of visibility labels that apply to the `selector`.
98
- // Any of the listed labels can be used to grant the visibility.
99
- //
100
- // If a rule has multiple labels, removing one of the labels but not all of
101
- // them can break clients.
102
- //
103
- // Example:
104
- //
105
- // visibility:
106
- // rules:
107
- // - selector: google.calendar.Calendar.EnhancedSearch
108
- // restriction: INTERNAL, PREVIEW
109
- //
110
- // Removing INTERNAL from this restriction will break clients that rely on
111
- // this method and only had access to it through INTERNAL.
112
- string restriction = 2;
113
- }
@@ -1,108 +0,0 @@
1
- // Copyright 2020 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
- syntax = "proto3";
16
-
17
- package google.cloud.location;
18
-
19
- import "google/api/annotations.proto";
20
- import "google/protobuf/any.proto";
21
- import "google/api/client.proto";
22
-
23
- option cc_enable_arenas = true;
24
- option go_package = "google.golang.org/genproto/googleapis/cloud/location;location";
25
- option java_multiple_files = true;
26
- option java_outer_classname = "LocationsProto";
27
- option java_package = "com.google.cloud.location";
28
-
29
- // An abstract interface that provides location-related information for
30
- // a service. Service-specific metadata is provided through the
31
- // [Location.metadata][google.cloud.location.Location.metadata] field.
32
- service Locations {
33
- option (google.api.default_host) = "cloud.googleapis.com";
34
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
35
-
36
- // Lists information about the supported locations for this service.
37
- rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse) {
38
- option (google.api.http) = {
39
- get: "/v1/{name=locations}"
40
- additional_bindings {
41
- get: "/v1/{name=projects/*}/locations"
42
- }
43
- };
44
- }
45
-
46
- // Gets information about a location.
47
- rpc GetLocation(GetLocationRequest) returns (Location) {
48
- option (google.api.http) = {
49
- get: "/v1/{name=locations/*}"
50
- additional_bindings {
51
- get: "/v1/{name=projects/*/locations/*}"
52
- }
53
- };
54
- }
55
- }
56
-
57
- // The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
58
- message ListLocationsRequest {
59
- // The resource that owns the locations collection, if applicable.
60
- string name = 1;
61
-
62
- // The standard list filter.
63
- string filter = 2;
64
-
65
- // The standard list page size.
66
- int32 page_size = 3;
67
-
68
- // The standard list page token.
69
- string page_token = 4;
70
- }
71
-
72
- // The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
73
- message ListLocationsResponse {
74
- // A list of locations that matches the specified filter in the request.
75
- repeated Location locations = 1;
76
-
77
- // The standard List next-page token.
78
- string next_page_token = 2;
79
- }
80
-
81
- // The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
82
- message GetLocationRequest {
83
- // Resource name for the location.
84
- string name = 1;
85
- }
86
-
87
- // A resource that represents Google Cloud Platform location.
88
- message Location {
89
- // Resource name for the location, which may vary between implementations.
90
- // For example: `"projects/example-project/locations/us-east1"`
91
- string name = 1;
92
-
93
- // The canonical id for this location. For example: `"us-east1"`.
94
- string location_id = 4;
95
-
96
- // The friendly name for this location, typically a nearby city name.
97
- // For example, "Tokyo".
98
- string display_name = 5;
99
-
100
- // Cross-service attributes for the location. For example
101
- //
102
- // {"cloud.googleapis.com/region": "us-east1"}
103
- map<string, string> labels = 2;
104
-
105
- // Service-specific metadata. For example the available capacity at the given
106
- // location.
107
- google.protobuf.Any metadata = 3;
108
- }
@@ -1,155 +0,0 @@
1
- // Copyright 2022 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
- syntax = "proto3";
16
-
17
- package google.iam.v1;
18
-
19
- import "google/api/annotations.proto";
20
- import "google/api/client.proto";
21
- import "google/api/field_behavior.proto";
22
- import "google/api/resource.proto";
23
- import "google/iam/v1/options.proto";
24
- import "google/iam/v1/policy.proto";
25
- import "google/protobuf/field_mask.proto";
26
-
27
- option cc_enable_arenas = true;
28
- option csharp_namespace = "Google.Cloud.Iam.V1";
29
- option go_package = "cloud.google.com/go/iam/apiv1/iampb;iampb";
30
- option java_multiple_files = true;
31
- option java_outer_classname = "IamPolicyProto";
32
- option java_package = "com.google.iam.v1";
33
- option php_namespace = "Google\\Cloud\\Iam\\V1";
34
-
35
- // API Overview
36
- //
37
- //
38
- // Manages Identity and Access Management (IAM) policies.
39
- //
40
- // Any implementation of an API that offers access control features
41
- // implements the google.iam.v1.IAMPolicy interface.
42
- //
43
- // ## Data model
44
- //
45
- // Access control is applied when a principal (user or service account), takes
46
- // some action on a resource exposed by a service. Resources, identified by
47
- // URI-like names, are the unit of access control specification. Service
48
- // implementations can choose the granularity of access control and the
49
- // supported permissions for their resources.
50
- // For example one database service may allow access control to be
51
- // specified only at the Table level, whereas another might allow access control
52
- // to also be specified at the Column level.
53
- //
54
- // ## Policy Structure
55
- //
56
- // See google.iam.v1.Policy
57
- //
58
- // This is intentionally not a CRUD style API because access control policies
59
- // are created and deleted implicitly with the resources to which they are
60
- // attached.
61
- service IAMPolicy {
62
- option (google.api.default_host) = "iam-meta-api.googleapis.com";
63
-
64
- // Sets the access control policy on the specified resource. Replaces any
65
- // existing policy.
66
- //
67
- // Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
68
- rpc SetIamPolicy(SetIamPolicyRequest) returns (Policy) {
69
- option (google.api.http) = {
70
- post: "/v1/{resource=**}:setIamPolicy"
71
- body: "*"
72
- };
73
- }
74
-
75
- // Gets the access control policy for a resource.
76
- // Returns an empty policy if the resource exists and does not have a policy
77
- // set.
78
- rpc GetIamPolicy(GetIamPolicyRequest) returns (Policy) {
79
- option (google.api.http) = {
80
- post: "/v1/{resource=**}:getIamPolicy"
81
- body: "*"
82
- };
83
- }
84
-
85
- // Returns permissions that a caller has on the specified resource.
86
- // If the resource does not exist, this will return an empty set of
87
- // permissions, not a `NOT_FOUND` error.
88
- //
89
- // Note: This operation is designed to be used for building permission-aware
90
- // UIs and command-line tools, not for authorization checking. This operation
91
- // may "fail open" without warning.
92
- rpc TestIamPermissions(TestIamPermissionsRequest) returns (TestIamPermissionsResponse) {
93
- option (google.api.http) = {
94
- post: "/v1/{resource=**}:testIamPermissions"
95
- body: "*"
96
- };
97
- }
98
- }
99
-
100
- // Request message for `SetIamPolicy` method.
101
- message SetIamPolicyRequest {
102
- // REQUIRED: The resource for which the policy is being specified.
103
- // See the operation documentation for the appropriate value for this field.
104
- string resource = 1 [
105
- (google.api.field_behavior) = REQUIRED,
106
- (google.api.resource_reference).type = "*"];
107
-
108
- // REQUIRED: The complete policy to be applied to the `resource`. The size of
109
- // the policy is limited to a few 10s of KB. An empty policy is a
110
- // valid policy but certain Cloud Platform services (such as Projects)
111
- // might reject them.
112
- Policy policy = 2 [(google.api.field_behavior) = REQUIRED];
113
-
114
- // OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
115
- // the fields in the mask will be modified. If no mask is provided, the
116
- // following default mask is used:
117
- //
118
- // `paths: "bindings, etag"`
119
- google.protobuf.FieldMask update_mask = 3;
120
- }
121
-
122
- // Request message for `GetIamPolicy` method.
123
- message GetIamPolicyRequest {
124
- // REQUIRED: The resource for which the policy is being requested.
125
- // See the operation documentation for the appropriate value for this field.
126
- string resource = 1 [
127
- (google.api.field_behavior) = REQUIRED,
128
- (google.api.resource_reference).type = "*"];
129
-
130
- // OPTIONAL: A `GetPolicyOptions` object for specifying options to
131
- // `GetIamPolicy`.
132
- GetPolicyOptions options = 2;
133
- }
134
-
135
- // Request message for `TestIamPermissions` method.
136
- message TestIamPermissionsRequest {
137
- // REQUIRED: The resource for which the policy detail is being requested.
138
- // See the operation documentation for the appropriate value for this field.
139
- string resource = 1[
140
- (google.api.field_behavior) = REQUIRED,
141
- (google.api.resource_reference).type = "*"];
142
-
143
- // The set of permissions to check for the `resource`. Permissions with
144
- // wildcards (such as '*' or 'storage.*') are not allowed. For more
145
- // information see
146
- // [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
147
- repeated string permissions = 2 [(google.api.field_behavior) = REQUIRED];
148
- }
149
-
150
- // Response message for `TestIamPermissions` method.
151
- message TestIamPermissionsResponse {
152
- // A subset of `TestPermissionsRequest.permissions` that the caller is
153
- // allowed.
154
- repeated string permissions = 1;
155
- }
@@ -1,33 +0,0 @@
1
- // Copyright 2017 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
- syntax = "proto3";
16
-
17
- package google.iam.v1.logging;
18
-
19
- import "google/iam/v1/policy.proto";
20
-
21
- option csharp_namespace = "Google.Cloud.Iam.V1.Logging";
22
- option go_package = "cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb";
23
- option java_multiple_files = true;
24
- option java_outer_classname = "AuditDataProto";
25
- option java_package = "com.google.iam.v1.logging";
26
-
27
- // Audit log information specific to Cloud IAM. This message is serialized
28
- // as an `Any` type in the `ServiceData` message of an
29
- // `AuditLog` message.
30
- message AuditData {
31
- // Policy delta between the original policy and the newly set policy.
32
- google.iam.v1.PolicyDelta policy_delta = 2;
33
- }
@@ -1,48 +0,0 @@
1
- // Copyright 2022 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
- syntax = "proto3";
16
-
17
- package google.iam.v1;
18
-
19
- option cc_enable_arenas = true;
20
- option csharp_namespace = "Google.Cloud.Iam.V1";
21
- option go_package = "cloud.google.com/go/iam/apiv1/iampb;iampb";
22
- option java_multiple_files = true;
23
- option java_outer_classname = "OptionsProto";
24
- option java_package = "com.google.iam.v1";
25
- option php_namespace = "Google\\Cloud\\Iam\\V1";
26
-
27
- // Encapsulates settings provided to GetIamPolicy.
28
- message GetPolicyOptions {
29
- // Optional. The maximum policy version that will be used to format the
30
- // policy.
31
- //
32
- // Valid values are 0, 1, and 3. Requests specifying an invalid value will be
33
- // rejected.
34
- //
35
- // Requests for policies with any conditional role bindings must specify
36
- // version 3. Policies with no conditional role bindings may specify any valid
37
- // value or leave the field unset.
38
- //
39
- // The policy in the response might use the policy version that you specified,
40
- // or it might use a lower policy version. For example, if you specify version
41
- // 3, but the policy has no conditional role bindings, the response uses
42
- // version 1.
43
- //
44
- // To learn which resources support conditions in their IAM policies, see the
45
- // [IAM
46
- // documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
47
- int32 requested_policy_version = 1;
48
- }