google-cloud-security_center-v2 0.a → 0.2.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.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/security_center/v2/rest.rb +37 -0
- data/lib/google/cloud/security_center/v2/security_center/client.rb +4771 -0
- data/lib/google/cloud/security_center/v2/security_center/credentials.rb +51 -0
- data/lib/google/cloud/security_center/v2/security_center/operations.rb +809 -0
- data/lib/google/cloud/security_center/v2/security_center/paths.rb +973 -0
- data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +4390 -0
- data/lib/google/cloud/security_center/v2/security_center/rest/operations.rb +901 -0
- data/lib/google/cloud/security_center/v2/security_center/rest/service_stub.rb +3165 -0
- data/lib/google/cloud/security_center/v2/security_center/rest.rb +53 -0
- data/lib/google/cloud/security_center/v2/security_center.rb +56 -0
- data/lib/google/cloud/security_center/v2/version.rb +7 -2
- data/lib/google/cloud/security_center/v2.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/access_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/application_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/attack_exposure_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/attack_path_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/backup_disaster_recovery_pb.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/bigquery_export_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/cloud_dlp_data_profile_pb.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/cloud_dlp_inspection_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/compliance_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/connection_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/contact_details_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/container_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/database_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/exfiltration_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/external_system_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/file_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/finding_pb.rb +109 -0
- data/lib/google/cloud/securitycenter/v2/group_membership_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/iam_binding_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/indicator_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/kernel_rootkit_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/kubernetes_pb.rb +57 -0
- data/lib/google/cloud/securitycenter/v2/label_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/load_balancer_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/log_entry_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/mitre_attack_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/mute_config_pb.rb +48 -0
- data/lib/google/cloud/securitycenter/v2/notification_config_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/notification_message_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/org_policy_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/process_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/resource_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/resource_value_config_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/security_marks_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/security_posture_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/securitycenter_service_pb.rb +128 -0
- data/lib/google/cloud/securitycenter/v2/securitycenter_service_services_pb.rb +167 -0
- data/lib/google/cloud/securitycenter/v2/simulation_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/source_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/toxic_combination_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/valued_resource_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/vulnerability_pb.rb +58 -0
- data/lib/google-cloud-security_center-v2.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/api/routing.rb +459 -0
- data/proto_docs/google/cloud/securitycenter/v2/access.rb +120 -0
- data/proto_docs/google/cloud/securitycenter/v2/application.rb +40 -0
- data/proto_docs/google/cloud/securitycenter/v2/attack_exposure.rb +73 -0
- data/proto_docs/google/cloud/securitycenter/v2/attack_path.rb +147 -0
- data/proto_docs/google/cloud/securitycenter/v2/backup_disaster_recovery.rb +90 -0
- data/proto_docs/google/cloud/securitycenter/v2/bigquery_export.rb +96 -0
- data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_data_profile.rb +52 -0
- data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_inspection.rb +50 -0
- data/proto_docs/google/cloud/securitycenter/v2/compliance.rb +43 -0
- data/proto_docs/google/cloud/securitycenter/v2/connection.rb +70 -0
- data/proto_docs/google/cloud/securitycenter/v2/contact_details.rb +44 -0
- data/proto_docs/google/cloud/securitycenter/v2/container.rb +49 -0
- data/proto_docs/google/cloud/securitycenter/v2/database.rb +67 -0
- data/proto_docs/google/cloud/securitycenter/v2/exfiltration.rb +64 -0
- data/proto_docs/google/cloud/securitycenter/v2/external_system.rb +106 -0
- data/proto_docs/google/cloud/securitycenter/v2/file.rb +72 -0
- data/proto_docs/google/cloud/securitycenter/v2/finding.rb +427 -0
- data/proto_docs/google/cloud/securitycenter/v2/group_membership.rb +48 -0
- data/proto_docs/google/cloud/securitycenter/v2/iam_binding.rb +56 -0
- data/proto_docs/google/cloud/securitycenter/v2/indicator.rb +112 -0
- data/proto_docs/google/cloud/securitycenter/v2/kernel_rootkit.rb +66 -0
- data/proto_docs/google/cloud/securitycenter/v2/kubernetes.rb +241 -0
- data/proto_docs/google/cloud/securitycenter/v2/label.rb +41 -0
- data/proto_docs/google/cloud/securitycenter/v2/load_balancer.rb +36 -0
- data/proto_docs/google/cloud/securitycenter/v2/log_entry.rb +58 -0
- data/proto_docs/google/cloud/securitycenter/v2/mitre_attack.rb +285 -0
- data/proto_docs/google/cloud/securitycenter/v2/mute_config.rb +100 -0
- data/proto_docs/google/cloud/securitycenter/v2/notification_config.rb +90 -0
- data/proto_docs/google/cloud/securitycenter/v2/notification_message.rb +42 -0
- data/proto_docs/google/cloud/securitycenter/v2/org_policy.rb +37 -0
- data/proto_docs/google/cloud/securitycenter/v2/process.rb +79 -0
- data/proto_docs/google/cloud/securitycenter/v2/resource.rb +42 -0
- data/proto_docs/google/cloud/securitycenter/v2/resource_value_config.rb +122 -0
- data/proto_docs/google/cloud/securitycenter/v2/security_marks.rb +84 -0
- data/proto_docs/google/cloud/securitycenter/v2/security_posture.rb +83 -0
- data/proto_docs/google/cloud/securitycenter/v2/securitycenter_service.rb +1136 -0
- data/proto_docs/google/cloud/securitycenter/v2/simulation.rb +43 -0
- data/proto_docs/google/cloud/securitycenter/v2/source.rb +65 -0
- data/proto_docs/google/cloud/securitycenter/v2/toxic_combination.rb +46 -0
- data/proto_docs/google/cloud/securitycenter/v2/valued_resource.rb +86 -0
- data/proto_docs/google/cloud/securitycenter/v2/vulnerability.rb +333 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +426 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +173 -10
|
@@ -0,0 +1,3165 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/securitycenter/v2/securitycenter_service_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module SecurityCenter
|
|
24
|
+
module V2
|
|
25
|
+
module SecurityCenter
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the SecurityCenter service.
|
|
29
|
+
# Service stub contains baseline method implementations
|
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
31
|
+
#
|
|
32
|
+
class ServiceStub
|
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
|
34
|
+
# These require statements are intentionally placed here to initialize
|
|
35
|
+
# the REST modules only when it's required.
|
|
36
|
+
require "gapic/rest"
|
|
37
|
+
|
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
39
|
+
endpoint_template: endpoint_template,
|
|
40
|
+
universe_domain: universe_domain,
|
|
41
|
+
credentials: credentials,
|
|
42
|
+
numeric_enums: true,
|
|
43
|
+
raise_faraday_errors: false
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# The effective universe domain
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
def universe_domain
|
|
52
|
+
@client_stub.universe_domain
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
##
|
|
56
|
+
# The effective endpoint
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
#
|
|
60
|
+
def endpoint
|
|
61
|
+
@client_stub.endpoint
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
##
|
|
65
|
+
# Baseline implementation for the batch_create_resource_value_configs REST call
|
|
66
|
+
#
|
|
67
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::BatchCreateResourceValueConfigsRequest]
|
|
68
|
+
# A request object representing the call parameters. Required.
|
|
69
|
+
# @param options [::Gapic::CallOptions]
|
|
70
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
71
|
+
#
|
|
72
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
73
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::BatchCreateResourceValueConfigsResponse]
|
|
74
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
75
|
+
#
|
|
76
|
+
# @return [::Google::Cloud::SecurityCenter::V2::BatchCreateResourceValueConfigsResponse]
|
|
77
|
+
# A result object deserialized from the server's reply
|
|
78
|
+
def batch_create_resource_value_configs request_pb, options = nil
|
|
79
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
80
|
+
|
|
81
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_resource_value_configs_request request_pb
|
|
82
|
+
query_string_params = if query_string_params.any?
|
|
83
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
84
|
+
else
|
|
85
|
+
{}
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
response = @client_stub.make_http_request(
|
|
89
|
+
verb,
|
|
90
|
+
uri: uri,
|
|
91
|
+
body: body || "",
|
|
92
|
+
params: query_string_params,
|
|
93
|
+
options: options
|
|
94
|
+
)
|
|
95
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
96
|
+
result = ::Google::Cloud::SecurityCenter::V2::BatchCreateResourceValueConfigsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
97
|
+
|
|
98
|
+
yield result, operation if block_given?
|
|
99
|
+
result
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
##
|
|
103
|
+
# Baseline implementation for the bulk_mute_findings REST call
|
|
104
|
+
#
|
|
105
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::BulkMuteFindingsRequest]
|
|
106
|
+
# A request object representing the call parameters. Required.
|
|
107
|
+
# @param options [::Gapic::CallOptions]
|
|
108
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
109
|
+
#
|
|
110
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
111
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
112
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
113
|
+
#
|
|
114
|
+
# @return [::Google::Longrunning::Operation]
|
|
115
|
+
# A result object deserialized from the server's reply
|
|
116
|
+
def bulk_mute_findings request_pb, options = nil
|
|
117
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
118
|
+
|
|
119
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_bulk_mute_findings_request request_pb
|
|
120
|
+
query_string_params = if query_string_params.any?
|
|
121
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
122
|
+
else
|
|
123
|
+
{}
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
response = @client_stub.make_http_request(
|
|
127
|
+
verb,
|
|
128
|
+
uri: uri,
|
|
129
|
+
body: body || "",
|
|
130
|
+
params: query_string_params,
|
|
131
|
+
options: options
|
|
132
|
+
)
|
|
133
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
134
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
135
|
+
|
|
136
|
+
yield result, operation if block_given?
|
|
137
|
+
result
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
##
|
|
141
|
+
# Baseline implementation for the create_big_query_export REST call
|
|
142
|
+
#
|
|
143
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateBigQueryExportRequest]
|
|
144
|
+
# A request object representing the call parameters. Required.
|
|
145
|
+
# @param options [::Gapic::CallOptions]
|
|
146
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
147
|
+
#
|
|
148
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
149
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
|
|
150
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
151
|
+
#
|
|
152
|
+
# @return [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
|
|
153
|
+
# A result object deserialized from the server's reply
|
|
154
|
+
def create_big_query_export request_pb, options = nil
|
|
155
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
156
|
+
|
|
157
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_big_query_export_request request_pb
|
|
158
|
+
query_string_params = if query_string_params.any?
|
|
159
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
160
|
+
else
|
|
161
|
+
{}
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
response = @client_stub.make_http_request(
|
|
165
|
+
verb,
|
|
166
|
+
uri: uri,
|
|
167
|
+
body: body || "",
|
|
168
|
+
params: query_string_params,
|
|
169
|
+
options: options
|
|
170
|
+
)
|
|
171
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
172
|
+
result = ::Google::Cloud::SecurityCenter::V2::BigQueryExport.decode_json response.body, ignore_unknown_fields: true
|
|
173
|
+
|
|
174
|
+
yield result, operation if block_given?
|
|
175
|
+
result
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
##
|
|
179
|
+
# Baseline implementation for the create_finding REST call
|
|
180
|
+
#
|
|
181
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateFindingRequest]
|
|
182
|
+
# A request object representing the call parameters. Required.
|
|
183
|
+
# @param options [::Gapic::CallOptions]
|
|
184
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
185
|
+
#
|
|
186
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
187
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::Finding]
|
|
188
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
189
|
+
#
|
|
190
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Finding]
|
|
191
|
+
# A result object deserialized from the server's reply
|
|
192
|
+
def create_finding request_pb, options = nil
|
|
193
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
194
|
+
|
|
195
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_finding_request request_pb
|
|
196
|
+
query_string_params = if query_string_params.any?
|
|
197
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
198
|
+
else
|
|
199
|
+
{}
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
response = @client_stub.make_http_request(
|
|
203
|
+
verb,
|
|
204
|
+
uri: uri,
|
|
205
|
+
body: body || "",
|
|
206
|
+
params: query_string_params,
|
|
207
|
+
options: options
|
|
208
|
+
)
|
|
209
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
210
|
+
result = ::Google::Cloud::SecurityCenter::V2::Finding.decode_json response.body, ignore_unknown_fields: true
|
|
211
|
+
|
|
212
|
+
yield result, operation if block_given?
|
|
213
|
+
result
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
##
|
|
217
|
+
# Baseline implementation for the create_mute_config REST call
|
|
218
|
+
#
|
|
219
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateMuteConfigRequest]
|
|
220
|
+
# A request object representing the call parameters. Required.
|
|
221
|
+
# @param options [::Gapic::CallOptions]
|
|
222
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
223
|
+
#
|
|
224
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
225
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::MuteConfig]
|
|
226
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
227
|
+
#
|
|
228
|
+
# @return [::Google::Cloud::SecurityCenter::V2::MuteConfig]
|
|
229
|
+
# A result object deserialized from the server's reply
|
|
230
|
+
def create_mute_config request_pb, options = nil
|
|
231
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
232
|
+
|
|
233
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_mute_config_request request_pb
|
|
234
|
+
query_string_params = if query_string_params.any?
|
|
235
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
236
|
+
else
|
|
237
|
+
{}
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
response = @client_stub.make_http_request(
|
|
241
|
+
verb,
|
|
242
|
+
uri: uri,
|
|
243
|
+
body: body || "",
|
|
244
|
+
params: query_string_params,
|
|
245
|
+
options: options
|
|
246
|
+
)
|
|
247
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
248
|
+
result = ::Google::Cloud::SecurityCenter::V2::MuteConfig.decode_json response.body, ignore_unknown_fields: true
|
|
249
|
+
|
|
250
|
+
yield result, operation if block_given?
|
|
251
|
+
result
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
##
|
|
255
|
+
# Baseline implementation for the create_notification_config REST call
|
|
256
|
+
#
|
|
257
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateNotificationConfigRequest]
|
|
258
|
+
# A request object representing the call parameters. Required.
|
|
259
|
+
# @param options [::Gapic::CallOptions]
|
|
260
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
261
|
+
#
|
|
262
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
263
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::NotificationConfig]
|
|
264
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
265
|
+
#
|
|
266
|
+
# @return [::Google::Cloud::SecurityCenter::V2::NotificationConfig]
|
|
267
|
+
# A result object deserialized from the server's reply
|
|
268
|
+
def create_notification_config request_pb, options = nil
|
|
269
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
270
|
+
|
|
271
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_notification_config_request request_pb
|
|
272
|
+
query_string_params = if query_string_params.any?
|
|
273
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
274
|
+
else
|
|
275
|
+
{}
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
response = @client_stub.make_http_request(
|
|
279
|
+
verb,
|
|
280
|
+
uri: uri,
|
|
281
|
+
body: body || "",
|
|
282
|
+
params: query_string_params,
|
|
283
|
+
options: options
|
|
284
|
+
)
|
|
285
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
286
|
+
result = ::Google::Cloud::SecurityCenter::V2::NotificationConfig.decode_json response.body, ignore_unknown_fields: true
|
|
287
|
+
|
|
288
|
+
yield result, operation if block_given?
|
|
289
|
+
result
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
##
|
|
293
|
+
# Baseline implementation for the create_source REST call
|
|
294
|
+
#
|
|
295
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateSourceRequest]
|
|
296
|
+
# A request object representing the call parameters. Required.
|
|
297
|
+
# @param options [::Gapic::CallOptions]
|
|
298
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
299
|
+
#
|
|
300
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
301
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::Source]
|
|
302
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
303
|
+
#
|
|
304
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Source]
|
|
305
|
+
# A result object deserialized from the server's reply
|
|
306
|
+
def create_source request_pb, options = nil
|
|
307
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
308
|
+
|
|
309
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_source_request request_pb
|
|
310
|
+
query_string_params = if query_string_params.any?
|
|
311
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
312
|
+
else
|
|
313
|
+
{}
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
response = @client_stub.make_http_request(
|
|
317
|
+
verb,
|
|
318
|
+
uri: uri,
|
|
319
|
+
body: body || "",
|
|
320
|
+
params: query_string_params,
|
|
321
|
+
options: options
|
|
322
|
+
)
|
|
323
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
324
|
+
result = ::Google::Cloud::SecurityCenter::V2::Source.decode_json response.body, ignore_unknown_fields: true
|
|
325
|
+
|
|
326
|
+
yield result, operation if block_given?
|
|
327
|
+
result
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
##
|
|
331
|
+
# Baseline implementation for the delete_big_query_export REST call
|
|
332
|
+
#
|
|
333
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::DeleteBigQueryExportRequest]
|
|
334
|
+
# A request object representing the call parameters. Required.
|
|
335
|
+
# @param options [::Gapic::CallOptions]
|
|
336
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
337
|
+
#
|
|
338
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
339
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
340
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
341
|
+
#
|
|
342
|
+
# @return [::Google::Protobuf::Empty]
|
|
343
|
+
# A result object deserialized from the server's reply
|
|
344
|
+
def delete_big_query_export request_pb, options = nil
|
|
345
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
346
|
+
|
|
347
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_big_query_export_request request_pb
|
|
348
|
+
query_string_params = if query_string_params.any?
|
|
349
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
350
|
+
else
|
|
351
|
+
{}
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
response = @client_stub.make_http_request(
|
|
355
|
+
verb,
|
|
356
|
+
uri: uri,
|
|
357
|
+
body: body || "",
|
|
358
|
+
params: query_string_params,
|
|
359
|
+
options: options
|
|
360
|
+
)
|
|
361
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
362
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
363
|
+
|
|
364
|
+
yield result, operation if block_given?
|
|
365
|
+
result
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
##
|
|
369
|
+
# Baseline implementation for the delete_mute_config REST call
|
|
370
|
+
#
|
|
371
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::DeleteMuteConfigRequest]
|
|
372
|
+
# A request object representing the call parameters. Required.
|
|
373
|
+
# @param options [::Gapic::CallOptions]
|
|
374
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
375
|
+
#
|
|
376
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
377
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
378
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
379
|
+
#
|
|
380
|
+
# @return [::Google::Protobuf::Empty]
|
|
381
|
+
# A result object deserialized from the server's reply
|
|
382
|
+
def delete_mute_config request_pb, options = nil
|
|
383
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
384
|
+
|
|
385
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_mute_config_request request_pb
|
|
386
|
+
query_string_params = if query_string_params.any?
|
|
387
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
388
|
+
else
|
|
389
|
+
{}
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
response = @client_stub.make_http_request(
|
|
393
|
+
verb,
|
|
394
|
+
uri: uri,
|
|
395
|
+
body: body || "",
|
|
396
|
+
params: query_string_params,
|
|
397
|
+
options: options
|
|
398
|
+
)
|
|
399
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
400
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
401
|
+
|
|
402
|
+
yield result, operation if block_given?
|
|
403
|
+
result
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
##
|
|
407
|
+
# Baseline implementation for the delete_notification_config REST call
|
|
408
|
+
#
|
|
409
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::DeleteNotificationConfigRequest]
|
|
410
|
+
# A request object representing the call parameters. Required.
|
|
411
|
+
# @param options [::Gapic::CallOptions]
|
|
412
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
413
|
+
#
|
|
414
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
415
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
416
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
417
|
+
#
|
|
418
|
+
# @return [::Google::Protobuf::Empty]
|
|
419
|
+
# A result object deserialized from the server's reply
|
|
420
|
+
def delete_notification_config request_pb, options = nil
|
|
421
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
422
|
+
|
|
423
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_notification_config_request request_pb
|
|
424
|
+
query_string_params = if query_string_params.any?
|
|
425
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
426
|
+
else
|
|
427
|
+
{}
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
response = @client_stub.make_http_request(
|
|
431
|
+
verb,
|
|
432
|
+
uri: uri,
|
|
433
|
+
body: body || "",
|
|
434
|
+
params: query_string_params,
|
|
435
|
+
options: options
|
|
436
|
+
)
|
|
437
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
438
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
439
|
+
|
|
440
|
+
yield result, operation if block_given?
|
|
441
|
+
result
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
##
|
|
445
|
+
# Baseline implementation for the delete_resource_value_config REST call
|
|
446
|
+
#
|
|
447
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::DeleteResourceValueConfigRequest]
|
|
448
|
+
# A request object representing the call parameters. Required.
|
|
449
|
+
# @param options [::Gapic::CallOptions]
|
|
450
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
451
|
+
#
|
|
452
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
453
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
454
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
455
|
+
#
|
|
456
|
+
# @return [::Google::Protobuf::Empty]
|
|
457
|
+
# A result object deserialized from the server's reply
|
|
458
|
+
def delete_resource_value_config request_pb, options = nil
|
|
459
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
460
|
+
|
|
461
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_resource_value_config_request request_pb
|
|
462
|
+
query_string_params = if query_string_params.any?
|
|
463
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
464
|
+
else
|
|
465
|
+
{}
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
response = @client_stub.make_http_request(
|
|
469
|
+
verb,
|
|
470
|
+
uri: uri,
|
|
471
|
+
body: body || "",
|
|
472
|
+
params: query_string_params,
|
|
473
|
+
options: options
|
|
474
|
+
)
|
|
475
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
476
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
477
|
+
|
|
478
|
+
yield result, operation if block_given?
|
|
479
|
+
result
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
##
|
|
483
|
+
# Baseline implementation for the get_big_query_export REST call
|
|
484
|
+
#
|
|
485
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetBigQueryExportRequest]
|
|
486
|
+
# A request object representing the call parameters. Required.
|
|
487
|
+
# @param options [::Gapic::CallOptions]
|
|
488
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
489
|
+
#
|
|
490
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
491
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
|
|
492
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
493
|
+
#
|
|
494
|
+
# @return [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
|
|
495
|
+
# A result object deserialized from the server's reply
|
|
496
|
+
def get_big_query_export request_pb, options = nil
|
|
497
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
498
|
+
|
|
499
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_big_query_export_request request_pb
|
|
500
|
+
query_string_params = if query_string_params.any?
|
|
501
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
502
|
+
else
|
|
503
|
+
{}
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
response = @client_stub.make_http_request(
|
|
507
|
+
verb,
|
|
508
|
+
uri: uri,
|
|
509
|
+
body: body || "",
|
|
510
|
+
params: query_string_params,
|
|
511
|
+
options: options
|
|
512
|
+
)
|
|
513
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
514
|
+
result = ::Google::Cloud::SecurityCenter::V2::BigQueryExport.decode_json response.body, ignore_unknown_fields: true
|
|
515
|
+
|
|
516
|
+
yield result, operation if block_given?
|
|
517
|
+
result
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
##
|
|
521
|
+
# Baseline implementation for the get_simulation REST call
|
|
522
|
+
#
|
|
523
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetSimulationRequest]
|
|
524
|
+
# A request object representing the call parameters. Required.
|
|
525
|
+
# @param options [::Gapic::CallOptions]
|
|
526
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
527
|
+
#
|
|
528
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
529
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::Simulation]
|
|
530
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
531
|
+
#
|
|
532
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Simulation]
|
|
533
|
+
# A result object deserialized from the server's reply
|
|
534
|
+
def get_simulation request_pb, options = nil
|
|
535
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
536
|
+
|
|
537
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_simulation_request request_pb
|
|
538
|
+
query_string_params = if query_string_params.any?
|
|
539
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
540
|
+
else
|
|
541
|
+
{}
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
response = @client_stub.make_http_request(
|
|
545
|
+
verb,
|
|
546
|
+
uri: uri,
|
|
547
|
+
body: body || "",
|
|
548
|
+
params: query_string_params,
|
|
549
|
+
options: options
|
|
550
|
+
)
|
|
551
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
552
|
+
result = ::Google::Cloud::SecurityCenter::V2::Simulation.decode_json response.body, ignore_unknown_fields: true
|
|
553
|
+
|
|
554
|
+
yield result, operation if block_given?
|
|
555
|
+
result
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
##
|
|
559
|
+
# Baseline implementation for the get_valued_resource REST call
|
|
560
|
+
#
|
|
561
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetValuedResourceRequest]
|
|
562
|
+
# A request object representing the call parameters. Required.
|
|
563
|
+
# @param options [::Gapic::CallOptions]
|
|
564
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
565
|
+
#
|
|
566
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
567
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ValuedResource]
|
|
568
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
569
|
+
#
|
|
570
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ValuedResource]
|
|
571
|
+
# A result object deserialized from the server's reply
|
|
572
|
+
def get_valued_resource request_pb, options = nil
|
|
573
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
574
|
+
|
|
575
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_valued_resource_request request_pb
|
|
576
|
+
query_string_params = if query_string_params.any?
|
|
577
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
578
|
+
else
|
|
579
|
+
{}
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
response = @client_stub.make_http_request(
|
|
583
|
+
verb,
|
|
584
|
+
uri: uri,
|
|
585
|
+
body: body || "",
|
|
586
|
+
params: query_string_params,
|
|
587
|
+
options: options
|
|
588
|
+
)
|
|
589
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
590
|
+
result = ::Google::Cloud::SecurityCenter::V2::ValuedResource.decode_json response.body, ignore_unknown_fields: true
|
|
591
|
+
|
|
592
|
+
yield result, operation if block_given?
|
|
593
|
+
result
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
##
|
|
597
|
+
# Baseline implementation for the get_iam_policy REST call
|
|
598
|
+
#
|
|
599
|
+
# @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
|
|
600
|
+
# A request object representing the call parameters. Required.
|
|
601
|
+
# @param options [::Gapic::CallOptions]
|
|
602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
603
|
+
#
|
|
604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
605
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
607
|
+
#
|
|
608
|
+
# @return [::Google::Iam::V1::Policy]
|
|
609
|
+
# A result object deserialized from the server's reply
|
|
610
|
+
def get_iam_policy request_pb, options = nil
|
|
611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
612
|
+
|
|
613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
|
614
|
+
query_string_params = if query_string_params.any?
|
|
615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
616
|
+
else
|
|
617
|
+
{}
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
response = @client_stub.make_http_request(
|
|
621
|
+
verb,
|
|
622
|
+
uri: uri,
|
|
623
|
+
body: body || "",
|
|
624
|
+
params: query_string_params,
|
|
625
|
+
options: options
|
|
626
|
+
)
|
|
627
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
628
|
+
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
|
629
|
+
|
|
630
|
+
yield result, operation if block_given?
|
|
631
|
+
result
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
##
|
|
635
|
+
# Baseline implementation for the get_mute_config REST call
|
|
636
|
+
#
|
|
637
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetMuteConfigRequest]
|
|
638
|
+
# A request object representing the call parameters. Required.
|
|
639
|
+
# @param options [::Gapic::CallOptions]
|
|
640
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
641
|
+
#
|
|
642
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
643
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::MuteConfig]
|
|
644
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
645
|
+
#
|
|
646
|
+
# @return [::Google::Cloud::SecurityCenter::V2::MuteConfig]
|
|
647
|
+
# A result object deserialized from the server's reply
|
|
648
|
+
def get_mute_config request_pb, options = nil
|
|
649
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
650
|
+
|
|
651
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_mute_config_request request_pb
|
|
652
|
+
query_string_params = if query_string_params.any?
|
|
653
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
654
|
+
else
|
|
655
|
+
{}
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
response = @client_stub.make_http_request(
|
|
659
|
+
verb,
|
|
660
|
+
uri: uri,
|
|
661
|
+
body: body || "",
|
|
662
|
+
params: query_string_params,
|
|
663
|
+
options: options
|
|
664
|
+
)
|
|
665
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
666
|
+
result = ::Google::Cloud::SecurityCenter::V2::MuteConfig.decode_json response.body, ignore_unknown_fields: true
|
|
667
|
+
|
|
668
|
+
yield result, operation if block_given?
|
|
669
|
+
result
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
##
|
|
673
|
+
# Baseline implementation for the get_notification_config REST call
|
|
674
|
+
#
|
|
675
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetNotificationConfigRequest]
|
|
676
|
+
# A request object representing the call parameters. Required.
|
|
677
|
+
# @param options [::Gapic::CallOptions]
|
|
678
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
679
|
+
#
|
|
680
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
681
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::NotificationConfig]
|
|
682
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
683
|
+
#
|
|
684
|
+
# @return [::Google::Cloud::SecurityCenter::V2::NotificationConfig]
|
|
685
|
+
# A result object deserialized from the server's reply
|
|
686
|
+
def get_notification_config request_pb, options = nil
|
|
687
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
688
|
+
|
|
689
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_notification_config_request request_pb
|
|
690
|
+
query_string_params = if query_string_params.any?
|
|
691
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
692
|
+
else
|
|
693
|
+
{}
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
response = @client_stub.make_http_request(
|
|
697
|
+
verb,
|
|
698
|
+
uri: uri,
|
|
699
|
+
body: body || "",
|
|
700
|
+
params: query_string_params,
|
|
701
|
+
options: options
|
|
702
|
+
)
|
|
703
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
704
|
+
result = ::Google::Cloud::SecurityCenter::V2::NotificationConfig.decode_json response.body, ignore_unknown_fields: true
|
|
705
|
+
|
|
706
|
+
yield result, operation if block_given?
|
|
707
|
+
result
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
##
|
|
711
|
+
# Baseline implementation for the get_resource_value_config REST call
|
|
712
|
+
#
|
|
713
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetResourceValueConfigRequest]
|
|
714
|
+
# A request object representing the call parameters. Required.
|
|
715
|
+
# @param options [::Gapic::CallOptions]
|
|
716
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
717
|
+
#
|
|
718
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
719
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ResourceValueConfig]
|
|
720
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
721
|
+
#
|
|
722
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ResourceValueConfig]
|
|
723
|
+
# A result object deserialized from the server's reply
|
|
724
|
+
def get_resource_value_config request_pb, options = nil
|
|
725
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
726
|
+
|
|
727
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_resource_value_config_request request_pb
|
|
728
|
+
query_string_params = if query_string_params.any?
|
|
729
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
730
|
+
else
|
|
731
|
+
{}
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
response = @client_stub.make_http_request(
|
|
735
|
+
verb,
|
|
736
|
+
uri: uri,
|
|
737
|
+
body: body || "",
|
|
738
|
+
params: query_string_params,
|
|
739
|
+
options: options
|
|
740
|
+
)
|
|
741
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
742
|
+
result = ::Google::Cloud::SecurityCenter::V2::ResourceValueConfig.decode_json response.body, ignore_unknown_fields: true
|
|
743
|
+
|
|
744
|
+
yield result, operation if block_given?
|
|
745
|
+
result
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
##
|
|
749
|
+
# Baseline implementation for the get_source REST call
|
|
750
|
+
#
|
|
751
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetSourceRequest]
|
|
752
|
+
# A request object representing the call parameters. Required.
|
|
753
|
+
# @param options [::Gapic::CallOptions]
|
|
754
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
755
|
+
#
|
|
756
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
757
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::Source]
|
|
758
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
759
|
+
#
|
|
760
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Source]
|
|
761
|
+
# A result object deserialized from the server's reply
|
|
762
|
+
def get_source request_pb, options = nil
|
|
763
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
764
|
+
|
|
765
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_source_request request_pb
|
|
766
|
+
query_string_params = if query_string_params.any?
|
|
767
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
768
|
+
else
|
|
769
|
+
{}
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
response = @client_stub.make_http_request(
|
|
773
|
+
verb,
|
|
774
|
+
uri: uri,
|
|
775
|
+
body: body || "",
|
|
776
|
+
params: query_string_params,
|
|
777
|
+
options: options
|
|
778
|
+
)
|
|
779
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
780
|
+
result = ::Google::Cloud::SecurityCenter::V2::Source.decode_json response.body, ignore_unknown_fields: true
|
|
781
|
+
|
|
782
|
+
yield result, operation if block_given?
|
|
783
|
+
result
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
##
|
|
787
|
+
# Baseline implementation for the group_findings REST call
|
|
788
|
+
#
|
|
789
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GroupFindingsRequest]
|
|
790
|
+
# A request object representing the call parameters. Required.
|
|
791
|
+
# @param options [::Gapic::CallOptions]
|
|
792
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
793
|
+
#
|
|
794
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
795
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::GroupFindingsResponse]
|
|
796
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
797
|
+
#
|
|
798
|
+
# @return [::Google::Cloud::SecurityCenter::V2::GroupFindingsResponse]
|
|
799
|
+
# A result object deserialized from the server's reply
|
|
800
|
+
def group_findings request_pb, options = nil
|
|
801
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
802
|
+
|
|
803
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_group_findings_request request_pb
|
|
804
|
+
query_string_params = if query_string_params.any?
|
|
805
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
806
|
+
else
|
|
807
|
+
{}
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
response = @client_stub.make_http_request(
|
|
811
|
+
verb,
|
|
812
|
+
uri: uri,
|
|
813
|
+
body: body || "",
|
|
814
|
+
params: query_string_params,
|
|
815
|
+
options: options
|
|
816
|
+
)
|
|
817
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
818
|
+
result = ::Google::Cloud::SecurityCenter::V2::GroupFindingsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
819
|
+
|
|
820
|
+
yield result, operation if block_given?
|
|
821
|
+
result
|
|
822
|
+
end
|
|
823
|
+
|
|
824
|
+
##
|
|
825
|
+
# Baseline implementation for the list_attack_paths REST call
|
|
826
|
+
#
|
|
827
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListAttackPathsRequest]
|
|
828
|
+
# A request object representing the call parameters. Required.
|
|
829
|
+
# @param options [::Gapic::CallOptions]
|
|
830
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
831
|
+
#
|
|
832
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
833
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ListAttackPathsResponse]
|
|
834
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
835
|
+
#
|
|
836
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ListAttackPathsResponse]
|
|
837
|
+
# A result object deserialized from the server's reply
|
|
838
|
+
def list_attack_paths request_pb, options = nil
|
|
839
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
840
|
+
|
|
841
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_attack_paths_request request_pb
|
|
842
|
+
query_string_params = if query_string_params.any?
|
|
843
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
844
|
+
else
|
|
845
|
+
{}
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
response = @client_stub.make_http_request(
|
|
849
|
+
verb,
|
|
850
|
+
uri: uri,
|
|
851
|
+
body: body || "",
|
|
852
|
+
params: query_string_params,
|
|
853
|
+
options: options
|
|
854
|
+
)
|
|
855
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
856
|
+
result = ::Google::Cloud::SecurityCenter::V2::ListAttackPathsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
857
|
+
|
|
858
|
+
yield result, operation if block_given?
|
|
859
|
+
result
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
##
|
|
863
|
+
# Baseline implementation for the list_big_query_exports REST call
|
|
864
|
+
#
|
|
865
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListBigQueryExportsRequest]
|
|
866
|
+
# A request object representing the call parameters. Required.
|
|
867
|
+
# @param options [::Gapic::CallOptions]
|
|
868
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
869
|
+
#
|
|
870
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
871
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ListBigQueryExportsResponse]
|
|
872
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
873
|
+
#
|
|
874
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ListBigQueryExportsResponse]
|
|
875
|
+
# A result object deserialized from the server's reply
|
|
876
|
+
def list_big_query_exports request_pb, options = nil
|
|
877
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
878
|
+
|
|
879
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_big_query_exports_request request_pb
|
|
880
|
+
query_string_params = if query_string_params.any?
|
|
881
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
882
|
+
else
|
|
883
|
+
{}
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
response = @client_stub.make_http_request(
|
|
887
|
+
verb,
|
|
888
|
+
uri: uri,
|
|
889
|
+
body: body || "",
|
|
890
|
+
params: query_string_params,
|
|
891
|
+
options: options
|
|
892
|
+
)
|
|
893
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
894
|
+
result = ::Google::Cloud::SecurityCenter::V2::ListBigQueryExportsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
895
|
+
|
|
896
|
+
yield result, operation if block_given?
|
|
897
|
+
result
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
##
|
|
901
|
+
# Baseline implementation for the list_findings REST call
|
|
902
|
+
#
|
|
903
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListFindingsRequest]
|
|
904
|
+
# A request object representing the call parameters. Required.
|
|
905
|
+
# @param options [::Gapic::CallOptions]
|
|
906
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
907
|
+
#
|
|
908
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
909
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ListFindingsResponse]
|
|
910
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
911
|
+
#
|
|
912
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ListFindingsResponse]
|
|
913
|
+
# A result object deserialized from the server's reply
|
|
914
|
+
def list_findings request_pb, options = nil
|
|
915
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
916
|
+
|
|
917
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_findings_request request_pb
|
|
918
|
+
query_string_params = if query_string_params.any?
|
|
919
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
920
|
+
else
|
|
921
|
+
{}
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
response = @client_stub.make_http_request(
|
|
925
|
+
verb,
|
|
926
|
+
uri: uri,
|
|
927
|
+
body: body || "",
|
|
928
|
+
params: query_string_params,
|
|
929
|
+
options: options
|
|
930
|
+
)
|
|
931
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
932
|
+
result = ::Google::Cloud::SecurityCenter::V2::ListFindingsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
933
|
+
|
|
934
|
+
yield result, operation if block_given?
|
|
935
|
+
result
|
|
936
|
+
end
|
|
937
|
+
|
|
938
|
+
##
|
|
939
|
+
# Baseline implementation for the list_mute_configs REST call
|
|
940
|
+
#
|
|
941
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListMuteConfigsRequest]
|
|
942
|
+
# A request object representing the call parameters. Required.
|
|
943
|
+
# @param options [::Gapic::CallOptions]
|
|
944
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
945
|
+
#
|
|
946
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
947
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ListMuteConfigsResponse]
|
|
948
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
949
|
+
#
|
|
950
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ListMuteConfigsResponse]
|
|
951
|
+
# A result object deserialized from the server's reply
|
|
952
|
+
def list_mute_configs request_pb, options = nil
|
|
953
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
954
|
+
|
|
955
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_mute_configs_request request_pb
|
|
956
|
+
query_string_params = if query_string_params.any?
|
|
957
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
958
|
+
else
|
|
959
|
+
{}
|
|
960
|
+
end
|
|
961
|
+
|
|
962
|
+
response = @client_stub.make_http_request(
|
|
963
|
+
verb,
|
|
964
|
+
uri: uri,
|
|
965
|
+
body: body || "",
|
|
966
|
+
params: query_string_params,
|
|
967
|
+
options: options
|
|
968
|
+
)
|
|
969
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
970
|
+
result = ::Google::Cloud::SecurityCenter::V2::ListMuteConfigsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
971
|
+
|
|
972
|
+
yield result, operation if block_given?
|
|
973
|
+
result
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
##
|
|
977
|
+
# Baseline implementation for the list_notification_configs REST call
|
|
978
|
+
#
|
|
979
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListNotificationConfigsRequest]
|
|
980
|
+
# A request object representing the call parameters. Required.
|
|
981
|
+
# @param options [::Gapic::CallOptions]
|
|
982
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
983
|
+
#
|
|
984
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
985
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ListNotificationConfigsResponse]
|
|
986
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
987
|
+
#
|
|
988
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ListNotificationConfigsResponse]
|
|
989
|
+
# A result object deserialized from the server's reply
|
|
990
|
+
def list_notification_configs request_pb, options = nil
|
|
991
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
992
|
+
|
|
993
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_notification_configs_request request_pb
|
|
994
|
+
query_string_params = if query_string_params.any?
|
|
995
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
996
|
+
else
|
|
997
|
+
{}
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
response = @client_stub.make_http_request(
|
|
1001
|
+
verb,
|
|
1002
|
+
uri: uri,
|
|
1003
|
+
body: body || "",
|
|
1004
|
+
params: query_string_params,
|
|
1005
|
+
options: options
|
|
1006
|
+
)
|
|
1007
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1008
|
+
result = ::Google::Cloud::SecurityCenter::V2::ListNotificationConfigsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1009
|
+
|
|
1010
|
+
yield result, operation if block_given?
|
|
1011
|
+
result
|
|
1012
|
+
end
|
|
1013
|
+
|
|
1014
|
+
##
|
|
1015
|
+
# Baseline implementation for the list_resource_value_configs REST call
|
|
1016
|
+
#
|
|
1017
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListResourceValueConfigsRequest]
|
|
1018
|
+
# A request object representing the call parameters. Required.
|
|
1019
|
+
# @param options [::Gapic::CallOptions]
|
|
1020
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1021
|
+
#
|
|
1022
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1023
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ListResourceValueConfigsResponse]
|
|
1024
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1025
|
+
#
|
|
1026
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ListResourceValueConfigsResponse]
|
|
1027
|
+
# A result object deserialized from the server's reply
|
|
1028
|
+
def list_resource_value_configs request_pb, options = nil
|
|
1029
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1030
|
+
|
|
1031
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_resource_value_configs_request request_pb
|
|
1032
|
+
query_string_params = if query_string_params.any?
|
|
1033
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1034
|
+
else
|
|
1035
|
+
{}
|
|
1036
|
+
end
|
|
1037
|
+
|
|
1038
|
+
response = @client_stub.make_http_request(
|
|
1039
|
+
verb,
|
|
1040
|
+
uri: uri,
|
|
1041
|
+
body: body || "",
|
|
1042
|
+
params: query_string_params,
|
|
1043
|
+
options: options
|
|
1044
|
+
)
|
|
1045
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1046
|
+
result = ::Google::Cloud::SecurityCenter::V2::ListResourceValueConfigsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1047
|
+
|
|
1048
|
+
yield result, operation if block_given?
|
|
1049
|
+
result
|
|
1050
|
+
end
|
|
1051
|
+
|
|
1052
|
+
##
|
|
1053
|
+
# Baseline implementation for the list_sources REST call
|
|
1054
|
+
#
|
|
1055
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListSourcesRequest]
|
|
1056
|
+
# A request object representing the call parameters. Required.
|
|
1057
|
+
# @param options [::Gapic::CallOptions]
|
|
1058
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1059
|
+
#
|
|
1060
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1061
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ListSourcesResponse]
|
|
1062
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1063
|
+
#
|
|
1064
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ListSourcesResponse]
|
|
1065
|
+
# A result object deserialized from the server's reply
|
|
1066
|
+
def list_sources request_pb, options = nil
|
|
1067
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1068
|
+
|
|
1069
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_sources_request request_pb
|
|
1070
|
+
query_string_params = if query_string_params.any?
|
|
1071
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1072
|
+
else
|
|
1073
|
+
{}
|
|
1074
|
+
end
|
|
1075
|
+
|
|
1076
|
+
response = @client_stub.make_http_request(
|
|
1077
|
+
verb,
|
|
1078
|
+
uri: uri,
|
|
1079
|
+
body: body || "",
|
|
1080
|
+
params: query_string_params,
|
|
1081
|
+
options: options
|
|
1082
|
+
)
|
|
1083
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1084
|
+
result = ::Google::Cloud::SecurityCenter::V2::ListSourcesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1085
|
+
|
|
1086
|
+
yield result, operation if block_given?
|
|
1087
|
+
result
|
|
1088
|
+
end
|
|
1089
|
+
|
|
1090
|
+
##
|
|
1091
|
+
# Baseline implementation for the list_valued_resources REST call
|
|
1092
|
+
#
|
|
1093
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListValuedResourcesRequest]
|
|
1094
|
+
# A request object representing the call parameters. Required.
|
|
1095
|
+
# @param options [::Gapic::CallOptions]
|
|
1096
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1097
|
+
#
|
|
1098
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1099
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ListValuedResourcesResponse]
|
|
1100
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1101
|
+
#
|
|
1102
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ListValuedResourcesResponse]
|
|
1103
|
+
# A result object deserialized from the server's reply
|
|
1104
|
+
def list_valued_resources request_pb, options = nil
|
|
1105
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1106
|
+
|
|
1107
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_valued_resources_request request_pb
|
|
1108
|
+
query_string_params = if query_string_params.any?
|
|
1109
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1110
|
+
else
|
|
1111
|
+
{}
|
|
1112
|
+
end
|
|
1113
|
+
|
|
1114
|
+
response = @client_stub.make_http_request(
|
|
1115
|
+
verb,
|
|
1116
|
+
uri: uri,
|
|
1117
|
+
body: body || "",
|
|
1118
|
+
params: query_string_params,
|
|
1119
|
+
options: options
|
|
1120
|
+
)
|
|
1121
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1122
|
+
result = ::Google::Cloud::SecurityCenter::V2::ListValuedResourcesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1123
|
+
|
|
1124
|
+
yield result, operation if block_given?
|
|
1125
|
+
result
|
|
1126
|
+
end
|
|
1127
|
+
|
|
1128
|
+
##
|
|
1129
|
+
# Baseline implementation for the set_finding_state REST call
|
|
1130
|
+
#
|
|
1131
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::SetFindingStateRequest]
|
|
1132
|
+
# A request object representing the call parameters. Required.
|
|
1133
|
+
# @param options [::Gapic::CallOptions]
|
|
1134
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1135
|
+
#
|
|
1136
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1137
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::Finding]
|
|
1138
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1139
|
+
#
|
|
1140
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Finding]
|
|
1141
|
+
# A result object deserialized from the server's reply
|
|
1142
|
+
def set_finding_state request_pb, options = nil
|
|
1143
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1144
|
+
|
|
1145
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_finding_state_request request_pb
|
|
1146
|
+
query_string_params = if query_string_params.any?
|
|
1147
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1148
|
+
else
|
|
1149
|
+
{}
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
response = @client_stub.make_http_request(
|
|
1153
|
+
verb,
|
|
1154
|
+
uri: uri,
|
|
1155
|
+
body: body || "",
|
|
1156
|
+
params: query_string_params,
|
|
1157
|
+
options: options
|
|
1158
|
+
)
|
|
1159
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1160
|
+
result = ::Google::Cloud::SecurityCenter::V2::Finding.decode_json response.body, ignore_unknown_fields: true
|
|
1161
|
+
|
|
1162
|
+
yield result, operation if block_given?
|
|
1163
|
+
result
|
|
1164
|
+
end
|
|
1165
|
+
|
|
1166
|
+
##
|
|
1167
|
+
# Baseline implementation for the set_iam_policy REST call
|
|
1168
|
+
#
|
|
1169
|
+
# @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
|
|
1170
|
+
# A request object representing the call parameters. Required.
|
|
1171
|
+
# @param options [::Gapic::CallOptions]
|
|
1172
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1173
|
+
#
|
|
1174
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1175
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
|
1176
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1177
|
+
#
|
|
1178
|
+
# @return [::Google::Iam::V1::Policy]
|
|
1179
|
+
# A result object deserialized from the server's reply
|
|
1180
|
+
def set_iam_policy request_pb, options = nil
|
|
1181
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1182
|
+
|
|
1183
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
|
1184
|
+
query_string_params = if query_string_params.any?
|
|
1185
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1186
|
+
else
|
|
1187
|
+
{}
|
|
1188
|
+
end
|
|
1189
|
+
|
|
1190
|
+
response = @client_stub.make_http_request(
|
|
1191
|
+
verb,
|
|
1192
|
+
uri: uri,
|
|
1193
|
+
body: body || "",
|
|
1194
|
+
params: query_string_params,
|
|
1195
|
+
options: options
|
|
1196
|
+
)
|
|
1197
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1198
|
+
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
|
1199
|
+
|
|
1200
|
+
yield result, operation if block_given?
|
|
1201
|
+
result
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1204
|
+
##
|
|
1205
|
+
# Baseline implementation for the set_mute REST call
|
|
1206
|
+
#
|
|
1207
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::SetMuteRequest]
|
|
1208
|
+
# A request object representing the call parameters. Required.
|
|
1209
|
+
# @param options [::Gapic::CallOptions]
|
|
1210
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1211
|
+
#
|
|
1212
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1213
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::Finding]
|
|
1214
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1215
|
+
#
|
|
1216
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Finding]
|
|
1217
|
+
# A result object deserialized from the server's reply
|
|
1218
|
+
def set_mute request_pb, options = nil
|
|
1219
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1220
|
+
|
|
1221
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_mute_request request_pb
|
|
1222
|
+
query_string_params = if query_string_params.any?
|
|
1223
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1224
|
+
else
|
|
1225
|
+
{}
|
|
1226
|
+
end
|
|
1227
|
+
|
|
1228
|
+
response = @client_stub.make_http_request(
|
|
1229
|
+
verb,
|
|
1230
|
+
uri: uri,
|
|
1231
|
+
body: body || "",
|
|
1232
|
+
params: query_string_params,
|
|
1233
|
+
options: options
|
|
1234
|
+
)
|
|
1235
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1236
|
+
result = ::Google::Cloud::SecurityCenter::V2::Finding.decode_json response.body, ignore_unknown_fields: true
|
|
1237
|
+
|
|
1238
|
+
yield result, operation if block_given?
|
|
1239
|
+
result
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1242
|
+
##
|
|
1243
|
+
# Baseline implementation for the test_iam_permissions REST call
|
|
1244
|
+
#
|
|
1245
|
+
# @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
|
|
1246
|
+
# A request object representing the call parameters. Required.
|
|
1247
|
+
# @param options [::Gapic::CallOptions]
|
|
1248
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1249
|
+
#
|
|
1250
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1251
|
+
# @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
|
|
1252
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1253
|
+
#
|
|
1254
|
+
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
|
1255
|
+
# A result object deserialized from the server's reply
|
|
1256
|
+
def test_iam_permissions request_pb, options = nil
|
|
1257
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1258
|
+
|
|
1259
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
1260
|
+
query_string_params = if query_string_params.any?
|
|
1261
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1262
|
+
else
|
|
1263
|
+
{}
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1266
|
+
response = @client_stub.make_http_request(
|
|
1267
|
+
verb,
|
|
1268
|
+
uri: uri,
|
|
1269
|
+
body: body || "",
|
|
1270
|
+
params: query_string_params,
|
|
1271
|
+
options: options
|
|
1272
|
+
)
|
|
1273
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1274
|
+
result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1275
|
+
|
|
1276
|
+
yield result, operation if block_given?
|
|
1277
|
+
result
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
##
|
|
1281
|
+
# Baseline implementation for the update_big_query_export REST call
|
|
1282
|
+
#
|
|
1283
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateBigQueryExportRequest]
|
|
1284
|
+
# A request object representing the call parameters. Required.
|
|
1285
|
+
# @param options [::Gapic::CallOptions]
|
|
1286
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1287
|
+
#
|
|
1288
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1289
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
|
|
1290
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1291
|
+
#
|
|
1292
|
+
# @return [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
|
|
1293
|
+
# A result object deserialized from the server's reply
|
|
1294
|
+
def update_big_query_export request_pb, options = nil
|
|
1295
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1296
|
+
|
|
1297
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_big_query_export_request request_pb
|
|
1298
|
+
query_string_params = if query_string_params.any?
|
|
1299
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1300
|
+
else
|
|
1301
|
+
{}
|
|
1302
|
+
end
|
|
1303
|
+
|
|
1304
|
+
response = @client_stub.make_http_request(
|
|
1305
|
+
verb,
|
|
1306
|
+
uri: uri,
|
|
1307
|
+
body: body || "",
|
|
1308
|
+
params: query_string_params,
|
|
1309
|
+
options: options
|
|
1310
|
+
)
|
|
1311
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1312
|
+
result = ::Google::Cloud::SecurityCenter::V2::BigQueryExport.decode_json response.body, ignore_unknown_fields: true
|
|
1313
|
+
|
|
1314
|
+
yield result, operation if block_given?
|
|
1315
|
+
result
|
|
1316
|
+
end
|
|
1317
|
+
|
|
1318
|
+
##
|
|
1319
|
+
# Baseline implementation for the update_external_system REST call
|
|
1320
|
+
#
|
|
1321
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateExternalSystemRequest]
|
|
1322
|
+
# A request object representing the call parameters. Required.
|
|
1323
|
+
# @param options [::Gapic::CallOptions]
|
|
1324
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1325
|
+
#
|
|
1326
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1327
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ExternalSystem]
|
|
1328
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1329
|
+
#
|
|
1330
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ExternalSystem]
|
|
1331
|
+
# A result object deserialized from the server's reply
|
|
1332
|
+
def update_external_system request_pb, options = nil
|
|
1333
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1334
|
+
|
|
1335
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_external_system_request request_pb
|
|
1336
|
+
query_string_params = if query_string_params.any?
|
|
1337
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1338
|
+
else
|
|
1339
|
+
{}
|
|
1340
|
+
end
|
|
1341
|
+
|
|
1342
|
+
response = @client_stub.make_http_request(
|
|
1343
|
+
verb,
|
|
1344
|
+
uri: uri,
|
|
1345
|
+
body: body || "",
|
|
1346
|
+
params: query_string_params,
|
|
1347
|
+
options: options
|
|
1348
|
+
)
|
|
1349
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1350
|
+
result = ::Google::Cloud::SecurityCenter::V2::ExternalSystem.decode_json response.body, ignore_unknown_fields: true
|
|
1351
|
+
|
|
1352
|
+
yield result, operation if block_given?
|
|
1353
|
+
result
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1356
|
+
##
|
|
1357
|
+
# Baseline implementation for the update_finding REST call
|
|
1358
|
+
#
|
|
1359
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateFindingRequest]
|
|
1360
|
+
# A request object representing the call parameters. Required.
|
|
1361
|
+
# @param options [::Gapic::CallOptions]
|
|
1362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1363
|
+
#
|
|
1364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1365
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::Finding]
|
|
1366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1367
|
+
#
|
|
1368
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Finding]
|
|
1369
|
+
# A result object deserialized from the server's reply
|
|
1370
|
+
def update_finding request_pb, options = nil
|
|
1371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1372
|
+
|
|
1373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_finding_request request_pb
|
|
1374
|
+
query_string_params = if query_string_params.any?
|
|
1375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1376
|
+
else
|
|
1377
|
+
{}
|
|
1378
|
+
end
|
|
1379
|
+
|
|
1380
|
+
response = @client_stub.make_http_request(
|
|
1381
|
+
verb,
|
|
1382
|
+
uri: uri,
|
|
1383
|
+
body: body || "",
|
|
1384
|
+
params: query_string_params,
|
|
1385
|
+
options: options
|
|
1386
|
+
)
|
|
1387
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1388
|
+
result = ::Google::Cloud::SecurityCenter::V2::Finding.decode_json response.body, ignore_unknown_fields: true
|
|
1389
|
+
|
|
1390
|
+
yield result, operation if block_given?
|
|
1391
|
+
result
|
|
1392
|
+
end
|
|
1393
|
+
|
|
1394
|
+
##
|
|
1395
|
+
# Baseline implementation for the update_mute_config REST call
|
|
1396
|
+
#
|
|
1397
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateMuteConfigRequest]
|
|
1398
|
+
# A request object representing the call parameters. Required.
|
|
1399
|
+
# @param options [::Gapic::CallOptions]
|
|
1400
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1401
|
+
#
|
|
1402
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1403
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::MuteConfig]
|
|
1404
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1405
|
+
#
|
|
1406
|
+
# @return [::Google::Cloud::SecurityCenter::V2::MuteConfig]
|
|
1407
|
+
# A result object deserialized from the server's reply
|
|
1408
|
+
def update_mute_config request_pb, options = nil
|
|
1409
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1410
|
+
|
|
1411
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_mute_config_request request_pb
|
|
1412
|
+
query_string_params = if query_string_params.any?
|
|
1413
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1414
|
+
else
|
|
1415
|
+
{}
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1418
|
+
response = @client_stub.make_http_request(
|
|
1419
|
+
verb,
|
|
1420
|
+
uri: uri,
|
|
1421
|
+
body: body || "",
|
|
1422
|
+
params: query_string_params,
|
|
1423
|
+
options: options
|
|
1424
|
+
)
|
|
1425
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1426
|
+
result = ::Google::Cloud::SecurityCenter::V2::MuteConfig.decode_json response.body, ignore_unknown_fields: true
|
|
1427
|
+
|
|
1428
|
+
yield result, operation if block_given?
|
|
1429
|
+
result
|
|
1430
|
+
end
|
|
1431
|
+
|
|
1432
|
+
##
|
|
1433
|
+
# Baseline implementation for the update_notification_config REST call
|
|
1434
|
+
#
|
|
1435
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateNotificationConfigRequest]
|
|
1436
|
+
# A request object representing the call parameters. Required.
|
|
1437
|
+
# @param options [::Gapic::CallOptions]
|
|
1438
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1439
|
+
#
|
|
1440
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1441
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::NotificationConfig]
|
|
1442
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1443
|
+
#
|
|
1444
|
+
# @return [::Google::Cloud::SecurityCenter::V2::NotificationConfig]
|
|
1445
|
+
# A result object deserialized from the server's reply
|
|
1446
|
+
def update_notification_config request_pb, options = nil
|
|
1447
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1448
|
+
|
|
1449
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_notification_config_request request_pb
|
|
1450
|
+
query_string_params = if query_string_params.any?
|
|
1451
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1452
|
+
else
|
|
1453
|
+
{}
|
|
1454
|
+
end
|
|
1455
|
+
|
|
1456
|
+
response = @client_stub.make_http_request(
|
|
1457
|
+
verb,
|
|
1458
|
+
uri: uri,
|
|
1459
|
+
body: body || "",
|
|
1460
|
+
params: query_string_params,
|
|
1461
|
+
options: options
|
|
1462
|
+
)
|
|
1463
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1464
|
+
result = ::Google::Cloud::SecurityCenter::V2::NotificationConfig.decode_json response.body, ignore_unknown_fields: true
|
|
1465
|
+
|
|
1466
|
+
yield result, operation if block_given?
|
|
1467
|
+
result
|
|
1468
|
+
end
|
|
1469
|
+
|
|
1470
|
+
##
|
|
1471
|
+
# Baseline implementation for the update_resource_value_config REST call
|
|
1472
|
+
#
|
|
1473
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateResourceValueConfigRequest]
|
|
1474
|
+
# A request object representing the call parameters. Required.
|
|
1475
|
+
# @param options [::Gapic::CallOptions]
|
|
1476
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1477
|
+
#
|
|
1478
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1479
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::ResourceValueConfig]
|
|
1480
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1481
|
+
#
|
|
1482
|
+
# @return [::Google::Cloud::SecurityCenter::V2::ResourceValueConfig]
|
|
1483
|
+
# A result object deserialized from the server's reply
|
|
1484
|
+
def update_resource_value_config request_pb, options = nil
|
|
1485
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1486
|
+
|
|
1487
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_resource_value_config_request request_pb
|
|
1488
|
+
query_string_params = if query_string_params.any?
|
|
1489
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1490
|
+
else
|
|
1491
|
+
{}
|
|
1492
|
+
end
|
|
1493
|
+
|
|
1494
|
+
response = @client_stub.make_http_request(
|
|
1495
|
+
verb,
|
|
1496
|
+
uri: uri,
|
|
1497
|
+
body: body || "",
|
|
1498
|
+
params: query_string_params,
|
|
1499
|
+
options: options
|
|
1500
|
+
)
|
|
1501
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1502
|
+
result = ::Google::Cloud::SecurityCenter::V2::ResourceValueConfig.decode_json response.body, ignore_unknown_fields: true
|
|
1503
|
+
|
|
1504
|
+
yield result, operation if block_given?
|
|
1505
|
+
result
|
|
1506
|
+
end
|
|
1507
|
+
|
|
1508
|
+
##
|
|
1509
|
+
# Baseline implementation for the update_security_marks REST call
|
|
1510
|
+
#
|
|
1511
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateSecurityMarksRequest]
|
|
1512
|
+
# A request object representing the call parameters. Required.
|
|
1513
|
+
# @param options [::Gapic::CallOptions]
|
|
1514
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1515
|
+
#
|
|
1516
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1517
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::SecurityMarks]
|
|
1518
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1519
|
+
#
|
|
1520
|
+
# @return [::Google::Cloud::SecurityCenter::V2::SecurityMarks]
|
|
1521
|
+
# A result object deserialized from the server's reply
|
|
1522
|
+
def update_security_marks request_pb, options = nil
|
|
1523
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1524
|
+
|
|
1525
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_security_marks_request request_pb
|
|
1526
|
+
query_string_params = if query_string_params.any?
|
|
1527
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1528
|
+
else
|
|
1529
|
+
{}
|
|
1530
|
+
end
|
|
1531
|
+
|
|
1532
|
+
response = @client_stub.make_http_request(
|
|
1533
|
+
verb,
|
|
1534
|
+
uri: uri,
|
|
1535
|
+
body: body || "",
|
|
1536
|
+
params: query_string_params,
|
|
1537
|
+
options: options
|
|
1538
|
+
)
|
|
1539
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1540
|
+
result = ::Google::Cloud::SecurityCenter::V2::SecurityMarks.decode_json response.body, ignore_unknown_fields: true
|
|
1541
|
+
|
|
1542
|
+
yield result, operation if block_given?
|
|
1543
|
+
result
|
|
1544
|
+
end
|
|
1545
|
+
|
|
1546
|
+
##
|
|
1547
|
+
# Baseline implementation for the update_source REST call
|
|
1548
|
+
#
|
|
1549
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateSourceRequest]
|
|
1550
|
+
# A request object representing the call parameters. Required.
|
|
1551
|
+
# @param options [::Gapic::CallOptions]
|
|
1552
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1553
|
+
#
|
|
1554
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1555
|
+
# @yieldparam result [::Google::Cloud::SecurityCenter::V2::Source]
|
|
1556
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1557
|
+
#
|
|
1558
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Source]
|
|
1559
|
+
# A result object deserialized from the server's reply
|
|
1560
|
+
def update_source request_pb, options = nil
|
|
1561
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1562
|
+
|
|
1563
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_source_request request_pb
|
|
1564
|
+
query_string_params = if query_string_params.any?
|
|
1565
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1566
|
+
else
|
|
1567
|
+
{}
|
|
1568
|
+
end
|
|
1569
|
+
|
|
1570
|
+
response = @client_stub.make_http_request(
|
|
1571
|
+
verb,
|
|
1572
|
+
uri: uri,
|
|
1573
|
+
body: body || "",
|
|
1574
|
+
params: query_string_params,
|
|
1575
|
+
options: options
|
|
1576
|
+
)
|
|
1577
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1578
|
+
result = ::Google::Cloud::SecurityCenter::V2::Source.decode_json response.body, ignore_unknown_fields: true
|
|
1579
|
+
|
|
1580
|
+
yield result, operation if block_given?
|
|
1581
|
+
result
|
|
1582
|
+
end
|
|
1583
|
+
|
|
1584
|
+
##
|
|
1585
|
+
# @private
|
|
1586
|
+
#
|
|
1587
|
+
# GRPC transcoding helper method for the batch_create_resource_value_configs REST call
|
|
1588
|
+
#
|
|
1589
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::BatchCreateResourceValueConfigsRequest]
|
|
1590
|
+
# A request object representing the call parameters. Required.
|
|
1591
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1592
|
+
# Uri, Body, Query string parameters
|
|
1593
|
+
def self.transcode_batch_create_resource_value_configs_request request_pb
|
|
1594
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1595
|
+
.with_bindings(
|
|
1596
|
+
uri_method: :post,
|
|
1597
|
+
uri_template: "/v2/{parent}/resourceValueConfigs:batchCreate",
|
|
1598
|
+
body: "*",
|
|
1599
|
+
matches: [
|
|
1600
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
1601
|
+
]
|
|
1602
|
+
)
|
|
1603
|
+
transcoder.transcode request_pb
|
|
1604
|
+
end
|
|
1605
|
+
|
|
1606
|
+
##
|
|
1607
|
+
# @private
|
|
1608
|
+
#
|
|
1609
|
+
# GRPC transcoding helper method for the bulk_mute_findings REST call
|
|
1610
|
+
#
|
|
1611
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::BulkMuteFindingsRequest]
|
|
1612
|
+
# A request object representing the call parameters. Required.
|
|
1613
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1614
|
+
# Uri, Body, Query string parameters
|
|
1615
|
+
def self.transcode_bulk_mute_findings_request request_pb
|
|
1616
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1617
|
+
.with_bindings(
|
|
1618
|
+
uri_method: :post,
|
|
1619
|
+
uri_template: "/v2/{parent}/findings:bulkMute",
|
|
1620
|
+
body: "*",
|
|
1621
|
+
matches: [
|
|
1622
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
1623
|
+
]
|
|
1624
|
+
)
|
|
1625
|
+
.with_bindings(
|
|
1626
|
+
uri_method: :post,
|
|
1627
|
+
uri_template: "/v2/{parent}/findings:bulkMute",
|
|
1628
|
+
body: "*",
|
|
1629
|
+
matches: [
|
|
1630
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
1631
|
+
]
|
|
1632
|
+
)
|
|
1633
|
+
.with_bindings(
|
|
1634
|
+
uri_method: :post,
|
|
1635
|
+
uri_template: "/v2/{parent}/findings:bulkMute",
|
|
1636
|
+
body: "*",
|
|
1637
|
+
matches: [
|
|
1638
|
+
["parent", %r{^folders/[^/]+/?$}, false]
|
|
1639
|
+
]
|
|
1640
|
+
)
|
|
1641
|
+
.with_bindings(
|
|
1642
|
+
uri_method: :post,
|
|
1643
|
+
uri_template: "/v2/{parent}/findings:bulkMute",
|
|
1644
|
+
body: "*",
|
|
1645
|
+
matches: [
|
|
1646
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
|
|
1647
|
+
]
|
|
1648
|
+
)
|
|
1649
|
+
.with_bindings(
|
|
1650
|
+
uri_method: :post,
|
|
1651
|
+
uri_template: "/v2/{parent}/findings:bulkMute",
|
|
1652
|
+
body: "*",
|
|
1653
|
+
matches: [
|
|
1654
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
|
1655
|
+
]
|
|
1656
|
+
)
|
|
1657
|
+
.with_bindings(
|
|
1658
|
+
uri_method: :post,
|
|
1659
|
+
uri_template: "/v2/{parent}/findings:bulkMute",
|
|
1660
|
+
body: "*",
|
|
1661
|
+
matches: [
|
|
1662
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1663
|
+
]
|
|
1664
|
+
)
|
|
1665
|
+
transcoder.transcode request_pb
|
|
1666
|
+
end
|
|
1667
|
+
|
|
1668
|
+
##
|
|
1669
|
+
# @private
|
|
1670
|
+
#
|
|
1671
|
+
# GRPC transcoding helper method for the create_big_query_export REST call
|
|
1672
|
+
#
|
|
1673
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateBigQueryExportRequest]
|
|
1674
|
+
# A request object representing the call parameters. Required.
|
|
1675
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1676
|
+
# Uri, Body, Query string parameters
|
|
1677
|
+
def self.transcode_create_big_query_export_request request_pb
|
|
1678
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1679
|
+
.with_bindings(
|
|
1680
|
+
uri_method: :post,
|
|
1681
|
+
uri_template: "/v2/{parent}/bigQueryExports",
|
|
1682
|
+
body: "big_query_export",
|
|
1683
|
+
matches: [
|
|
1684
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
1685
|
+
]
|
|
1686
|
+
)
|
|
1687
|
+
.with_bindings(
|
|
1688
|
+
uri_method: :post,
|
|
1689
|
+
uri_template: "/v2/{parent}/bigQueryExports",
|
|
1690
|
+
body: "big_query_export",
|
|
1691
|
+
matches: [
|
|
1692
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
|
|
1693
|
+
]
|
|
1694
|
+
)
|
|
1695
|
+
.with_bindings(
|
|
1696
|
+
uri_method: :post,
|
|
1697
|
+
uri_template: "/v2/{parent}/bigQueryExports",
|
|
1698
|
+
body: "big_query_export",
|
|
1699
|
+
matches: [
|
|
1700
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1701
|
+
]
|
|
1702
|
+
)
|
|
1703
|
+
transcoder.transcode request_pb
|
|
1704
|
+
end
|
|
1705
|
+
|
|
1706
|
+
##
|
|
1707
|
+
# @private
|
|
1708
|
+
#
|
|
1709
|
+
# GRPC transcoding helper method for the create_finding REST call
|
|
1710
|
+
#
|
|
1711
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateFindingRequest]
|
|
1712
|
+
# A request object representing the call parameters. Required.
|
|
1713
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1714
|
+
# Uri, Body, Query string parameters
|
|
1715
|
+
def self.transcode_create_finding_request request_pb
|
|
1716
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1717
|
+
.with_bindings(
|
|
1718
|
+
uri_method: :post,
|
|
1719
|
+
uri_template: "/v2/{parent}/findings",
|
|
1720
|
+
body: "finding",
|
|
1721
|
+
matches: [
|
|
1722
|
+
["parent", %r{^organizations/[^/]+/sources/[^/]+/locations/[^/]+/?$}, false]
|
|
1723
|
+
]
|
|
1724
|
+
)
|
|
1725
|
+
.with_bindings(
|
|
1726
|
+
uri_method: :post,
|
|
1727
|
+
uri_template: "/v2/{parent}/findings",
|
|
1728
|
+
body: "finding",
|
|
1729
|
+
matches: [
|
|
1730
|
+
["parent", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
|
|
1731
|
+
]
|
|
1732
|
+
)
|
|
1733
|
+
transcoder.transcode request_pb
|
|
1734
|
+
end
|
|
1735
|
+
|
|
1736
|
+
##
|
|
1737
|
+
# @private
|
|
1738
|
+
#
|
|
1739
|
+
# GRPC transcoding helper method for the create_mute_config REST call
|
|
1740
|
+
#
|
|
1741
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateMuteConfigRequest]
|
|
1742
|
+
# A request object representing the call parameters. Required.
|
|
1743
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1744
|
+
# Uri, Body, Query string parameters
|
|
1745
|
+
def self.transcode_create_mute_config_request request_pb
|
|
1746
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1747
|
+
.with_bindings(
|
|
1748
|
+
uri_method: :post,
|
|
1749
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
1750
|
+
body: "mute_config",
|
|
1751
|
+
matches: [
|
|
1752
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
1753
|
+
]
|
|
1754
|
+
)
|
|
1755
|
+
.with_bindings(
|
|
1756
|
+
uri_method: :post,
|
|
1757
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
1758
|
+
body: "mute_config",
|
|
1759
|
+
matches: [
|
|
1760
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
|
|
1761
|
+
]
|
|
1762
|
+
)
|
|
1763
|
+
.with_bindings(
|
|
1764
|
+
uri_method: :post,
|
|
1765
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
1766
|
+
body: "mute_config",
|
|
1767
|
+
matches: [
|
|
1768
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1769
|
+
]
|
|
1770
|
+
)
|
|
1771
|
+
.with_bindings(
|
|
1772
|
+
uri_method: :post,
|
|
1773
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
1774
|
+
body: "mute_config",
|
|
1775
|
+
matches: [
|
|
1776
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
1777
|
+
]
|
|
1778
|
+
)
|
|
1779
|
+
.with_bindings(
|
|
1780
|
+
uri_method: :post,
|
|
1781
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
1782
|
+
body: "mute_config",
|
|
1783
|
+
matches: [
|
|
1784
|
+
["parent", %r{^folders/[^/]+/?$}, false]
|
|
1785
|
+
]
|
|
1786
|
+
)
|
|
1787
|
+
.with_bindings(
|
|
1788
|
+
uri_method: :post,
|
|
1789
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
1790
|
+
body: "mute_config",
|
|
1791
|
+
matches: [
|
|
1792
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
|
1793
|
+
]
|
|
1794
|
+
)
|
|
1795
|
+
transcoder.transcode request_pb
|
|
1796
|
+
end
|
|
1797
|
+
|
|
1798
|
+
##
|
|
1799
|
+
# @private
|
|
1800
|
+
#
|
|
1801
|
+
# GRPC transcoding helper method for the create_notification_config REST call
|
|
1802
|
+
#
|
|
1803
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateNotificationConfigRequest]
|
|
1804
|
+
# A request object representing the call parameters. Required.
|
|
1805
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1806
|
+
# Uri, Body, Query string parameters
|
|
1807
|
+
def self.transcode_create_notification_config_request request_pb
|
|
1808
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1809
|
+
.with_bindings(
|
|
1810
|
+
uri_method: :post,
|
|
1811
|
+
uri_template: "/v2/{parent}/notificationConfigs",
|
|
1812
|
+
body: "notification_config",
|
|
1813
|
+
matches: [
|
|
1814
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
1815
|
+
]
|
|
1816
|
+
)
|
|
1817
|
+
.with_bindings(
|
|
1818
|
+
uri_method: :post,
|
|
1819
|
+
uri_template: "/v2/{parent}/notificationConfigs",
|
|
1820
|
+
body: "notification_config",
|
|
1821
|
+
matches: [
|
|
1822
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
|
|
1823
|
+
]
|
|
1824
|
+
)
|
|
1825
|
+
.with_bindings(
|
|
1826
|
+
uri_method: :post,
|
|
1827
|
+
uri_template: "/v2/{parent}/notificationConfigs",
|
|
1828
|
+
body: "notification_config",
|
|
1829
|
+
matches: [
|
|
1830
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1831
|
+
]
|
|
1832
|
+
)
|
|
1833
|
+
transcoder.transcode request_pb
|
|
1834
|
+
end
|
|
1835
|
+
|
|
1836
|
+
##
|
|
1837
|
+
# @private
|
|
1838
|
+
#
|
|
1839
|
+
# GRPC transcoding helper method for the create_source REST call
|
|
1840
|
+
#
|
|
1841
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::CreateSourceRequest]
|
|
1842
|
+
# A request object representing the call parameters. Required.
|
|
1843
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1844
|
+
# Uri, Body, Query string parameters
|
|
1845
|
+
def self.transcode_create_source_request request_pb
|
|
1846
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1847
|
+
.with_bindings(
|
|
1848
|
+
uri_method: :post,
|
|
1849
|
+
uri_template: "/v2/{parent}/sources",
|
|
1850
|
+
body: "source",
|
|
1851
|
+
matches: [
|
|
1852
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
1853
|
+
]
|
|
1854
|
+
)
|
|
1855
|
+
transcoder.transcode request_pb
|
|
1856
|
+
end
|
|
1857
|
+
|
|
1858
|
+
##
|
|
1859
|
+
# @private
|
|
1860
|
+
#
|
|
1861
|
+
# GRPC transcoding helper method for the delete_big_query_export REST call
|
|
1862
|
+
#
|
|
1863
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::DeleteBigQueryExportRequest]
|
|
1864
|
+
# A request object representing the call parameters. Required.
|
|
1865
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1866
|
+
# Uri, Body, Query string parameters
|
|
1867
|
+
def self.transcode_delete_big_query_export_request request_pb
|
|
1868
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1869
|
+
.with_bindings(
|
|
1870
|
+
uri_method: :delete,
|
|
1871
|
+
uri_template: "/v2/{name}",
|
|
1872
|
+
matches: [
|
|
1873
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/bigQueryExports/[^/]+/?$}, false]
|
|
1874
|
+
]
|
|
1875
|
+
)
|
|
1876
|
+
.with_bindings(
|
|
1877
|
+
uri_method: :delete,
|
|
1878
|
+
uri_template: "/v2/{name}",
|
|
1879
|
+
matches: [
|
|
1880
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/bigQueryExports/[^/]+/?$}, false]
|
|
1881
|
+
]
|
|
1882
|
+
)
|
|
1883
|
+
.with_bindings(
|
|
1884
|
+
uri_method: :delete,
|
|
1885
|
+
uri_template: "/v2/{name}",
|
|
1886
|
+
matches: [
|
|
1887
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/bigQueryExports/[^/]+/?$}, false]
|
|
1888
|
+
]
|
|
1889
|
+
)
|
|
1890
|
+
transcoder.transcode request_pb
|
|
1891
|
+
end
|
|
1892
|
+
|
|
1893
|
+
##
|
|
1894
|
+
# @private
|
|
1895
|
+
#
|
|
1896
|
+
# GRPC transcoding helper method for the delete_mute_config REST call
|
|
1897
|
+
#
|
|
1898
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::DeleteMuteConfigRequest]
|
|
1899
|
+
# A request object representing the call parameters. Required.
|
|
1900
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1901
|
+
# Uri, Body, Query string parameters
|
|
1902
|
+
def self.transcode_delete_mute_config_request request_pb
|
|
1903
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1904
|
+
.with_bindings(
|
|
1905
|
+
uri_method: :delete,
|
|
1906
|
+
uri_template: "/v2/{name}",
|
|
1907
|
+
matches: [
|
|
1908
|
+
["name", %r{^organizations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
1909
|
+
]
|
|
1910
|
+
)
|
|
1911
|
+
.with_bindings(
|
|
1912
|
+
uri_method: :delete,
|
|
1913
|
+
uri_template: "/v2/{name}",
|
|
1914
|
+
matches: [
|
|
1915
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
1916
|
+
]
|
|
1917
|
+
)
|
|
1918
|
+
.with_bindings(
|
|
1919
|
+
uri_method: :delete,
|
|
1920
|
+
uri_template: "/v2/{name}",
|
|
1921
|
+
matches: [
|
|
1922
|
+
["name", %r{^folders/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
1923
|
+
]
|
|
1924
|
+
)
|
|
1925
|
+
.with_bindings(
|
|
1926
|
+
uri_method: :delete,
|
|
1927
|
+
uri_template: "/v2/{name}",
|
|
1928
|
+
matches: [
|
|
1929
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
1930
|
+
]
|
|
1931
|
+
)
|
|
1932
|
+
.with_bindings(
|
|
1933
|
+
uri_method: :delete,
|
|
1934
|
+
uri_template: "/v2/{name}",
|
|
1935
|
+
matches: [
|
|
1936
|
+
["name", %r{^projects/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
1937
|
+
]
|
|
1938
|
+
)
|
|
1939
|
+
.with_bindings(
|
|
1940
|
+
uri_method: :delete,
|
|
1941
|
+
uri_template: "/v2/{name}",
|
|
1942
|
+
matches: [
|
|
1943
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
1944
|
+
]
|
|
1945
|
+
)
|
|
1946
|
+
transcoder.transcode request_pb
|
|
1947
|
+
end
|
|
1948
|
+
|
|
1949
|
+
##
|
|
1950
|
+
# @private
|
|
1951
|
+
#
|
|
1952
|
+
# GRPC transcoding helper method for the delete_notification_config REST call
|
|
1953
|
+
#
|
|
1954
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::DeleteNotificationConfigRequest]
|
|
1955
|
+
# A request object representing the call parameters. Required.
|
|
1956
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1957
|
+
# Uri, Body, Query string parameters
|
|
1958
|
+
def self.transcode_delete_notification_config_request request_pb
|
|
1959
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1960
|
+
.with_bindings(
|
|
1961
|
+
uri_method: :delete,
|
|
1962
|
+
uri_template: "/v2/{name}",
|
|
1963
|
+
matches: [
|
|
1964
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/notificationConfigs/[^/]+/?$}, false]
|
|
1965
|
+
]
|
|
1966
|
+
)
|
|
1967
|
+
.with_bindings(
|
|
1968
|
+
uri_method: :delete,
|
|
1969
|
+
uri_template: "/v2/{name}",
|
|
1970
|
+
matches: [
|
|
1971
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/notificationConfigs/[^/]+/?$}, false]
|
|
1972
|
+
]
|
|
1973
|
+
)
|
|
1974
|
+
.with_bindings(
|
|
1975
|
+
uri_method: :delete,
|
|
1976
|
+
uri_template: "/v2/{name}",
|
|
1977
|
+
matches: [
|
|
1978
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/notificationConfigs/[^/]+/?$}, false]
|
|
1979
|
+
]
|
|
1980
|
+
)
|
|
1981
|
+
transcoder.transcode request_pb
|
|
1982
|
+
end
|
|
1983
|
+
|
|
1984
|
+
##
|
|
1985
|
+
# @private
|
|
1986
|
+
#
|
|
1987
|
+
# GRPC transcoding helper method for the delete_resource_value_config REST call
|
|
1988
|
+
#
|
|
1989
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::DeleteResourceValueConfigRequest]
|
|
1990
|
+
# A request object representing the call parameters. Required.
|
|
1991
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1992
|
+
# Uri, Body, Query string parameters
|
|
1993
|
+
def self.transcode_delete_resource_value_config_request request_pb
|
|
1994
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1995
|
+
.with_bindings(
|
|
1996
|
+
uri_method: :delete,
|
|
1997
|
+
uri_template: "/v2/{name}",
|
|
1998
|
+
matches: [
|
|
1999
|
+
["name", %r{^organizations/[^/]+/resourceValueConfigs/[^/]+/?$}, false]
|
|
2000
|
+
]
|
|
2001
|
+
)
|
|
2002
|
+
transcoder.transcode request_pb
|
|
2003
|
+
end
|
|
2004
|
+
|
|
2005
|
+
##
|
|
2006
|
+
# @private
|
|
2007
|
+
#
|
|
2008
|
+
# GRPC transcoding helper method for the get_big_query_export REST call
|
|
2009
|
+
#
|
|
2010
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetBigQueryExportRequest]
|
|
2011
|
+
# A request object representing the call parameters. Required.
|
|
2012
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2013
|
+
# Uri, Body, Query string parameters
|
|
2014
|
+
def self.transcode_get_big_query_export_request request_pb
|
|
2015
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2016
|
+
.with_bindings(
|
|
2017
|
+
uri_method: :get,
|
|
2018
|
+
uri_template: "/v2/{name}",
|
|
2019
|
+
matches: [
|
|
2020
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/bigQueryExports/[^/]+/?$}, false]
|
|
2021
|
+
]
|
|
2022
|
+
)
|
|
2023
|
+
.with_bindings(
|
|
2024
|
+
uri_method: :get,
|
|
2025
|
+
uri_template: "/v2/{name}",
|
|
2026
|
+
matches: [
|
|
2027
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/bigQueryExports/[^/]+/?$}, false]
|
|
2028
|
+
]
|
|
2029
|
+
)
|
|
2030
|
+
.with_bindings(
|
|
2031
|
+
uri_method: :get,
|
|
2032
|
+
uri_template: "/v2/{name}",
|
|
2033
|
+
matches: [
|
|
2034
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/bigQueryExports/[^/]+/?$}, false]
|
|
2035
|
+
]
|
|
2036
|
+
)
|
|
2037
|
+
transcoder.transcode request_pb
|
|
2038
|
+
end
|
|
2039
|
+
|
|
2040
|
+
##
|
|
2041
|
+
# @private
|
|
2042
|
+
#
|
|
2043
|
+
# GRPC transcoding helper method for the get_simulation REST call
|
|
2044
|
+
#
|
|
2045
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetSimulationRequest]
|
|
2046
|
+
# A request object representing the call parameters. Required.
|
|
2047
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2048
|
+
# Uri, Body, Query string parameters
|
|
2049
|
+
def self.transcode_get_simulation_request request_pb
|
|
2050
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2051
|
+
.with_bindings(
|
|
2052
|
+
uri_method: :get,
|
|
2053
|
+
uri_template: "/v2/{name}",
|
|
2054
|
+
matches: [
|
|
2055
|
+
["name", %r{^organizations/[^/]+/simulations/[^/]+/?$}, false]
|
|
2056
|
+
]
|
|
2057
|
+
)
|
|
2058
|
+
transcoder.transcode request_pb
|
|
2059
|
+
end
|
|
2060
|
+
|
|
2061
|
+
##
|
|
2062
|
+
# @private
|
|
2063
|
+
#
|
|
2064
|
+
# GRPC transcoding helper method for the get_valued_resource REST call
|
|
2065
|
+
#
|
|
2066
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetValuedResourceRequest]
|
|
2067
|
+
# A request object representing the call parameters. Required.
|
|
2068
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2069
|
+
# Uri, Body, Query string parameters
|
|
2070
|
+
def self.transcode_get_valued_resource_request request_pb
|
|
2071
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2072
|
+
.with_bindings(
|
|
2073
|
+
uri_method: :get,
|
|
2074
|
+
uri_template: "/v2/{name}",
|
|
2075
|
+
matches: [
|
|
2076
|
+
["name", %r{^organizations/[^/]+/simulations/[^/]+/valuedResources/[^/]+/?$}, false]
|
|
2077
|
+
]
|
|
2078
|
+
)
|
|
2079
|
+
transcoder.transcode request_pb
|
|
2080
|
+
end
|
|
2081
|
+
|
|
2082
|
+
##
|
|
2083
|
+
# @private
|
|
2084
|
+
#
|
|
2085
|
+
# GRPC transcoding helper method for the get_iam_policy REST call
|
|
2086
|
+
#
|
|
2087
|
+
# @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
|
|
2088
|
+
# A request object representing the call parameters. Required.
|
|
2089
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2090
|
+
# Uri, Body, Query string parameters
|
|
2091
|
+
def self.transcode_get_iam_policy_request request_pb
|
|
2092
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2093
|
+
.with_bindings(
|
|
2094
|
+
uri_method: :post,
|
|
2095
|
+
uri_template: "/v2/{resource}:getIamPolicy",
|
|
2096
|
+
body: "*",
|
|
2097
|
+
matches: [
|
|
2098
|
+
["resource", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
|
|
2099
|
+
]
|
|
2100
|
+
)
|
|
2101
|
+
transcoder.transcode request_pb
|
|
2102
|
+
end
|
|
2103
|
+
|
|
2104
|
+
##
|
|
2105
|
+
# @private
|
|
2106
|
+
#
|
|
2107
|
+
# GRPC transcoding helper method for the get_mute_config REST call
|
|
2108
|
+
#
|
|
2109
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetMuteConfigRequest]
|
|
2110
|
+
# A request object representing the call parameters. Required.
|
|
2111
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2112
|
+
# Uri, Body, Query string parameters
|
|
2113
|
+
def self.transcode_get_mute_config_request request_pb
|
|
2114
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2115
|
+
.with_bindings(
|
|
2116
|
+
uri_method: :get,
|
|
2117
|
+
uri_template: "/v2/{name}",
|
|
2118
|
+
matches: [
|
|
2119
|
+
["name", %r{^organizations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2120
|
+
]
|
|
2121
|
+
)
|
|
2122
|
+
.with_bindings(
|
|
2123
|
+
uri_method: :get,
|
|
2124
|
+
uri_template: "/v2/{name}",
|
|
2125
|
+
matches: [
|
|
2126
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2127
|
+
]
|
|
2128
|
+
)
|
|
2129
|
+
.with_bindings(
|
|
2130
|
+
uri_method: :get,
|
|
2131
|
+
uri_template: "/v2/{name}",
|
|
2132
|
+
matches: [
|
|
2133
|
+
["name", %r{^folders/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2134
|
+
]
|
|
2135
|
+
)
|
|
2136
|
+
.with_bindings(
|
|
2137
|
+
uri_method: :get,
|
|
2138
|
+
uri_template: "/v2/{name}",
|
|
2139
|
+
matches: [
|
|
2140
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2141
|
+
]
|
|
2142
|
+
)
|
|
2143
|
+
.with_bindings(
|
|
2144
|
+
uri_method: :get,
|
|
2145
|
+
uri_template: "/v2/{name}",
|
|
2146
|
+
matches: [
|
|
2147
|
+
["name", %r{^projects/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2148
|
+
]
|
|
2149
|
+
)
|
|
2150
|
+
.with_bindings(
|
|
2151
|
+
uri_method: :get,
|
|
2152
|
+
uri_template: "/v2/{name}",
|
|
2153
|
+
matches: [
|
|
2154
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2155
|
+
]
|
|
2156
|
+
)
|
|
2157
|
+
transcoder.transcode request_pb
|
|
2158
|
+
end
|
|
2159
|
+
|
|
2160
|
+
##
|
|
2161
|
+
# @private
|
|
2162
|
+
#
|
|
2163
|
+
# GRPC transcoding helper method for the get_notification_config REST call
|
|
2164
|
+
#
|
|
2165
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetNotificationConfigRequest]
|
|
2166
|
+
# A request object representing the call parameters. Required.
|
|
2167
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2168
|
+
# Uri, Body, Query string parameters
|
|
2169
|
+
def self.transcode_get_notification_config_request request_pb
|
|
2170
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2171
|
+
.with_bindings(
|
|
2172
|
+
uri_method: :get,
|
|
2173
|
+
uri_template: "/v2/{name}",
|
|
2174
|
+
matches: [
|
|
2175
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/notificationConfigs/[^/]+/?$}, false]
|
|
2176
|
+
]
|
|
2177
|
+
)
|
|
2178
|
+
.with_bindings(
|
|
2179
|
+
uri_method: :get,
|
|
2180
|
+
uri_template: "/v2/{name}",
|
|
2181
|
+
matches: [
|
|
2182
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/notificationConfigs/[^/]+/?$}, false]
|
|
2183
|
+
]
|
|
2184
|
+
)
|
|
2185
|
+
.with_bindings(
|
|
2186
|
+
uri_method: :get,
|
|
2187
|
+
uri_template: "/v2/{name}",
|
|
2188
|
+
matches: [
|
|
2189
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/notificationConfigs/[^/]+/?$}, false]
|
|
2190
|
+
]
|
|
2191
|
+
)
|
|
2192
|
+
transcoder.transcode request_pb
|
|
2193
|
+
end
|
|
2194
|
+
|
|
2195
|
+
##
|
|
2196
|
+
# @private
|
|
2197
|
+
#
|
|
2198
|
+
# GRPC transcoding helper method for the get_resource_value_config REST call
|
|
2199
|
+
#
|
|
2200
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetResourceValueConfigRequest]
|
|
2201
|
+
# A request object representing the call parameters. Required.
|
|
2202
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2203
|
+
# Uri, Body, Query string parameters
|
|
2204
|
+
def self.transcode_get_resource_value_config_request request_pb
|
|
2205
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2206
|
+
.with_bindings(
|
|
2207
|
+
uri_method: :get,
|
|
2208
|
+
uri_template: "/v2/{name}",
|
|
2209
|
+
matches: [
|
|
2210
|
+
["name", %r{^organizations/[^/]+/resourceValueConfigs/[^/]+/?$}, false]
|
|
2211
|
+
]
|
|
2212
|
+
)
|
|
2213
|
+
transcoder.transcode request_pb
|
|
2214
|
+
end
|
|
2215
|
+
|
|
2216
|
+
##
|
|
2217
|
+
# @private
|
|
2218
|
+
#
|
|
2219
|
+
# GRPC transcoding helper method for the get_source REST call
|
|
2220
|
+
#
|
|
2221
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GetSourceRequest]
|
|
2222
|
+
# A request object representing the call parameters. Required.
|
|
2223
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2224
|
+
# Uri, Body, Query string parameters
|
|
2225
|
+
def self.transcode_get_source_request request_pb
|
|
2226
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2227
|
+
.with_bindings(
|
|
2228
|
+
uri_method: :get,
|
|
2229
|
+
uri_template: "/v2/{name}",
|
|
2230
|
+
matches: [
|
|
2231
|
+
["name", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
|
|
2232
|
+
]
|
|
2233
|
+
)
|
|
2234
|
+
transcoder.transcode request_pb
|
|
2235
|
+
end
|
|
2236
|
+
|
|
2237
|
+
##
|
|
2238
|
+
# @private
|
|
2239
|
+
#
|
|
2240
|
+
# GRPC transcoding helper method for the group_findings REST call
|
|
2241
|
+
#
|
|
2242
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::GroupFindingsRequest]
|
|
2243
|
+
# A request object representing the call parameters. Required.
|
|
2244
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2245
|
+
# Uri, Body, Query string parameters
|
|
2246
|
+
def self.transcode_group_findings_request request_pb
|
|
2247
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2248
|
+
.with_bindings(
|
|
2249
|
+
uri_method: :post,
|
|
2250
|
+
uri_template: "/v2/{parent}/findings:group",
|
|
2251
|
+
body: "*",
|
|
2252
|
+
matches: [
|
|
2253
|
+
["parent", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
|
|
2254
|
+
]
|
|
2255
|
+
)
|
|
2256
|
+
.with_bindings(
|
|
2257
|
+
uri_method: :post,
|
|
2258
|
+
uri_template: "/v2/{parent}/findings:group",
|
|
2259
|
+
body: "*",
|
|
2260
|
+
matches: [
|
|
2261
|
+
["parent", %r{^organizations/[^/]+/sources/[^/]+/locations/[^/]+/?$}, false]
|
|
2262
|
+
]
|
|
2263
|
+
)
|
|
2264
|
+
.with_bindings(
|
|
2265
|
+
uri_method: :post,
|
|
2266
|
+
uri_template: "/v2/{parent}/findings:group",
|
|
2267
|
+
body: "*",
|
|
2268
|
+
matches: [
|
|
2269
|
+
["parent", %r{^folders/[^/]+/sources/[^/]+/?$}, false]
|
|
2270
|
+
]
|
|
2271
|
+
)
|
|
2272
|
+
.with_bindings(
|
|
2273
|
+
uri_method: :post,
|
|
2274
|
+
uri_template: "/v2/{parent}/findings:group",
|
|
2275
|
+
body: "*",
|
|
2276
|
+
matches: [
|
|
2277
|
+
["parent", %r{^folders/[^/]+/sources/[^/]+/locations/[^/]+/?$}, false]
|
|
2278
|
+
]
|
|
2279
|
+
)
|
|
2280
|
+
.with_bindings(
|
|
2281
|
+
uri_method: :post,
|
|
2282
|
+
uri_template: "/v2/{parent}/findings:group",
|
|
2283
|
+
body: "*",
|
|
2284
|
+
matches: [
|
|
2285
|
+
["parent", %r{^projects/[^/]+/sources/[^/]+/?$}, false]
|
|
2286
|
+
]
|
|
2287
|
+
)
|
|
2288
|
+
.with_bindings(
|
|
2289
|
+
uri_method: :post,
|
|
2290
|
+
uri_template: "/v2/{parent}/findings:group",
|
|
2291
|
+
body: "*",
|
|
2292
|
+
matches: [
|
|
2293
|
+
["parent", %r{^projects/[^/]+/sources/[^/]+/locations/[^/]+/?$}, false]
|
|
2294
|
+
]
|
|
2295
|
+
)
|
|
2296
|
+
transcoder.transcode request_pb
|
|
2297
|
+
end
|
|
2298
|
+
|
|
2299
|
+
##
|
|
2300
|
+
# @private
|
|
2301
|
+
#
|
|
2302
|
+
# GRPC transcoding helper method for the list_attack_paths REST call
|
|
2303
|
+
#
|
|
2304
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListAttackPathsRequest]
|
|
2305
|
+
# A request object representing the call parameters. Required.
|
|
2306
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2307
|
+
# Uri, Body, Query string parameters
|
|
2308
|
+
def self.transcode_list_attack_paths_request request_pb
|
|
2309
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2310
|
+
.with_bindings(
|
|
2311
|
+
uri_method: :get,
|
|
2312
|
+
uri_template: "/v2/{parent}/attackPaths",
|
|
2313
|
+
matches: [
|
|
2314
|
+
["parent", %r{^organizations/[^/]+/simulations/[^/]+/?$}, false]
|
|
2315
|
+
]
|
|
2316
|
+
)
|
|
2317
|
+
.with_bindings(
|
|
2318
|
+
uri_method: :get,
|
|
2319
|
+
uri_template: "/v2/{parent}/attackPaths",
|
|
2320
|
+
matches: [
|
|
2321
|
+
["parent", %r{^organizations/[^/]+/simulations/[^/]+/valuedResources/[^/]+/?$}, false]
|
|
2322
|
+
]
|
|
2323
|
+
)
|
|
2324
|
+
.with_bindings(
|
|
2325
|
+
uri_method: :get,
|
|
2326
|
+
uri_template: "/v2/{parent}/attackPaths",
|
|
2327
|
+
matches: [
|
|
2328
|
+
["parent", %r{^organizations/[^/]+/simulations/[^/]+/attackExposureResults/[^/]+/?$}, false]
|
|
2329
|
+
]
|
|
2330
|
+
)
|
|
2331
|
+
transcoder.transcode request_pb
|
|
2332
|
+
end
|
|
2333
|
+
|
|
2334
|
+
##
|
|
2335
|
+
# @private
|
|
2336
|
+
#
|
|
2337
|
+
# GRPC transcoding helper method for the list_big_query_exports REST call
|
|
2338
|
+
#
|
|
2339
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListBigQueryExportsRequest]
|
|
2340
|
+
# A request object representing the call parameters. Required.
|
|
2341
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2342
|
+
# Uri, Body, Query string parameters
|
|
2343
|
+
def self.transcode_list_big_query_exports_request request_pb
|
|
2344
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2345
|
+
.with_bindings(
|
|
2346
|
+
uri_method: :get,
|
|
2347
|
+
uri_template: "/v2/{parent}/bigQueryExports",
|
|
2348
|
+
matches: [
|
|
2349
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
2350
|
+
]
|
|
2351
|
+
)
|
|
2352
|
+
.with_bindings(
|
|
2353
|
+
uri_method: :get,
|
|
2354
|
+
uri_template: "/v2/{parent}/bigQueryExports",
|
|
2355
|
+
matches: [
|
|
2356
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
|
|
2357
|
+
]
|
|
2358
|
+
)
|
|
2359
|
+
.with_bindings(
|
|
2360
|
+
uri_method: :get,
|
|
2361
|
+
uri_template: "/v2/{parent}/bigQueryExports",
|
|
2362
|
+
matches: [
|
|
2363
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2364
|
+
]
|
|
2365
|
+
)
|
|
2366
|
+
transcoder.transcode request_pb
|
|
2367
|
+
end
|
|
2368
|
+
|
|
2369
|
+
##
|
|
2370
|
+
# @private
|
|
2371
|
+
#
|
|
2372
|
+
# GRPC transcoding helper method for the list_findings REST call
|
|
2373
|
+
#
|
|
2374
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListFindingsRequest]
|
|
2375
|
+
# A request object representing the call parameters. Required.
|
|
2376
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2377
|
+
# Uri, Body, Query string parameters
|
|
2378
|
+
def self.transcode_list_findings_request request_pb
|
|
2379
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2380
|
+
.with_bindings(
|
|
2381
|
+
uri_method: :get,
|
|
2382
|
+
uri_template: "/v2/{parent}/findings",
|
|
2383
|
+
matches: [
|
|
2384
|
+
["parent", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
|
|
2385
|
+
]
|
|
2386
|
+
)
|
|
2387
|
+
.with_bindings(
|
|
2388
|
+
uri_method: :get,
|
|
2389
|
+
uri_template: "/v2/{parent}/findings",
|
|
2390
|
+
matches: [
|
|
2391
|
+
["parent", %r{^organizations/[^/]+/sources/[^/]+/locations/[^/]+/?$}, false]
|
|
2392
|
+
]
|
|
2393
|
+
)
|
|
2394
|
+
.with_bindings(
|
|
2395
|
+
uri_method: :get,
|
|
2396
|
+
uri_template: "/v2/{parent}/findings",
|
|
2397
|
+
matches: [
|
|
2398
|
+
["parent", %r{^folders/[^/]+/sources/[^/]+/?$}, false]
|
|
2399
|
+
]
|
|
2400
|
+
)
|
|
2401
|
+
.with_bindings(
|
|
2402
|
+
uri_method: :get,
|
|
2403
|
+
uri_template: "/v2/{parent}/findings",
|
|
2404
|
+
matches: [
|
|
2405
|
+
["parent", %r{^folders/[^/]+/sources/[^/]+/locations/[^/]+/?$}, false]
|
|
2406
|
+
]
|
|
2407
|
+
)
|
|
2408
|
+
.with_bindings(
|
|
2409
|
+
uri_method: :get,
|
|
2410
|
+
uri_template: "/v2/{parent}/findings",
|
|
2411
|
+
matches: [
|
|
2412
|
+
["parent", %r{^projects/[^/]+/sources/[^/]+/?$}, false]
|
|
2413
|
+
]
|
|
2414
|
+
)
|
|
2415
|
+
.with_bindings(
|
|
2416
|
+
uri_method: :get,
|
|
2417
|
+
uri_template: "/v2/{parent}/findings",
|
|
2418
|
+
matches: [
|
|
2419
|
+
["parent", %r{^projects/[^/]+/sources/[^/]+/locations/[^/]+/?$}, false]
|
|
2420
|
+
]
|
|
2421
|
+
)
|
|
2422
|
+
transcoder.transcode request_pb
|
|
2423
|
+
end
|
|
2424
|
+
|
|
2425
|
+
##
|
|
2426
|
+
# @private
|
|
2427
|
+
#
|
|
2428
|
+
# GRPC transcoding helper method for the list_mute_configs REST call
|
|
2429
|
+
#
|
|
2430
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListMuteConfigsRequest]
|
|
2431
|
+
# A request object representing the call parameters. Required.
|
|
2432
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2433
|
+
# Uri, Body, Query string parameters
|
|
2434
|
+
def self.transcode_list_mute_configs_request request_pb
|
|
2435
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2436
|
+
.with_bindings(
|
|
2437
|
+
uri_method: :get,
|
|
2438
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
2439
|
+
matches: [
|
|
2440
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
2441
|
+
]
|
|
2442
|
+
)
|
|
2443
|
+
.with_bindings(
|
|
2444
|
+
uri_method: :get,
|
|
2445
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
2446
|
+
matches: [
|
|
2447
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
2448
|
+
]
|
|
2449
|
+
)
|
|
2450
|
+
.with_bindings(
|
|
2451
|
+
uri_method: :get,
|
|
2452
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
2453
|
+
matches: [
|
|
2454
|
+
["parent", %r{^folders/[^/]+/?$}, false]
|
|
2455
|
+
]
|
|
2456
|
+
)
|
|
2457
|
+
.with_bindings(
|
|
2458
|
+
uri_method: :get,
|
|
2459
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
2460
|
+
matches: [
|
|
2461
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
|
|
2462
|
+
]
|
|
2463
|
+
)
|
|
2464
|
+
.with_bindings(
|
|
2465
|
+
uri_method: :get,
|
|
2466
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
2467
|
+
matches: [
|
|
2468
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
|
2469
|
+
]
|
|
2470
|
+
)
|
|
2471
|
+
.with_bindings(
|
|
2472
|
+
uri_method: :get,
|
|
2473
|
+
uri_template: "/v2/{parent}/muteConfigs",
|
|
2474
|
+
matches: [
|
|
2475
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2476
|
+
]
|
|
2477
|
+
)
|
|
2478
|
+
transcoder.transcode request_pb
|
|
2479
|
+
end
|
|
2480
|
+
|
|
2481
|
+
##
|
|
2482
|
+
# @private
|
|
2483
|
+
#
|
|
2484
|
+
# GRPC transcoding helper method for the list_notification_configs REST call
|
|
2485
|
+
#
|
|
2486
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListNotificationConfigsRequest]
|
|
2487
|
+
# A request object representing the call parameters. Required.
|
|
2488
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2489
|
+
# Uri, Body, Query string parameters
|
|
2490
|
+
def self.transcode_list_notification_configs_request request_pb
|
|
2491
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2492
|
+
.with_bindings(
|
|
2493
|
+
uri_method: :get,
|
|
2494
|
+
uri_template: "/v2/{parent}/notificationConfigs",
|
|
2495
|
+
matches: [
|
|
2496
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
2497
|
+
]
|
|
2498
|
+
)
|
|
2499
|
+
.with_bindings(
|
|
2500
|
+
uri_method: :get,
|
|
2501
|
+
uri_template: "/v2/{parent}/notificationConfigs",
|
|
2502
|
+
matches: [
|
|
2503
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/?$}, false]
|
|
2504
|
+
]
|
|
2505
|
+
)
|
|
2506
|
+
.with_bindings(
|
|
2507
|
+
uri_method: :get,
|
|
2508
|
+
uri_template: "/v2/{parent}/notificationConfigs",
|
|
2509
|
+
matches: [
|
|
2510
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2511
|
+
]
|
|
2512
|
+
)
|
|
2513
|
+
transcoder.transcode request_pb
|
|
2514
|
+
end
|
|
2515
|
+
|
|
2516
|
+
##
|
|
2517
|
+
# @private
|
|
2518
|
+
#
|
|
2519
|
+
# GRPC transcoding helper method for the list_resource_value_configs REST call
|
|
2520
|
+
#
|
|
2521
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListResourceValueConfigsRequest]
|
|
2522
|
+
# A request object representing the call parameters. Required.
|
|
2523
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2524
|
+
# Uri, Body, Query string parameters
|
|
2525
|
+
def self.transcode_list_resource_value_configs_request request_pb
|
|
2526
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2527
|
+
.with_bindings(
|
|
2528
|
+
uri_method: :get,
|
|
2529
|
+
uri_template: "/v2/{parent}/resourceValueConfigs",
|
|
2530
|
+
matches: [
|
|
2531
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
2532
|
+
]
|
|
2533
|
+
)
|
|
2534
|
+
transcoder.transcode request_pb
|
|
2535
|
+
end
|
|
2536
|
+
|
|
2537
|
+
##
|
|
2538
|
+
# @private
|
|
2539
|
+
#
|
|
2540
|
+
# GRPC transcoding helper method for the list_sources REST call
|
|
2541
|
+
#
|
|
2542
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListSourcesRequest]
|
|
2543
|
+
# A request object representing the call parameters. Required.
|
|
2544
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2545
|
+
# Uri, Body, Query string parameters
|
|
2546
|
+
def self.transcode_list_sources_request request_pb
|
|
2547
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2548
|
+
.with_bindings(
|
|
2549
|
+
uri_method: :get,
|
|
2550
|
+
uri_template: "/v2/{parent}/sources",
|
|
2551
|
+
matches: [
|
|
2552
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
2553
|
+
]
|
|
2554
|
+
)
|
|
2555
|
+
.with_bindings(
|
|
2556
|
+
uri_method: :get,
|
|
2557
|
+
uri_template: "/v2/{parent}/sources",
|
|
2558
|
+
matches: [
|
|
2559
|
+
["parent", %r{^folders/[^/]+/?$}, false]
|
|
2560
|
+
]
|
|
2561
|
+
)
|
|
2562
|
+
.with_bindings(
|
|
2563
|
+
uri_method: :get,
|
|
2564
|
+
uri_template: "/v2/{parent}/sources",
|
|
2565
|
+
matches: [
|
|
2566
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
|
2567
|
+
]
|
|
2568
|
+
)
|
|
2569
|
+
transcoder.transcode request_pb
|
|
2570
|
+
end
|
|
2571
|
+
|
|
2572
|
+
##
|
|
2573
|
+
# @private
|
|
2574
|
+
#
|
|
2575
|
+
# GRPC transcoding helper method for the list_valued_resources REST call
|
|
2576
|
+
#
|
|
2577
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::ListValuedResourcesRequest]
|
|
2578
|
+
# A request object representing the call parameters. Required.
|
|
2579
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2580
|
+
# Uri, Body, Query string parameters
|
|
2581
|
+
def self.transcode_list_valued_resources_request request_pb
|
|
2582
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2583
|
+
.with_bindings(
|
|
2584
|
+
uri_method: :get,
|
|
2585
|
+
uri_template: "/v2/{parent}/valuedResources",
|
|
2586
|
+
matches: [
|
|
2587
|
+
["parent", %r{^organizations/[^/]+/simulations/[^/]+/?$}, false]
|
|
2588
|
+
]
|
|
2589
|
+
)
|
|
2590
|
+
.with_bindings(
|
|
2591
|
+
uri_method: :get,
|
|
2592
|
+
uri_template: "/v2/{parent}/valuedResources",
|
|
2593
|
+
matches: [
|
|
2594
|
+
["parent", %r{^organizations/[^/]+/simulations/[^/]+/attackExposureResults/[^/]+/?$}, false]
|
|
2595
|
+
]
|
|
2596
|
+
)
|
|
2597
|
+
transcoder.transcode request_pb
|
|
2598
|
+
end
|
|
2599
|
+
|
|
2600
|
+
##
|
|
2601
|
+
# @private
|
|
2602
|
+
#
|
|
2603
|
+
# GRPC transcoding helper method for the set_finding_state REST call
|
|
2604
|
+
#
|
|
2605
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::SetFindingStateRequest]
|
|
2606
|
+
# A request object representing the call parameters. Required.
|
|
2607
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2608
|
+
# Uri, Body, Query string parameters
|
|
2609
|
+
def self.transcode_set_finding_state_request request_pb
|
|
2610
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2611
|
+
.with_bindings(
|
|
2612
|
+
uri_method: :post,
|
|
2613
|
+
uri_template: "/v2/{name}:setState",
|
|
2614
|
+
body: "*",
|
|
2615
|
+
matches: [
|
|
2616
|
+
["name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
|
|
2617
|
+
]
|
|
2618
|
+
)
|
|
2619
|
+
.with_bindings(
|
|
2620
|
+
uri_method: :post,
|
|
2621
|
+
uri_template: "/v2/{name}:setState",
|
|
2622
|
+
body: "*",
|
|
2623
|
+
matches: [
|
|
2624
|
+
["name", %r{^organizations/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/?$}, false]
|
|
2625
|
+
]
|
|
2626
|
+
)
|
|
2627
|
+
.with_bindings(
|
|
2628
|
+
uri_method: :post,
|
|
2629
|
+
uri_template: "/v2/{name}:setState",
|
|
2630
|
+
body: "*",
|
|
2631
|
+
matches: [
|
|
2632
|
+
["name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
|
|
2633
|
+
]
|
|
2634
|
+
)
|
|
2635
|
+
.with_bindings(
|
|
2636
|
+
uri_method: :post,
|
|
2637
|
+
uri_template: "/v2/{name}:setState",
|
|
2638
|
+
body: "*",
|
|
2639
|
+
matches: [
|
|
2640
|
+
["name", %r{^folders/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/?$}, false]
|
|
2641
|
+
]
|
|
2642
|
+
)
|
|
2643
|
+
.with_bindings(
|
|
2644
|
+
uri_method: :post,
|
|
2645
|
+
uri_template: "/v2/{name}:setState",
|
|
2646
|
+
body: "*",
|
|
2647
|
+
matches: [
|
|
2648
|
+
["name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
|
|
2649
|
+
]
|
|
2650
|
+
)
|
|
2651
|
+
.with_bindings(
|
|
2652
|
+
uri_method: :post,
|
|
2653
|
+
uri_template: "/v2/{name}:setState",
|
|
2654
|
+
body: "*",
|
|
2655
|
+
matches: [
|
|
2656
|
+
["name", %r{^projects/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/?$}, false]
|
|
2657
|
+
]
|
|
2658
|
+
)
|
|
2659
|
+
transcoder.transcode request_pb
|
|
2660
|
+
end
|
|
2661
|
+
|
|
2662
|
+
##
|
|
2663
|
+
# @private
|
|
2664
|
+
#
|
|
2665
|
+
# GRPC transcoding helper method for the set_iam_policy REST call
|
|
2666
|
+
#
|
|
2667
|
+
# @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
|
|
2668
|
+
# A request object representing the call parameters. Required.
|
|
2669
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2670
|
+
# Uri, Body, Query string parameters
|
|
2671
|
+
def self.transcode_set_iam_policy_request request_pb
|
|
2672
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2673
|
+
.with_bindings(
|
|
2674
|
+
uri_method: :post,
|
|
2675
|
+
uri_template: "/v2/{resource}:setIamPolicy",
|
|
2676
|
+
body: "*",
|
|
2677
|
+
matches: [
|
|
2678
|
+
["resource", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
|
|
2679
|
+
]
|
|
2680
|
+
)
|
|
2681
|
+
transcoder.transcode request_pb
|
|
2682
|
+
end
|
|
2683
|
+
|
|
2684
|
+
##
|
|
2685
|
+
# @private
|
|
2686
|
+
#
|
|
2687
|
+
# GRPC transcoding helper method for the set_mute REST call
|
|
2688
|
+
#
|
|
2689
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::SetMuteRequest]
|
|
2690
|
+
# A request object representing the call parameters. Required.
|
|
2691
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2692
|
+
# Uri, Body, Query string parameters
|
|
2693
|
+
def self.transcode_set_mute_request request_pb
|
|
2694
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2695
|
+
.with_bindings(
|
|
2696
|
+
uri_method: :post,
|
|
2697
|
+
uri_template: "/v2/{name}:setMute",
|
|
2698
|
+
body: "*",
|
|
2699
|
+
matches: [
|
|
2700
|
+
["name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
|
|
2701
|
+
]
|
|
2702
|
+
)
|
|
2703
|
+
.with_bindings(
|
|
2704
|
+
uri_method: :post,
|
|
2705
|
+
uri_template: "/v2/{name}:setMute",
|
|
2706
|
+
body: "*",
|
|
2707
|
+
matches: [
|
|
2708
|
+
["name", %r{^organizations/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/?$}, false]
|
|
2709
|
+
]
|
|
2710
|
+
)
|
|
2711
|
+
.with_bindings(
|
|
2712
|
+
uri_method: :post,
|
|
2713
|
+
uri_template: "/v2/{name}:setMute",
|
|
2714
|
+
body: "*",
|
|
2715
|
+
matches: [
|
|
2716
|
+
["name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
|
|
2717
|
+
]
|
|
2718
|
+
)
|
|
2719
|
+
.with_bindings(
|
|
2720
|
+
uri_method: :post,
|
|
2721
|
+
uri_template: "/v2/{name}:setMute",
|
|
2722
|
+
body: "*",
|
|
2723
|
+
matches: [
|
|
2724
|
+
["name", %r{^folders/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/?$}, false]
|
|
2725
|
+
]
|
|
2726
|
+
)
|
|
2727
|
+
.with_bindings(
|
|
2728
|
+
uri_method: :post,
|
|
2729
|
+
uri_template: "/v2/{name}:setMute",
|
|
2730
|
+
body: "*",
|
|
2731
|
+
matches: [
|
|
2732
|
+
["name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
|
|
2733
|
+
]
|
|
2734
|
+
)
|
|
2735
|
+
.with_bindings(
|
|
2736
|
+
uri_method: :post,
|
|
2737
|
+
uri_template: "/v2/{name}:setMute",
|
|
2738
|
+
body: "*",
|
|
2739
|
+
matches: [
|
|
2740
|
+
["name", %r{^projects/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/?$}, false]
|
|
2741
|
+
]
|
|
2742
|
+
)
|
|
2743
|
+
transcoder.transcode request_pb
|
|
2744
|
+
end
|
|
2745
|
+
|
|
2746
|
+
##
|
|
2747
|
+
# @private
|
|
2748
|
+
#
|
|
2749
|
+
# GRPC transcoding helper method for the test_iam_permissions REST call
|
|
2750
|
+
#
|
|
2751
|
+
# @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
|
|
2752
|
+
# A request object representing the call parameters. Required.
|
|
2753
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2754
|
+
# Uri, Body, Query string parameters
|
|
2755
|
+
def self.transcode_test_iam_permissions_request request_pb
|
|
2756
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2757
|
+
.with_bindings(
|
|
2758
|
+
uri_method: :post,
|
|
2759
|
+
uri_template: "/v2/{resource}:testIamPermissions",
|
|
2760
|
+
body: "*",
|
|
2761
|
+
matches: [
|
|
2762
|
+
["resource", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
|
|
2763
|
+
]
|
|
2764
|
+
)
|
|
2765
|
+
transcoder.transcode request_pb
|
|
2766
|
+
end
|
|
2767
|
+
|
|
2768
|
+
##
|
|
2769
|
+
# @private
|
|
2770
|
+
#
|
|
2771
|
+
# GRPC transcoding helper method for the update_big_query_export REST call
|
|
2772
|
+
#
|
|
2773
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateBigQueryExportRequest]
|
|
2774
|
+
# A request object representing the call parameters. Required.
|
|
2775
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2776
|
+
# Uri, Body, Query string parameters
|
|
2777
|
+
def self.transcode_update_big_query_export_request request_pb
|
|
2778
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2779
|
+
.with_bindings(
|
|
2780
|
+
uri_method: :patch,
|
|
2781
|
+
uri_template: "/v2/{big_query_export.name}",
|
|
2782
|
+
body: "big_query_export",
|
|
2783
|
+
matches: [
|
|
2784
|
+
["big_query_export.name", %r{^organizations/[^/]+/locations/[^/]+/bigQueryExports/[^/]+/?$}, false]
|
|
2785
|
+
]
|
|
2786
|
+
)
|
|
2787
|
+
.with_bindings(
|
|
2788
|
+
uri_method: :patch,
|
|
2789
|
+
uri_template: "/v2/{big_query_export.name}",
|
|
2790
|
+
body: "big_query_export",
|
|
2791
|
+
matches: [
|
|
2792
|
+
["big_query_export.name", %r{^folders/[^/]+/locations/[^/]+/bigQueryExports/[^/]+/?$}, false]
|
|
2793
|
+
]
|
|
2794
|
+
)
|
|
2795
|
+
.with_bindings(
|
|
2796
|
+
uri_method: :patch,
|
|
2797
|
+
uri_template: "/v2/{big_query_export.name}",
|
|
2798
|
+
body: "big_query_export",
|
|
2799
|
+
matches: [
|
|
2800
|
+
["big_query_export.name", %r{^projects/[^/]+/locations/[^/]+/bigQueryExports/[^/]+/?$}, false]
|
|
2801
|
+
]
|
|
2802
|
+
)
|
|
2803
|
+
transcoder.transcode request_pb
|
|
2804
|
+
end
|
|
2805
|
+
|
|
2806
|
+
##
|
|
2807
|
+
# @private
|
|
2808
|
+
#
|
|
2809
|
+
# GRPC transcoding helper method for the update_external_system REST call
|
|
2810
|
+
#
|
|
2811
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateExternalSystemRequest]
|
|
2812
|
+
# A request object representing the call parameters. Required.
|
|
2813
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2814
|
+
# Uri, Body, Query string parameters
|
|
2815
|
+
def self.transcode_update_external_system_request request_pb
|
|
2816
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2817
|
+
.with_bindings(
|
|
2818
|
+
uri_method: :patch,
|
|
2819
|
+
uri_template: "/v2/{external_system.name}",
|
|
2820
|
+
body: "external_system",
|
|
2821
|
+
matches: [
|
|
2822
|
+
["external_system.name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
|
|
2823
|
+
]
|
|
2824
|
+
)
|
|
2825
|
+
.with_bindings(
|
|
2826
|
+
uri_method: :patch,
|
|
2827
|
+
uri_template: "/v2/{external_system.name}",
|
|
2828
|
+
body: "external_system",
|
|
2829
|
+
matches: [
|
|
2830
|
+
["external_system.name", %r{^organizations/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
|
|
2831
|
+
]
|
|
2832
|
+
)
|
|
2833
|
+
.with_bindings(
|
|
2834
|
+
uri_method: :patch,
|
|
2835
|
+
uri_template: "/v2/{external_system.name}",
|
|
2836
|
+
body: "external_system",
|
|
2837
|
+
matches: [
|
|
2838
|
+
["external_system.name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
|
|
2839
|
+
]
|
|
2840
|
+
)
|
|
2841
|
+
.with_bindings(
|
|
2842
|
+
uri_method: :patch,
|
|
2843
|
+
uri_template: "/v2/{external_system.name}",
|
|
2844
|
+
body: "external_system",
|
|
2845
|
+
matches: [
|
|
2846
|
+
["external_system.name", %r{^folders/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
|
|
2847
|
+
]
|
|
2848
|
+
)
|
|
2849
|
+
.with_bindings(
|
|
2850
|
+
uri_method: :patch,
|
|
2851
|
+
uri_template: "/v2/{external_system.name}",
|
|
2852
|
+
body: "external_system",
|
|
2853
|
+
matches: [
|
|
2854
|
+
["external_system.name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
|
|
2855
|
+
]
|
|
2856
|
+
)
|
|
2857
|
+
.with_bindings(
|
|
2858
|
+
uri_method: :patch,
|
|
2859
|
+
uri_template: "/v2/{external_system.name}",
|
|
2860
|
+
body: "external_system",
|
|
2861
|
+
matches: [
|
|
2862
|
+
["external_system.name", %r{^projects/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/externalSystems/[^/]+/?$}, false]
|
|
2863
|
+
]
|
|
2864
|
+
)
|
|
2865
|
+
transcoder.transcode request_pb
|
|
2866
|
+
end
|
|
2867
|
+
|
|
2868
|
+
##
|
|
2869
|
+
# @private
|
|
2870
|
+
#
|
|
2871
|
+
# GRPC transcoding helper method for the update_finding REST call
|
|
2872
|
+
#
|
|
2873
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateFindingRequest]
|
|
2874
|
+
# A request object representing the call parameters. Required.
|
|
2875
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2876
|
+
# Uri, Body, Query string parameters
|
|
2877
|
+
def self.transcode_update_finding_request request_pb
|
|
2878
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2879
|
+
.with_bindings(
|
|
2880
|
+
uri_method: :patch,
|
|
2881
|
+
uri_template: "/v2/{finding.name}",
|
|
2882
|
+
body: "finding",
|
|
2883
|
+
matches: [
|
|
2884
|
+
["finding.name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
|
|
2885
|
+
]
|
|
2886
|
+
)
|
|
2887
|
+
.with_bindings(
|
|
2888
|
+
uri_method: :patch,
|
|
2889
|
+
uri_template: "/v2/{finding.name}",
|
|
2890
|
+
body: "finding",
|
|
2891
|
+
matches: [
|
|
2892
|
+
["finding.name", %r{^organizations/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/?$}, false]
|
|
2893
|
+
]
|
|
2894
|
+
)
|
|
2895
|
+
.with_bindings(
|
|
2896
|
+
uri_method: :patch,
|
|
2897
|
+
uri_template: "/v2/{finding.name}",
|
|
2898
|
+
body: "finding",
|
|
2899
|
+
matches: [
|
|
2900
|
+
["finding.name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
|
|
2901
|
+
]
|
|
2902
|
+
)
|
|
2903
|
+
.with_bindings(
|
|
2904
|
+
uri_method: :patch,
|
|
2905
|
+
uri_template: "/v2/{finding.name}",
|
|
2906
|
+
body: "finding",
|
|
2907
|
+
matches: [
|
|
2908
|
+
["finding.name", %r{^folders/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/?$}, false]
|
|
2909
|
+
]
|
|
2910
|
+
)
|
|
2911
|
+
.with_bindings(
|
|
2912
|
+
uri_method: :patch,
|
|
2913
|
+
uri_template: "/v2/{finding.name}",
|
|
2914
|
+
body: "finding",
|
|
2915
|
+
matches: [
|
|
2916
|
+
["finding.name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/?$}, false]
|
|
2917
|
+
]
|
|
2918
|
+
)
|
|
2919
|
+
.with_bindings(
|
|
2920
|
+
uri_method: :patch,
|
|
2921
|
+
uri_template: "/v2/{finding.name}",
|
|
2922
|
+
body: "finding",
|
|
2923
|
+
matches: [
|
|
2924
|
+
["finding.name", %r{^projects/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/?$}, false]
|
|
2925
|
+
]
|
|
2926
|
+
)
|
|
2927
|
+
transcoder.transcode request_pb
|
|
2928
|
+
end
|
|
2929
|
+
|
|
2930
|
+
##
|
|
2931
|
+
# @private
|
|
2932
|
+
#
|
|
2933
|
+
# GRPC transcoding helper method for the update_mute_config REST call
|
|
2934
|
+
#
|
|
2935
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateMuteConfigRequest]
|
|
2936
|
+
# A request object representing the call parameters. Required.
|
|
2937
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2938
|
+
# Uri, Body, Query string parameters
|
|
2939
|
+
def self.transcode_update_mute_config_request request_pb
|
|
2940
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2941
|
+
.with_bindings(
|
|
2942
|
+
uri_method: :patch,
|
|
2943
|
+
uri_template: "/v2/{mute_config.name}",
|
|
2944
|
+
body: "mute_config",
|
|
2945
|
+
matches: [
|
|
2946
|
+
["mute_config.name", %r{^organizations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2947
|
+
]
|
|
2948
|
+
)
|
|
2949
|
+
.with_bindings(
|
|
2950
|
+
uri_method: :patch,
|
|
2951
|
+
uri_template: "/v2/{mute_config.name}",
|
|
2952
|
+
body: "mute_config",
|
|
2953
|
+
matches: [
|
|
2954
|
+
["mute_config.name", %r{^organizations/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2955
|
+
]
|
|
2956
|
+
)
|
|
2957
|
+
.with_bindings(
|
|
2958
|
+
uri_method: :patch,
|
|
2959
|
+
uri_template: "/v2/{mute_config.name}",
|
|
2960
|
+
body: "mute_config",
|
|
2961
|
+
matches: [
|
|
2962
|
+
["mute_config.name", %r{^folders/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2963
|
+
]
|
|
2964
|
+
)
|
|
2965
|
+
.with_bindings(
|
|
2966
|
+
uri_method: :patch,
|
|
2967
|
+
uri_template: "/v2/{mute_config.name}",
|
|
2968
|
+
body: "mute_config",
|
|
2969
|
+
matches: [
|
|
2970
|
+
["mute_config.name", %r{^folders/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2971
|
+
]
|
|
2972
|
+
)
|
|
2973
|
+
.with_bindings(
|
|
2974
|
+
uri_method: :patch,
|
|
2975
|
+
uri_template: "/v2/{mute_config.name}",
|
|
2976
|
+
body: "mute_config",
|
|
2977
|
+
matches: [
|
|
2978
|
+
["mute_config.name", %r{^projects/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2979
|
+
]
|
|
2980
|
+
)
|
|
2981
|
+
.with_bindings(
|
|
2982
|
+
uri_method: :patch,
|
|
2983
|
+
uri_template: "/v2/{mute_config.name}",
|
|
2984
|
+
body: "mute_config",
|
|
2985
|
+
matches: [
|
|
2986
|
+
["mute_config.name", %r{^projects/[^/]+/locations/[^/]+/muteConfigs/[^/]+/?$}, false]
|
|
2987
|
+
]
|
|
2988
|
+
)
|
|
2989
|
+
transcoder.transcode request_pb
|
|
2990
|
+
end
|
|
2991
|
+
|
|
2992
|
+
##
|
|
2993
|
+
# @private
|
|
2994
|
+
#
|
|
2995
|
+
# GRPC transcoding helper method for the update_notification_config REST call
|
|
2996
|
+
#
|
|
2997
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateNotificationConfigRequest]
|
|
2998
|
+
# A request object representing the call parameters. Required.
|
|
2999
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3000
|
+
# Uri, Body, Query string parameters
|
|
3001
|
+
def self.transcode_update_notification_config_request request_pb
|
|
3002
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3003
|
+
.with_bindings(
|
|
3004
|
+
uri_method: :patch,
|
|
3005
|
+
uri_template: "/v2/{notification_config.name}",
|
|
3006
|
+
body: "notification_config",
|
|
3007
|
+
matches: [
|
|
3008
|
+
["notification_config.name", %r{^organizations/[^/]+/locations/[^/]+/notificationConfigs/[^/]+/?$}, false]
|
|
3009
|
+
]
|
|
3010
|
+
)
|
|
3011
|
+
.with_bindings(
|
|
3012
|
+
uri_method: :patch,
|
|
3013
|
+
uri_template: "/v2/{notification_config.name}",
|
|
3014
|
+
body: "notification_config",
|
|
3015
|
+
matches: [
|
|
3016
|
+
["notification_config.name", %r{^folders/[^/]+/locations/[^/]+/notificationConfigs/[^/]+/?$}, false]
|
|
3017
|
+
]
|
|
3018
|
+
)
|
|
3019
|
+
.with_bindings(
|
|
3020
|
+
uri_method: :patch,
|
|
3021
|
+
uri_template: "/v2/{notification_config.name}",
|
|
3022
|
+
body: "notification_config",
|
|
3023
|
+
matches: [
|
|
3024
|
+
["notification_config.name", %r{^projects/[^/]+/locations/[^/]+/notificationConfigs/[^/]+/?$}, false]
|
|
3025
|
+
]
|
|
3026
|
+
)
|
|
3027
|
+
transcoder.transcode request_pb
|
|
3028
|
+
end
|
|
3029
|
+
|
|
3030
|
+
##
|
|
3031
|
+
# @private
|
|
3032
|
+
#
|
|
3033
|
+
# GRPC transcoding helper method for the update_resource_value_config REST call
|
|
3034
|
+
#
|
|
3035
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateResourceValueConfigRequest]
|
|
3036
|
+
# A request object representing the call parameters. Required.
|
|
3037
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3038
|
+
# Uri, Body, Query string parameters
|
|
3039
|
+
def self.transcode_update_resource_value_config_request request_pb
|
|
3040
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3041
|
+
.with_bindings(
|
|
3042
|
+
uri_method: :patch,
|
|
3043
|
+
uri_template: "/v2/{resource_value_config.name}",
|
|
3044
|
+
body: "resource_value_config",
|
|
3045
|
+
matches: [
|
|
3046
|
+
["resource_value_config.name", %r{^organizations/[^/]+/resourceValueConfigs/[^/]+/?$}, false]
|
|
3047
|
+
]
|
|
3048
|
+
)
|
|
3049
|
+
transcoder.transcode request_pb
|
|
3050
|
+
end
|
|
3051
|
+
|
|
3052
|
+
##
|
|
3053
|
+
# @private
|
|
3054
|
+
#
|
|
3055
|
+
# GRPC transcoding helper method for the update_security_marks REST call
|
|
3056
|
+
#
|
|
3057
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateSecurityMarksRequest]
|
|
3058
|
+
# A request object representing the call parameters. Required.
|
|
3059
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3060
|
+
# Uri, Body, Query string parameters
|
|
3061
|
+
def self.transcode_update_security_marks_request request_pb
|
|
3062
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3063
|
+
.with_bindings(
|
|
3064
|
+
uri_method: :patch,
|
|
3065
|
+
uri_template: "/v2/{security_marks.name}",
|
|
3066
|
+
body: "security_marks",
|
|
3067
|
+
matches: [
|
|
3068
|
+
["security_marks.name", %r{^organizations/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks/?$}, false]
|
|
3069
|
+
]
|
|
3070
|
+
)
|
|
3071
|
+
.with_bindings(
|
|
3072
|
+
uri_method: :patch,
|
|
3073
|
+
uri_template: "/v2/{security_marks.name}",
|
|
3074
|
+
body: "security_marks",
|
|
3075
|
+
matches: [
|
|
3076
|
+
["security_marks.name", %r{^organizations/[^/]+/assets/[^/]+/securityMarks/?$}, false]
|
|
3077
|
+
]
|
|
3078
|
+
)
|
|
3079
|
+
.with_bindings(
|
|
3080
|
+
uri_method: :patch,
|
|
3081
|
+
uri_template: "/v2/{security_marks.name}",
|
|
3082
|
+
body: "security_marks",
|
|
3083
|
+
matches: [
|
|
3084
|
+
["security_marks.name", %r{^organizations/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/securityMarks/?$}, false]
|
|
3085
|
+
]
|
|
3086
|
+
)
|
|
3087
|
+
.with_bindings(
|
|
3088
|
+
uri_method: :patch,
|
|
3089
|
+
uri_template: "/v2/{security_marks.name}",
|
|
3090
|
+
body: "security_marks",
|
|
3091
|
+
matches: [
|
|
3092
|
+
["security_marks.name", %r{^folders/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks/?$}, false]
|
|
3093
|
+
]
|
|
3094
|
+
)
|
|
3095
|
+
.with_bindings(
|
|
3096
|
+
uri_method: :patch,
|
|
3097
|
+
uri_template: "/v2/{security_marks.name}",
|
|
3098
|
+
body: "security_marks",
|
|
3099
|
+
matches: [
|
|
3100
|
+
["security_marks.name", %r{^folders/[^/]+/assets/[^/]+/securityMarks/?$}, false]
|
|
3101
|
+
]
|
|
3102
|
+
)
|
|
3103
|
+
.with_bindings(
|
|
3104
|
+
uri_method: :patch,
|
|
3105
|
+
uri_template: "/v2/{security_marks.name}",
|
|
3106
|
+
body: "security_marks",
|
|
3107
|
+
matches: [
|
|
3108
|
+
["security_marks.name", %r{^folders/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/securityMarks/?$}, false]
|
|
3109
|
+
]
|
|
3110
|
+
)
|
|
3111
|
+
.with_bindings(
|
|
3112
|
+
uri_method: :patch,
|
|
3113
|
+
uri_template: "/v2/{security_marks.name}",
|
|
3114
|
+
body: "security_marks",
|
|
3115
|
+
matches: [
|
|
3116
|
+
["security_marks.name", %r{^projects/[^/]+/sources/[^/]+/findings/[^/]+/securityMarks/?$}, false]
|
|
3117
|
+
]
|
|
3118
|
+
)
|
|
3119
|
+
.with_bindings(
|
|
3120
|
+
uri_method: :patch,
|
|
3121
|
+
uri_template: "/v2/{security_marks.name}",
|
|
3122
|
+
body: "security_marks",
|
|
3123
|
+
matches: [
|
|
3124
|
+
["security_marks.name", %r{^projects/[^/]+/assets/[^/]+/securityMarks/?$}, false]
|
|
3125
|
+
]
|
|
3126
|
+
)
|
|
3127
|
+
.with_bindings(
|
|
3128
|
+
uri_method: :patch,
|
|
3129
|
+
uri_template: "/v2/{security_marks.name}",
|
|
3130
|
+
body: "security_marks",
|
|
3131
|
+
matches: [
|
|
3132
|
+
["security_marks.name", %r{^projects/[^/]+/sources/[^/]+/locations/[^/]+/findings/[^/]+/securityMarks/?$}, false]
|
|
3133
|
+
]
|
|
3134
|
+
)
|
|
3135
|
+
transcoder.transcode request_pb
|
|
3136
|
+
end
|
|
3137
|
+
|
|
3138
|
+
##
|
|
3139
|
+
# @private
|
|
3140
|
+
#
|
|
3141
|
+
# GRPC transcoding helper method for the update_source REST call
|
|
3142
|
+
#
|
|
3143
|
+
# @param request_pb [::Google::Cloud::SecurityCenter::V2::UpdateSourceRequest]
|
|
3144
|
+
# A request object representing the call parameters. Required.
|
|
3145
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3146
|
+
# Uri, Body, Query string parameters
|
|
3147
|
+
def self.transcode_update_source_request request_pb
|
|
3148
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3149
|
+
.with_bindings(
|
|
3150
|
+
uri_method: :patch,
|
|
3151
|
+
uri_template: "/v2/{source.name}",
|
|
3152
|
+
body: "source",
|
|
3153
|
+
matches: [
|
|
3154
|
+
["source.name", %r{^organizations/[^/]+/sources/[^/]+/?$}, false]
|
|
3155
|
+
]
|
|
3156
|
+
)
|
|
3157
|
+
transcoder.transcode request_pb
|
|
3158
|
+
end
|
|
3159
|
+
end
|
|
3160
|
+
end
|
|
3161
|
+
end
|
|
3162
|
+
end
|
|
3163
|
+
end
|
|
3164
|
+
end
|
|
3165
|
+
end
|