@hyperlane-xyz/cli 16.2.0 → 17.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 (191) hide show
  1. package/cli-bundle/index.js +1228 -506
  2. package/cli-bundle/prebuilds/linux-x64/node.napi.glibc.node +0 -0
  3. package/cli-bundle/prebuilds/linux-x64/node.napi.glibc1.node +0 -0
  4. package/package.json +5 -5
  5. package/cli-bundle/798.index.js +0 -169715
  6. package/cli-bundle/proto/channelz.proto +0 -564
  7. package/cli-bundle/protos/compute_operations.d.ts +0 -7304
  8. package/cli-bundle/protos/compute_operations.js +0 -1
  9. package/cli-bundle/protos/compute_operations.json +0 -1
  10. package/cli-bundle/protos/google/api/annotations.proto +0 -31
  11. package/cli-bundle/protos/google/api/apikeys/v2/apikeys.proto +0 -288
  12. package/cli-bundle/protos/google/api/apikeys/v2/resources.proto +0 -175
  13. package/cli-bundle/protos/google/api/auth.proto +0 -237
  14. package/cli-bundle/protos/google/api/backend.proto +0 -185
  15. package/cli-bundle/protos/google/api/billing.proto +0 -77
  16. package/cli-bundle/protos/google/api/client.proto +0 -427
  17. package/cli-bundle/protos/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
  18. package/cli-bundle/protos/google/api/cloudquotas/v1/resources.proto +0 -311
  19. package/cli-bundle/protos/google/api/config_change.proto +0 -84
  20. package/cli-bundle/protos/google/api/consumer.proto +0 -82
  21. package/cli-bundle/protos/google/api/context.proto +0 -90
  22. package/cli-bundle/protos/google/api/control.proto +0 -41
  23. package/cli-bundle/protos/google/api/distribution.proto +0 -213
  24. package/cli-bundle/protos/google/api/documentation.proto +0 -168
  25. package/cli-bundle/protos/google/api/endpoint.proto +0 -73
  26. package/cli-bundle/protos/google/api/error_reason.proto +0 -589
  27. package/cli-bundle/protos/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
  28. package/cli-bundle/protos/google/api/expr/v1alpha1/checked.proto +0 -343
  29. package/cli-bundle/protos/google/api/expr/v1alpha1/eval.proto +0 -118
  30. package/cli-bundle/protos/google/api/expr/v1alpha1/explain.proto +0 -53
  31. package/cli-bundle/protos/google/api/expr/v1alpha1/syntax.proto +0 -400
  32. package/cli-bundle/protos/google/api/expr/v1alpha1/value.proto +0 -115
  33. package/cli-bundle/protos/google/api/expr/v1beta1/decl.proto +0 -84
  34. package/cli-bundle/protos/google/api/expr/v1beta1/eval.proto +0 -125
  35. package/cli-bundle/protos/google/api/expr/v1beta1/expr.proto +0 -265
  36. package/cli-bundle/protos/google/api/expr/v1beta1/source.proto +0 -62
  37. package/cli-bundle/protos/google/api/expr/v1beta1/value.proto +0 -114
  38. package/cli-bundle/protos/google/api/field_behavior.proto +0 -104
  39. package/cli-bundle/protos/google/api/field_info.proto +0 -79
  40. package/cli-bundle/protos/google/api/http.proto +0 -379
  41. package/cli-bundle/protos/google/api/httpbody.proto +0 -81
  42. package/cli-bundle/protos/google/api/label.proto +0 -48
  43. package/cli-bundle/protos/google/api/launch_stage.proto +0 -72
  44. package/cli-bundle/protos/google/api/log.proto +0 -54
  45. package/cli-bundle/protos/google/api/logging.proto +0 -81
  46. package/cli-bundle/protos/google/api/metric.proto +0 -268
  47. package/cli-bundle/protos/google/api/monitored_resource.proto +0 -130
  48. package/cli-bundle/protos/google/api/monitoring.proto +0 -107
  49. package/cli-bundle/protos/google/api/policy.proto +0 -85
  50. package/cli-bundle/protos/google/api/quota.proto +0 -184
  51. package/cli-bundle/protos/google/api/resource.proto +0 -238
  52. package/cli-bundle/protos/google/api/routing.proto +0 -461
  53. package/cli-bundle/protos/google/api/service.proto +0 -191
  54. package/cli-bundle/protos/google/api/servicecontrol/v1/check_error.proto +0 -124
  55. package/cli-bundle/protos/google/api/servicecontrol/v1/distribution.proto +0 -166
  56. package/cli-bundle/protos/google/api/servicecontrol/v1/http_request.proto +0 -93
  57. package/cli-bundle/protos/google/api/servicecontrol/v1/log_entry.proto +0 -126
  58. package/cli-bundle/protos/google/api/servicecontrol/v1/metric_value.proto +0 -81
  59. package/cli-bundle/protos/google/api/servicecontrol/v1/operation.proto +0 -123
  60. package/cli-bundle/protos/google/api/servicecontrol/v1/quota_controller.proto +0 -245
  61. package/cli-bundle/protos/google/api/servicecontrol/v1/service_controller.proto +0 -260
  62. package/cli-bundle/protos/google/api/servicecontrol/v2/service_controller.proto +0 -196
  63. package/cli-bundle/protos/google/api/servicemanagement/v1/resources.proto +0 -295
  64. package/cli-bundle/protos/google/api/servicemanagement/v1/servicemanager.proto +0 -508
  65. package/cli-bundle/protos/google/api/serviceusage/v1/resources.proto +0 -130
  66. package/cli-bundle/protos/google/api/serviceusage/v1/serviceusage.proto +0 -305
  67. package/cli-bundle/protos/google/api/serviceusage/v1beta1/resources.proto +0 -458
  68. package/cli-bundle/protos/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
  69. package/cli-bundle/protos/google/api/source_info.proto +0 -31
  70. package/cli-bundle/protos/google/api/system_parameter.proto +0 -96
  71. package/cli-bundle/protos/google/api/usage.proto +0 -96
  72. package/cli-bundle/protos/google/api/visibility.proto +0 -113
  73. package/cli-bundle/protos/google/cloud/location/locations.proto +0 -108
  74. package/cli-bundle/protos/google/iam/v1/iam_policy.proto +0 -155
  75. package/cli-bundle/protos/google/iam/v1/logging/audit_data.proto +0 -33
  76. package/cli-bundle/protos/google/iam/v1/options.proto +0 -48
  77. package/cli-bundle/protos/google/iam/v1/policy.proto +0 -410
  78. package/cli-bundle/protos/google/logging/type/http_request.proto +0 -95
  79. package/cli-bundle/protos/google/logging/type/log_severity.proto +0 -71
  80. package/cli-bundle/protos/google/longrunning/operations.proto +0 -247
  81. package/cli-bundle/protos/google/monitoring/v3/alert.proto +0 -669
  82. package/cli-bundle/protos/google/monitoring/v3/alert_service.proto +0 -256
  83. package/cli-bundle/protos/google/monitoring/v3/common.proto +0 -488
  84. package/cli-bundle/protos/google/monitoring/v3/dropped_labels.proto +0 -46
  85. package/cli-bundle/protos/google/monitoring/v3/group.proto +0 -90
  86. package/cli-bundle/protos/google/monitoring/v3/group_service.proto +0 -290
  87. package/cli-bundle/protos/google/monitoring/v3/metric.proto +0 -239
  88. package/cli-bundle/protos/google/monitoring/v3/metric_service.proto +0 -522
  89. package/cli-bundle/protos/google/monitoring/v3/mutation_record.proto +0 -36
  90. package/cli-bundle/protos/google/monitoring/v3/notification.proto +0 -195
  91. package/cli-bundle/protos/google/monitoring/v3/notification_service.proto +0 -448
  92. package/cli-bundle/protos/google/monitoring/v3/query_service.proto +0 -48
  93. package/cli-bundle/protos/google/monitoring/v3/service.proto +0 -457
  94. package/cli-bundle/protos/google/monitoring/v3/service_service.proto +0 -352
  95. package/cli-bundle/protos/google/monitoring/v3/snooze.proto +0 -78
  96. package/cli-bundle/protos/google/monitoring/v3/snooze_service.proto +0 -210
  97. package/cli-bundle/protos/google/monitoring/v3/span_context.proto +0 -45
  98. package/cli-bundle/protos/google/monitoring/v3/uptime.proto +0 -564
  99. package/cli-bundle/protos/google/monitoring/v3/uptime_service.proto +0 -259
  100. package/cli-bundle/protos/google/protobuf/any.proto +0 -162
  101. package/cli-bundle/protos/google/protobuf/api.proto +0 -207
  102. package/cli-bundle/protos/google/protobuf/bridge/message_set.proto +0 -76
  103. package/cli-bundle/protos/google/protobuf/compiler/plugin.proto +0 -180
  104. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code.proto +0 -77
  105. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2.proto +0 -78
  106. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2_import.proto +0 -12
  107. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit.proto +0 -16
  108. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy.proto +0 -16
  109. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_implicit.proto +0 -14
  110. package/cli-bundle/protos/google/protobuf/cpp_features.proto +0 -45
  111. package/cli-bundle/protos/google/protobuf/descriptor.proto +0 -1225
  112. package/cli-bundle/protos/google/protobuf/duration.proto +0 -115
  113. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_enum.proto +0 -26
  114. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_group.proto +0 -18
  115. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_import.proto +0 -16
  116. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_inline_comments.proto +0 -33
  117. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_multiline_comments.proto +0 -33
  118. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_optional.proto +0 -65
  119. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_packed.proto +0 -14
  120. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_proto3_enum.proto +0 -18
  121. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_required.proto +0 -47
  122. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_unpacked.proto +0 -19
  123. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_disabled.proto +0 -16
  124. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_lite.proto +0 -17
  125. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_verify.proto +0 -14
  126. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_enum.proto +0 -26
  127. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_implicit.proto +0 -65
  128. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_import.proto +0 -16
  129. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_optional.proto +0 -47
  130. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_packed.proto +0 -20
  131. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_unpacked.proto +0 -19
  132. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_utf8_strict.proto +0 -15
  133. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2.proto +0 -129
  134. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_lite.proto +0 -19
  135. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_utf8_disabled.proto +0 -18
  136. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3.proto +0 -32
  137. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3_utf8_disabled.proto +0 -18
  138. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2.proto +0 -14
  139. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2_import.proto +0 -16
  140. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto3.proto +0 -14
  141. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2.proto +0 -91
  142. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_lite.proto +0 -20
  143. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_utf8_disabled.proto +0 -19
  144. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3.proto +0 -25
  145. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3_utf8_disabled.proto +0 -19
  146. package/cli-bundle/protos/google/protobuf/empty.proto +0 -51
  147. package/cli-bundle/protos/google/protobuf/field_mask.proto +0 -245
  148. package/cli-bundle/protos/google/protobuf/sample_messages_edition.proto +0 -427
  149. package/cli-bundle/protos/google/protobuf/source_context.proto +0 -48
  150. package/cli-bundle/protos/google/protobuf/struct.proto +0 -95
  151. package/cli-bundle/protos/google/protobuf/timestamp.proto +0 -144
  152. package/cli-bundle/protos/google/protobuf/type.proto +0 -193
  153. package/cli-bundle/protos/google/protobuf/util/json_format.proto +0 -116
  154. package/cli-bundle/protos/google/protobuf/util/json_format_proto3.proto +0 -301
  155. package/cli-bundle/protos/google/protobuf/wrappers.proto +0 -123
  156. package/cli-bundle/protos/google/rpc/code.proto +0 -186
  157. package/cli-bundle/protos/google/rpc/context/attribute_context.proto +0 -344
  158. package/cli-bundle/protos/google/rpc/context/audit_context.proto +0 -49
  159. package/cli-bundle/protos/google/rpc/error_details.proto +0 -285
  160. package/cli-bundle/protos/google/rpc/http.proto +0 -64
  161. package/cli-bundle/protos/google/rpc/status.proto +0 -49
  162. package/cli-bundle/protos/google/type/calendar_period.proto +0 -56
  163. package/cli-bundle/protos/google/type/color.proto +0 -174
  164. package/cli-bundle/protos/google/type/date.proto +0 -52
  165. package/cli-bundle/protos/google/type/datetime.proto +0 -104
  166. package/cli-bundle/protos/google/type/dayofweek.proto +0 -50
  167. package/cli-bundle/protos/google/type/decimal.proto +0 -95
  168. package/cli-bundle/protos/google/type/expr.proto +0 -73
  169. package/cli-bundle/protos/google/type/fraction.proto +0 -33
  170. package/cli-bundle/protos/google/type/interval.proto +0 -46
  171. package/cli-bundle/protos/google/type/latlng.proto +0 -37
  172. package/cli-bundle/protos/google/type/localized_text.proto +0 -36
  173. package/cli-bundle/protos/google/type/money.proto +0 -42
  174. package/cli-bundle/protos/google/type/month.proto +0 -65
  175. package/cli-bundle/protos/google/type/phone_number.proto +0 -113
  176. package/cli-bundle/protos/google/type/postal_address.proto +0 -134
  177. package/cli-bundle/protos/google/type/quaternion.proto +0 -94
  178. package/cli-bundle/protos/google/type/timeofday.proto +0 -44
  179. package/cli-bundle/protos/http.d.ts +0 -347
  180. package/cli-bundle/protos/http.js +0 -1
  181. package/cli-bundle/protos/iam_service.d.ts +0 -5035
  182. package/cli-bundle/protos/iam_service.js +0 -1
  183. package/cli-bundle/protos/iam_service.json +0 -1
  184. package/cli-bundle/protos/locations.d.ts +0 -4060
  185. package/cli-bundle/protos/locations.js +0 -1
  186. package/cli-bundle/protos/locations.json +0 -1
  187. package/cli-bundle/protos/operations.d.ts +0 -4783
  188. package/cli-bundle/protos/operations.js +0 -1
  189. package/cli-bundle/protos/operations.json +0 -1
  190. package/cli-bundle/protos/status.json +0 -1
  191. package/cli-bundle/worker2.js +0 -174
@@ -1,256 +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.monitoring.v3;
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/monitoring/v3/alert.proto";
24
- import "google/protobuf/empty.proto";
25
- import "google/protobuf/field_mask.proto";
26
-
27
- option csharp_namespace = "Google.Cloud.Monitoring.V3";
28
- option go_package = "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb";
29
- option java_multiple_files = true;
30
- option java_outer_classname = "AlertServiceProto";
31
- option java_package = "com.google.monitoring.v3";
32
- option php_namespace = "Google\\Cloud\\Monitoring\\V3";
33
- option ruby_package = "Google::Cloud::Monitoring::V3";
34
-
35
- // The AlertPolicyService API is used to manage (list, create, delete,
36
- // edit) alert policies in Cloud Monitoring. An alerting policy is
37
- // a description of the conditions under which some aspect of your
38
- // system is considered to be "unhealthy" and the ways to notify
39
- // people or services about this state. In addition to using this API, alert
40
- // policies can also be managed through
41
- // [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
42
- // which can be reached by clicking the "Monitoring" tab in
43
- // [Cloud console](https://console.cloud.google.com/).
44
- service AlertPolicyService {
45
- option (google.api.default_host) = "monitoring.googleapis.com";
46
- option (google.api.oauth_scopes) =
47
- "https://www.googleapis.com/auth/cloud-platform,"
48
- "https://www.googleapis.com/auth/monitoring,"
49
- "https://www.googleapis.com/auth/monitoring.read";
50
-
51
- // Lists the existing alerting policies for the workspace.
52
- rpc ListAlertPolicies(ListAlertPoliciesRequest)
53
- returns (ListAlertPoliciesResponse) {
54
- option (google.api.http) = {
55
- get: "/v3/{name=projects/*}/alertPolicies"
56
- };
57
- option (google.api.method_signature) = "name";
58
- }
59
-
60
- // Gets a single alerting policy.
61
- rpc GetAlertPolicy(GetAlertPolicyRequest) returns (AlertPolicy) {
62
- option (google.api.http) = {
63
- get: "/v3/{name=projects/*/alertPolicies/*}"
64
- };
65
- option (google.api.method_signature) = "name";
66
- }
67
-
68
- // Creates a new alerting policy.
69
- //
70
- // Design your application to single-thread API calls that modify the state of
71
- // alerting policies in a single project. This includes calls to
72
- // CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
73
- rpc CreateAlertPolicy(CreateAlertPolicyRequest) returns (AlertPolicy) {
74
- option (google.api.http) = {
75
- post: "/v3/{name=projects/*}/alertPolicies"
76
- body: "alert_policy"
77
- };
78
- option (google.api.method_signature) = "name,alert_policy";
79
- }
80
-
81
- // Deletes an alerting policy.
82
- //
83
- // Design your application to single-thread API calls that modify the state of
84
- // alerting policies in a single project. This includes calls to
85
- // CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
86
- rpc DeleteAlertPolicy(DeleteAlertPolicyRequest)
87
- returns (google.protobuf.Empty) {
88
- option (google.api.http) = {
89
- delete: "/v3/{name=projects/*/alertPolicies/*}"
90
- };
91
- option (google.api.method_signature) = "name";
92
- }
93
-
94
- // Updates an alerting policy. You can either replace the entire policy with
95
- // a new one or replace only certain fields in the current alerting policy by
96
- // specifying the fields to be updated via `updateMask`. Returns the
97
- // updated alerting policy.
98
- //
99
- // Design your application to single-thread API calls that modify the state of
100
- // alerting policies in a single project. This includes calls to
101
- // CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
102
- rpc UpdateAlertPolicy(UpdateAlertPolicyRequest) returns (AlertPolicy) {
103
- option (google.api.http) = {
104
- patch: "/v3/{alert_policy.name=projects/*/alertPolicies/*}"
105
- body: "alert_policy"
106
- };
107
- option (google.api.method_signature) = "update_mask,alert_policy";
108
- }
109
- }
110
-
111
- // The protocol for the `CreateAlertPolicy` request.
112
- message CreateAlertPolicyRequest {
113
- // Required. The
114
- // [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
115
- // to create the alerting policy. The format is:
116
- //
117
- // projects/[PROJECT_ID_OR_NUMBER]
118
- //
119
- // Note that this field names the parent container in which the alerting
120
- // policy will be written, not the name of the created policy. |name| must be
121
- // a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
122
- // return. The alerting policy that is returned will have a name that contains
123
- // a normalized representation of this name as a prefix but adds a suffix of
124
- // the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
125
- // container.
126
- string name = 3 [
127
- (google.api.field_behavior) = REQUIRED,
128
- (google.api.resource_reference) = {
129
- child_type: "monitoring.googleapis.com/AlertPolicy"
130
- }
131
- ];
132
-
133
- // Required. The requested alerting policy. You should omit the `name` field
134
- // in this policy. The name will be returned in the new policy, including a
135
- // new `[ALERT_POLICY_ID]` value.
136
- AlertPolicy alert_policy = 2 [(google.api.field_behavior) = REQUIRED];
137
- }
138
-
139
- // The protocol for the `GetAlertPolicy` request.
140
- message GetAlertPolicyRequest {
141
- // Required. The alerting policy to retrieve. The format is:
142
- //
143
- // projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
144
- string name = 3 [
145
- (google.api.field_behavior) = REQUIRED,
146
- (google.api.resource_reference) = {
147
- type: "monitoring.googleapis.com/AlertPolicy"
148
- }
149
- ];
150
- }
151
-
152
- // The protocol for the `ListAlertPolicies` request.
153
- message ListAlertPoliciesRequest {
154
- // Required. The
155
- // [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
156
- // alert policies are to be listed. The format is:
157
- //
158
- // projects/[PROJECT_ID_OR_NUMBER]
159
- //
160
- // Note that this field names the parent container in which the alerting
161
- // policies to be listed are stored. To retrieve a single alerting policy
162
- // by name, use the
163
- // [GetAlertPolicy][google.monitoring.v3.AlertPolicyService.GetAlertPolicy]
164
- // operation, instead.
165
- string name = 4 [
166
- (google.api.field_behavior) = REQUIRED,
167
- (google.api.resource_reference) = {
168
- child_type: "monitoring.googleapis.com/AlertPolicy"
169
- }
170
- ];
171
-
172
- // If provided, this field specifies the criteria that must be met by
173
- // alert policies to be included in the response.
174
- //
175
- // For more details, see [sorting and
176
- // filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
177
- string filter = 5;
178
-
179
- // A comma-separated list of fields by which to sort the result. Supports
180
- // the same set of field references as the `filter` field. Entries can be
181
- // prefixed with a minus sign to sort by the field in descending order.
182
- //
183
- // For more details, see [sorting and
184
- // filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
185
- string order_by = 6;
186
-
187
- // The maximum number of results to return in a single response.
188
- int32 page_size = 2;
189
-
190
- // If this field is not empty then it must contain the `nextPageToken` value
191
- // returned by a previous call to this method. Using this field causes the
192
- // method to return more results from the previous method call.
193
- string page_token = 3;
194
- }
195
-
196
- // The protocol for the `ListAlertPolicies` response.
197
- message ListAlertPoliciesResponse {
198
- // The returned alert policies.
199
- repeated AlertPolicy alert_policies = 3;
200
-
201
- // If there might be more results than were returned, then this field is set
202
- // to a non-empty value. To see the additional results,
203
- // use that value as `page_token` in the next call to this method.
204
- string next_page_token = 2;
205
-
206
- // The total number of alert policies in all pages. This number is only an
207
- // estimate, and may change in subsequent pages. https://aip.dev/158
208
- int32 total_size = 4;
209
- }
210
-
211
- // The protocol for the `UpdateAlertPolicy` request.
212
- message UpdateAlertPolicyRequest {
213
- // Optional. A list of alerting policy field names. If this field is not
214
- // empty, each listed field in the existing alerting policy is set to the
215
- // value of the corresponding field in the supplied policy (`alert_policy`),
216
- // or to the field's default value if the field is not in the supplied
217
- // alerting policy. Fields not listed retain their previous value.
218
- //
219
- // Examples of valid field masks include `display_name`, `documentation`,
220
- // `documentation.content`, `documentation.mime_type`, `user_labels`,
221
- // `user_label.nameofkey`, `enabled`, `conditions`, `combiner`, etc.
222
- //
223
- // If this field is empty, then the supplied alerting policy replaces the
224
- // existing policy. It is the same as deleting the existing policy and
225
- // adding the supplied policy, except for the following:
226
- //
227
- // + The new policy will have the same `[ALERT_POLICY_ID]` as the former
228
- // policy. This gives you continuity with the former policy in your
229
- // notifications and incidents.
230
- // + Conditions in the new policy will keep their former `[CONDITION_ID]` if
231
- // the supplied condition includes the `name` field with that
232
- // `[CONDITION_ID]`. If the supplied condition omits the `name` field,
233
- // then a new `[CONDITION_ID]` is created.
234
- google.protobuf.FieldMask update_mask = 2;
235
-
236
- // Required. The updated alerting policy or the updated values for the
237
- // fields listed in `update_mask`.
238
- // If `update_mask` is not empty, any fields in this policy that are
239
- // not in `update_mask` are ignored.
240
- AlertPolicy alert_policy = 3 [(google.api.field_behavior) = REQUIRED];
241
- }
242
-
243
- // The protocol for the `DeleteAlertPolicy` request.
244
- message DeleteAlertPolicyRequest {
245
- // Required. The alerting policy to delete. The format is:
246
- //
247
- // projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
248
- //
249
- // For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
250
- string name = 3 [
251
- (google.api.field_behavior) = REQUIRED,
252
- (google.api.resource_reference) = {
253
- type: "monitoring.googleapis.com/AlertPolicy"
254
- }
255
- ];
256
- }