@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,322 +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.cloudquotas.v1;
18
-
19
- import "google/api/annotations.proto";
20
- import "google/api/client.proto";
21
- import "google/api/cloudquotas/v1/resources.proto";
22
- import "google/api/field_behavior.proto";
23
- import "google/api/resource.proto";
24
- import "google/protobuf/field_mask.proto";
25
-
26
- option csharp_namespace = "Google.Cloud.CloudQuotas.V1";
27
- option go_package = "cloud.google.com/go/cloudquotas/apiv1/cloudquotaspb;cloudquotaspb";
28
- option java_multiple_files = true;
29
- option java_outer_classname = "CloudquotasProto";
30
- option java_package = "com.google.api.cloudquotas.v1";
31
- option php_namespace = "Google\\Cloud\\CloudQuotas\\V1";
32
- option ruby_package = "Google::Cloud::CloudQuotas::V1";
33
- option (google.api.resource_definition) = {
34
- type: "cloudquotas.googleapis.com/Service"
35
- pattern: "projects/{project}/locations/{location}/services/{service}"
36
- pattern: "folders/{folder}/locations/{location}/services/{service}"
37
- pattern: "organizations/{organization}/locations/{location}/services/{service}"
38
- };
39
- option (google.api.resource_definition) = {
40
- type: "cloudquotas.googleapis.com/Location"
41
- pattern: "projects/{project}/locations/{location}"
42
- pattern: "folders/{folder}/locations/{location}"
43
- pattern: "organizations/{organization}/locations/{location}"
44
- };
45
-
46
- // The Cloud Quotas API is an infrastructure service for Google Cloud that lets
47
- // service consumers list and manage their resource usage limits.
48
- //
49
- // - List/Get the metadata and current status of the quotas for a service.
50
- // - Create/Update quota preferencess that declare the preferred quota values.
51
- // - Check the status of a quota preference request.
52
- // - List/Get pending and historical quota preference.
53
- service CloudQuotas {
54
- option (google.api.default_host) = "cloudquotas.googleapis.com";
55
- option (google.api.oauth_scopes) =
56
- "https://www.googleapis.com/auth/cloud-platform";
57
-
58
- // Lists QuotaInfos of all quotas for a given project, folder or organization.
59
- rpc ListQuotaInfos(ListQuotaInfosRequest) returns (ListQuotaInfosResponse) {
60
- option (google.api.http) = {
61
- get: "/v1/{parent=projects/*/locations/*/services/*}/quotaInfos"
62
- additional_bindings {
63
- get: "/v1/{parent=organizations/*/locations/*/services/*}/quotaInfos"
64
- }
65
- additional_bindings {
66
- get: "/v1/{parent=folders/*/locations/*/services/*}/quotaInfos"
67
- }
68
- };
69
- option (google.api.method_signature) = "parent";
70
- }
71
-
72
- // Retrieve the QuotaInfo of a quota for a project, folder or organization.
73
- rpc GetQuotaInfo(GetQuotaInfoRequest) returns (QuotaInfo) {
74
- option (google.api.http) = {
75
- get: "/v1/{name=projects/*/locations/*/services/*/quotaInfos/*}"
76
- additional_bindings {
77
- get: "/v1/{name=organizations/*/locations/*/services/*/quotaInfos/*}"
78
- }
79
- additional_bindings {
80
- get: "/v1/{name=folders/*/locations/*/services/*/quotaInfos/*}"
81
- }
82
- };
83
- option (google.api.method_signature) = "name";
84
- }
85
-
86
- // Lists QuotaPreferences in a given project, folder or organization.
87
- rpc ListQuotaPreferences(ListQuotaPreferencesRequest)
88
- returns (ListQuotaPreferencesResponse) {
89
- option (google.api.http) = {
90
- get: "/v1/{parent=projects/*/locations/*}/quotaPreferences"
91
- additional_bindings {
92
- get: "/v1/{parent=folders/*/locations/*}/quotaPreferences"
93
- }
94
- additional_bindings {
95
- get: "/v1/{parent=organizations/*/locations/*}/quotaPreferences"
96
- }
97
- };
98
- option (google.api.method_signature) = "parent";
99
- }
100
-
101
- // Gets details of a single QuotaPreference.
102
- rpc GetQuotaPreference(GetQuotaPreferenceRequest) returns (QuotaPreference) {
103
- option (google.api.http) = {
104
- get: "/v1/{name=projects/*/locations/*/quotaPreferences/*}"
105
- additional_bindings {
106
- get: "/v1/{name=organizations/*/locations/*/quotaPreferences/*}"
107
- }
108
- additional_bindings {
109
- get: "/v1/{name=folders/*/locations/*/quotaPreferences/*}"
110
- }
111
- };
112
- option (google.api.method_signature) = "name";
113
- }
114
-
115
- // Creates a new QuotaPreference that declares the desired value for a quota.
116
- rpc CreateQuotaPreference(CreateQuotaPreferenceRequest)
117
- returns (QuotaPreference) {
118
- option (google.api.http) = {
119
- post: "/v1/{parent=projects/*/locations/*}/quotaPreferences"
120
- body: "quota_preference"
121
- additional_bindings {
122
- post: "/v1/{parent=folders/*/locations/*}/quotaPreferences"
123
- body: "quota_preference"
124
- }
125
- additional_bindings {
126
- post: "/v1/{parent=organizations/*/locations/*}/quotaPreferences"
127
- body: "quota_preference"
128
- }
129
- };
130
- option (google.api.method_signature) =
131
- "parent,quota_preference,quota_preference_id";
132
- option (google.api.method_signature) = "parent,quota_preference";
133
- }
134
-
135
- // Updates the parameters of a single QuotaPreference. It can updates the
136
- // config in any states, not just the ones pending approval.
137
- rpc UpdateQuotaPreference(UpdateQuotaPreferenceRequest)
138
- returns (QuotaPreference) {
139
- option (google.api.http) = {
140
- patch: "/v1/{quota_preference.name=projects/*/locations/*/quotaPreferences/*}"
141
- body: "quota_preference"
142
- additional_bindings {
143
- patch: "/v1/{quota_preference.name=folders/*/locations/*/quotaPreferences/*}"
144
- body: "quota_preference"
145
- }
146
- additional_bindings {
147
- patch: "/v1/{quota_preference.name=organizations/*/locations/*/quotaPreferences/*}"
148
- body: "quota_preference"
149
- }
150
- };
151
- option (google.api.method_signature) = "quota_preference,update_mask";
152
- }
153
- }
154
-
155
- // Message for requesting list of QuotaInfos
156
- message ListQuotaInfosRequest {
157
- // Required. Parent value of QuotaInfo resources.
158
- // Listing across different resource containers (such as 'projects/-') is not
159
- // allowed.
160
- //
161
- // Example names:
162
- // `projects/123/locations/global/services/compute.googleapis.com`
163
- // `folders/234/locations/global/services/compute.googleapis.com`
164
- // `organizations/345/locations/global/services/compute.googleapis.com`
165
- string parent = 1 [
166
- (google.api.field_behavior) = REQUIRED,
167
- (google.api.resource_reference) = {
168
- child_type: "cloudquotas.googleapis.com/QuotaInfo"
169
- }
170
- ];
171
-
172
- // Optional. Requested page size. Server may return fewer items than
173
- // requested. If unspecified, server will pick an appropriate default.
174
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
175
-
176
- // Optional. A token identifying a page of results the server should return.
177
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
178
- }
179
-
180
- // Message for response to listing QuotaInfos
181
- message ListQuotaInfosResponse {
182
- // The list of QuotaInfo
183
- repeated QuotaInfo quota_infos = 1;
184
-
185
- // A token, which can be sent as `page_token` to retrieve the next page.
186
- // If this field is omitted, there are no subsequent pages.
187
- string next_page_token = 2;
188
- }
189
-
190
- // Message for getting a QuotaInfo
191
- message GetQuotaInfoRequest {
192
- // Required. The resource name of the quota info.
193
- //
194
- // An example name:
195
- // `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion`
196
- string name = 1 [
197
- (google.api.field_behavior) = REQUIRED,
198
- (google.api.resource_reference) = {
199
- type: "cloudquotas.googleapis.com/QuotaInfo"
200
- }
201
- ];
202
- }
203
-
204
- // Message for requesting list of QuotaPreferences
205
- message ListQuotaPreferencesRequest {
206
- // Required. Parent value of QuotaPreference resources.
207
- // Listing across different resource containers (such as 'projects/-') is not
208
- // allowed.
209
- //
210
- // When the value starts with 'folders' or 'organizations', it lists the
211
- // QuotaPreferences for org quotas in the container. It does not list the
212
- // QuotaPreferences in the descendant projects of the container.
213
- //
214
- // Example parents:
215
- // `projects/123/locations/global`
216
- string parent = 1 [
217
- (google.api.field_behavior) = REQUIRED,
218
- (google.api.resource_reference) = {
219
- child_type: "cloudquotas.googleapis.com/QuotaPreference"
220
- }
221
- ];
222
-
223
- // Optional. Requested page size. Server may return fewer items than
224
- // requested. If unspecified, server will pick an appropriate default.
225
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
226
-
227
- // Optional. A token identifying a page of results the server should return.
228
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
229
-
230
- // Optional. Filter result QuotaPreferences by their state, type,
231
- // create/update time range.
232
- //
233
- // Example filters:
234
- // `reconciling=true AND request_type=CLOUD_CONSOLE`,
235
- // `reconciling=true OR creation_time>2022-12-03T10:30:00`
236
- string filter = 4 [(google.api.field_behavior) = OPTIONAL];
237
-
238
- // Optional. How to order of the results. By default, the results are ordered
239
- // by create time.
240
- //
241
- // Example orders:
242
- // `quota_id`,
243
- // `service, create_time`
244
- string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
245
- }
246
-
247
- // Message for response to listing QuotaPreferences
248
- message ListQuotaPreferencesResponse {
249
- // The list of QuotaPreference
250
- repeated QuotaPreference quota_preferences = 1;
251
-
252
- // A token, which can be sent as `page_token` to retrieve the next page.
253
- // If this field is omitted, there are no subsequent pages.
254
- string next_page_token = 2;
255
-
256
- // Locations that could not be reached.
257
- repeated string unreachable = 3;
258
- }
259
-
260
- // Message for getting a QuotaPreference
261
- message GetQuotaPreferenceRequest {
262
- // Required. Name of the resource
263
- //
264
- // Example name:
265
- // `projects/123/locations/global/quota_preferences/my-config-for-us-east1`
266
- string name = 1 [
267
- (google.api.field_behavior) = REQUIRED,
268
- (google.api.resource_reference) = {
269
- type: "cloudquotas.googleapis.com/QuotaPreference"
270
- }
271
- ];
272
- }
273
-
274
- // Message for creating a QuotaPreference
275
- message CreateQuotaPreferenceRequest {
276
- // Required. Value for parent.
277
- //
278
- // Example:
279
- // `projects/123/locations/global`
280
- string parent = 1 [
281
- (google.api.field_behavior) = REQUIRED,
282
- (google.api.resource_reference) = {
283
- child_type: "cloudquotas.googleapis.com/QuotaPreference"
284
- }
285
- ];
286
-
287
- // Optional. Id of the requesting object, must be unique under its parent.
288
- // If client does not set this field, the service will generate one.
289
- string quota_preference_id = 2 [(google.api.field_behavior) = OPTIONAL];
290
-
291
- // Required. The resource being created
292
- QuotaPreference quota_preference = 3 [(google.api.field_behavior) = REQUIRED];
293
-
294
- // The list of quota safety checks to be ignored.
295
- repeated QuotaSafetyCheck ignore_safety_checks = 4;
296
- }
297
-
298
- // Message for updating a QuotaPreference
299
- message UpdateQuotaPreferenceRequest {
300
- // Optional. Field mask is used to specify the fields to be overwritten in the
301
- // QuotaPreference resource by the update.
302
- // The fields specified in the update_mask are relative to the resource, not
303
- // the full request. A field will be overwritten if it is in the mask. If the
304
- // user does not provide a mask then all fields will be overwritten.
305
- google.protobuf.FieldMask update_mask = 1
306
- [(google.api.field_behavior) = OPTIONAL];
307
-
308
- // Required. The resource being updated
309
- QuotaPreference quota_preference = 2 [(google.api.field_behavior) = REQUIRED];
310
-
311
- // Optional. If set to true, and the quota preference is not found, a new one
312
- // will be created. In this situation, `update_mask` is ignored.
313
- bool allow_missing = 3 [(google.api.field_behavior) = OPTIONAL];
314
-
315
- // Optional. If set to true, validate the request, but do not actually update.
316
- // Note that a request being valid does not mean that the request is
317
- // guaranteed to be fulfilled.
318
- bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
319
-
320
- // The list of quota safety checks to be ignored.
321
- repeated QuotaSafetyCheck ignore_safety_checks = 5;
322
- }
@@ -1,311 +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.cloudquotas.v1;
18
-
19
- import "google/api/field_behavior.proto";
20
- import "google/api/resource.proto";
21
- import "google/protobuf/timestamp.proto";
22
- import "google/protobuf/wrappers.proto";
23
-
24
- option csharp_namespace = "Google.Cloud.CloudQuotas.V1";
25
- option go_package = "cloud.google.com/go/cloudquotas/apiv1/cloudquotaspb;cloudquotaspb";
26
- option java_multiple_files = true;
27
- option java_outer_classname = "ResourcesProto";
28
- option java_package = "com.google.api.cloudquotas.v1";
29
- option php_namespace = "Google\\Cloud\\CloudQuotas\\V1";
30
- option ruby_package = "Google::Cloud::CloudQuotas::V1";
31
-
32
- // Enumerations of quota safety checks.
33
- enum QuotaSafetyCheck {
34
- // Unspecified quota safety check.
35
- QUOTA_SAFETY_CHECK_UNSPECIFIED = 0;
36
-
37
- // Validates that a quota mutation would not cause the consumer's effective
38
- // limit to be lower than the consumer's quota usage.
39
- QUOTA_DECREASE_BELOW_USAGE = 1;
40
-
41
- // Validates that a quota mutation would not cause the consumer's effective
42
- // limit to decrease by more than 10 percent.
43
- QUOTA_DECREASE_PERCENTAGE_TOO_HIGH = 2;
44
- }
45
-
46
- // QuotaInfo represents information about a particular quota for a given
47
- // project, folder or organization.
48
- message QuotaInfo {
49
- option (google.api.resource) = {
50
- type: "cloudquotas.googleapis.com/QuotaInfo"
51
- pattern: "projects/{project}/locations/{location}/services/{service}/quotaInfos/{quota_info}"
52
- pattern: "folders/{folder}/locations/{location}/services/{service}/quotaInfos/{quota_info}"
53
- pattern: "organizations/{organization}/locations/{location}/services/{service}/quotaInfos/{quota_info}"
54
- };
55
-
56
- // The enumeration of the types of a cloud resource container.
57
- enum ContainerType {
58
- // Unspecified container type.
59
- CONTAINER_TYPE_UNSPECIFIED = 0;
60
-
61
- // consumer project
62
- PROJECT = 1;
63
-
64
- // folder
65
- FOLDER = 2;
66
-
67
- // organization
68
- ORGANIZATION = 3;
69
- }
70
-
71
- // Resource name of this QuotaInfo.
72
- // The ID component following "locations/" must be "global".
73
- // Example:
74
- // `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion`
75
- string name = 1;
76
-
77
- // The id of the quota, which is unquie within the service.
78
- // Example: `CpusPerProjectPerRegion`
79
- string quota_id = 2;
80
-
81
- // The metric of the quota. It specifies the resources consumption the quota
82
- // is defined for.
83
- // Example: `compute.googleapis.com/cpus`
84
- string metric = 3;
85
-
86
- // The name of the service in which the quota is defined.
87
- // Example: `compute.googleapis.com`
88
- string service = 4;
89
-
90
- // Whether this is a precise quota. A precise quota is tracked with absolute
91
- // precision. In contrast, an imprecise quota is not tracked with precision.
92
- bool is_precise = 5;
93
-
94
- // The reset time interval for the quota. Refresh interval applies to rate
95
- // quota only.
96
- // Example: "minute" for per minute, "day" for per day, or "10 seconds" for
97
- // every 10 seconds.
98
- string refresh_interval = 6;
99
-
100
- // The container type of the QuotaInfo.
101
- ContainerType container_type = 7;
102
-
103
- // The dimensions the quota is defined on.
104
- repeated string dimensions = 8;
105
-
106
- // The display name of the quota metric
107
- string metric_display_name = 9;
108
-
109
- // The display name of the quota.
110
- string quota_display_name = 10;
111
-
112
- // The unit in which the metric value is reported, e.g., "MByte".
113
- string metric_unit = 11;
114
-
115
- // Whether it is eligible to request a higher quota value for this quota.
116
- QuotaIncreaseEligibility quota_increase_eligibility = 12;
117
-
118
- // Whether the quota value is fixed or adjustable
119
- bool is_fixed = 13;
120
-
121
- // The collection of dimensions info ordered by their dimensions from more
122
- // specific ones to less specific ones.
123
- repeated DimensionsInfo dimensions_infos = 14;
124
-
125
- // Whether the quota is a concurrent quota. Concurrent quotas are enforced
126
- // on the total number of concurrent operations in flight at any given time.
127
- bool is_concurrent = 15;
128
-
129
- // URI to the page where the user can request more quotas for the cloud
130
- // service, such as
131
- // https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0={email}&entry_1={id}.
132
- // Google Developers Console UI replace {email} with the current
133
- // user's e-mail, {id} with the current project number, or organization ID
134
- // with "organizations/" prefix. For example,
135
- // https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0=johndoe@gmail.com&entry_1=25463754,
136
- // or
137
- // https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0=johndoe@gmail.com&entry_1=organizations/26474422.
138
- string service_request_quota_uri = 17;
139
- }
140
-
141
- // Eligibility information regarding requesting increase adjustment of a quota.
142
- message QuotaIncreaseEligibility {
143
- // The enumeration of reasons when it is ineligible to request increase
144
- // adjustment.
145
- enum IneligibilityReason {
146
- // Default value when is_eligible is true.
147
- INELIGIBILITY_REASON_UNSPECIFIED = 0;
148
-
149
- // The container is not linked with a valid billing account.
150
- NO_VALID_BILLING_ACCOUNT = 1;
151
-
152
- // Other reasons.
153
- OTHER = 2;
154
- }
155
-
156
- // Whether a higher quota value can be requested for the quota.
157
- bool is_eligible = 1;
158
-
159
- // The reason of why it is ineligible to request increased value of the quota.
160
- // If the is_eligible field is true, it defaults to
161
- // INELIGIBILITY_REASON_UNSPECIFIED.
162
- IneligibilityReason ineligibility_reason = 2;
163
- }
164
-
165
- // QuotaPreference represents the preferred quota configuration specified for
166
- // a project, folder or organization. There is only one QuotaPreference
167
- // resource for a quota value targeting a unique set of dimensions.
168
- message QuotaPreference {
169
- option (google.api.resource) = {
170
- type: "cloudquotas.googleapis.com/QuotaPreference"
171
- pattern: "projects/{project}/locations/{location}/quotaPreferences/{quota_preference}"
172
- pattern: "folders/{folder}/locations/{location}/quotaPreferences/{quota_preference}"
173
- pattern: "organizations/{organization}/locations/{location}/quotaPreferences/{quota_preference}"
174
- };
175
-
176
- // Required except in the CREATE requests.
177
- // The resource name of the quota preference.
178
- // The ID component following "locations/" must be "global".
179
- // Example:
180
- // `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
181
- string name = 1;
182
-
183
- // Immutable. The dimensions that this quota preference applies to. The key of
184
- // the map entry is the name of a dimension, such as "region", "zone",
185
- // "network_id", and the value of the map entry is the dimension value.
186
- //
187
- // If a dimension is missing from the map of dimensions, the quota preference
188
- // applies to all the dimension values except for those that have other quota
189
- // preferences configured for the specific value.
190
- //
191
- // NOTE: QuotaPreferences can only be applied across all values of "user" and
192
- // "resource" dimension. Do not set values for "user" or "resource" in the
193
- // dimension map.
194
- //
195
- // Example: {"provider", "Foo Inc"} where "provider" is a service specific
196
- // dimension.
197
- map<string, string> dimensions = 2 [(google.api.field_behavior) = IMMUTABLE];
198
-
199
- // Required. Preferred quota configuration.
200
- QuotaConfig quota_config = 3 [(google.api.field_behavior) = REQUIRED];
201
-
202
- // Optional. The current etag of the quota preference. If an etag is provided
203
- // on update and does not match the current server's etag of the quota
204
- // preference, the request will be blocked and an ABORTED error will be
205
- // returned. See https://google.aip.dev/134#etags for more details on etags.
206
- string etag = 4 [(google.api.field_behavior) = OPTIONAL];
207
-
208
- // Output only. Create time stamp
209
- google.protobuf.Timestamp create_time = 5
210
- [(google.api.field_behavior) = OUTPUT_ONLY];
211
-
212
- // Output only. Update time stamp
213
- google.protobuf.Timestamp update_time = 6
214
- [(google.api.field_behavior) = OUTPUT_ONLY];
215
-
216
- // Required. The name of the service to which the quota preference is applied.
217
- string service = 7 [(google.api.field_behavior) = REQUIRED];
218
-
219
- // Required. The id of the quota to which the quota preference is applied. A
220
- // quota name is unique in the service. Example: `CpusPerProjectPerRegion`
221
- string quota_id = 8 [(google.api.field_behavior) = REQUIRED];
222
-
223
- // Output only. Is the quota preference pending Google Cloud approval and
224
- // fulfillment.
225
- bool reconciling = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
226
-
227
- // The reason / justification for this quota preference.
228
- string justification = 11;
229
-
230
- // Required. Input only. An email address that can be used for quota related
231
- // communication between the Google Cloud and the user in case the Google
232
- // Cloud needs further information to make a decision on whether the user
233
- // preferred quota can be granted.
234
- //
235
- // The Google account for the email address must have quota update permission
236
- // for the project, folder or organization this quota preference is for.
237
- string contact_email = 12 [
238
- (google.api.field_behavior) = INPUT_ONLY,
239
- (google.api.field_behavior) = REQUIRED
240
- ];
241
- }
242
-
243
- // The preferred quota configuration.
244
- message QuotaConfig {
245
- // The enumeration of the origins of quota preference requests.
246
- enum Origin {
247
- // The unspecified value.
248
- ORIGIN_UNSPECIFIED = 0;
249
-
250
- // Created through Cloud Console.
251
- CLOUD_CONSOLE = 1;
252
-
253
- // Generated by automatic quota adjustment.
254
- AUTO_ADJUSTER = 2;
255
- }
256
-
257
- // Required. The preferred value. Must be greater than or equal to -1. If set
258
- // to -1, it means the value is "unlimited".
259
- int64 preferred_value = 1 [(google.api.field_behavior) = REQUIRED];
260
-
261
- // Output only. Optional details about the state of this quota preference.
262
- string state_detail = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
263
-
264
- // Output only. Granted quota value.
265
- google.protobuf.Int64Value granted_value = 3
266
- [(google.api.field_behavior) = OUTPUT_ONLY];
267
-
268
- // Output only. The trace id that the Google Cloud uses to provision the
269
- // requested quota. This trace id may be used by the client to contact Cloud
270
- // support to track the state of a quota preference request. The trace id is
271
- // only produced for increase requests and is unique for each request. The
272
- // quota decrease requests do not have a trace id.
273
- string trace_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
274
-
275
- // Optional. The annotations map for clients to store small amounts of
276
- // arbitrary data. Do not put PII or other sensitive information here. See
277
- // https://google.aip.dev/128#annotations
278
- map<string, string> annotations = 5 [(google.api.field_behavior) = OPTIONAL];
279
-
280
- // Output only. The origin of the quota preference request.
281
- Origin request_origin = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
282
- }
283
-
284
- // The detailed quota information such as effective quota value for a
285
- // combination of dimensions.
286
- message DimensionsInfo {
287
- // The map of dimensions for this dimensions info. The key of a map entry
288
- // is "region", "zone" or the name of a service specific dimension, and the
289
- // value of a map entry is the value of the dimension. If a dimension does
290
- // not appear in the map of dimensions, the dimensions info applies to all
291
- // the dimension values except for those that have another DimenisonInfo
292
- // instance configured for the specific value.
293
- // Example: {"provider" : "Foo Inc"} where "provider" is a service specific
294
- // dimension of a quota.
295
- map<string, string> dimensions = 1;
296
-
297
- // Quota details for the specified dimensions.
298
- QuotaDetails details = 2;
299
-
300
- // The applicable regions or zones of this dimensions info. The field will be
301
- // set to ['global'] for quotas that are not per region or per zone.
302
- // Otherwise, it will be set to the list of locations this dimension info is
303
- // applicable to.
304
- repeated string applicable_locations = 3;
305
- }
306
-
307
- // The quota details for a map of dimensions.
308
- message QuotaDetails {
309
- // The value currently in effect and being enforced.
310
- int64 value = 1;
311
- }