google-cloud-security_center_management-v1 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/security_center_management/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/security_center_management/v1/rest.rb +38 -0
- data/lib/google/cloud/security_center_management/v1/security_center_management/client.rb +2668 -0
- data/lib/google/cloud/security_center_management/v1/security_center_management/credentials.rb +47 -0
- data/lib/google/cloud/security_center_management/v1/security_center_management/paths.rb +374 -0
- data/lib/google/cloud/security_center_management/v1/security_center_management/rest/client.rb +2503 -0
- data/lib/google/cloud/security_center_management/v1/security_center_management/rest/service_stub.rb +1623 -0
- data/lib/google/cloud/security_center_management/v1/security_center_management/rest.rb +53 -0
- data/lib/google/cloud/security_center_management/v1/security_center_management.rb +55 -0
- data/lib/google/cloud/security_center_management/v1/version.rb +7 -2
- data/lib/google/cloud/security_center_management/v1.rb +45 -0
- data/lib/google/cloud/securitycentermanagement/v1/security_center_management_pb.rb +114 -0
- data/lib/google/cloud/securitycentermanagement/v1/security_center_management_services_pb.rb +122 -0
- data/lib/google-cloud-security_center_management-v1.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/cloud/securitycentermanagement/v1/security_center_management.rb +1230 -0
- data/proto_docs/google/iam/v1/policy.rb +426 -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 +112 -11
@@ -0,0 +1,47 @@
|
|
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 "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module SecurityCenterManagement
|
24
|
+
module V1
|
25
|
+
module SecurityCenterManagement
|
26
|
+
# Credentials for the SecurityCenterManagement API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
34
|
+
"GCLOUD_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
38
|
+
]
|
39
|
+
self.paths = [
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,374 @@
|
|
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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module SecurityCenterManagement
|
23
|
+
module V1
|
24
|
+
module SecurityCenterManagement
|
25
|
+
# Path helper methods for the SecurityCenterManagement API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified EffectiveEventThreatDetectionCustomModule resource string.
|
29
|
+
#
|
30
|
+
# @overload effective_event_threat_detection_custom_module_path(organization:, location:, effective_event_threat_detection_custom_module:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`
|
34
|
+
#
|
35
|
+
# @param organization [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param effective_event_threat_detection_custom_module [String]
|
38
|
+
#
|
39
|
+
# @overload effective_event_threat_detection_custom_module_path(project:, location:, effective_event_threat_detection_custom_module:)
|
40
|
+
# The resource will be in the following format:
|
41
|
+
#
|
42
|
+
# `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`
|
43
|
+
#
|
44
|
+
# @param project [String]
|
45
|
+
# @param location [String]
|
46
|
+
# @param effective_event_threat_detection_custom_module [String]
|
47
|
+
#
|
48
|
+
# @overload effective_event_threat_detection_custom_module_path(folder:, location:, effective_event_threat_detection_custom_module:)
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`
|
52
|
+
#
|
53
|
+
# @param folder [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param effective_event_threat_detection_custom_module [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def effective_event_threat_detection_custom_module_path **args
|
59
|
+
resources = {
|
60
|
+
"effective_event_threat_detection_custom_module:location:organization" => (proc do |organization:, location:, effective_event_threat_detection_custom_module:|
|
61
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
|
64
|
+
"organizations/#{organization}/locations/#{location}/effectiveEventThreatDetectionCustomModules/#{effective_event_threat_detection_custom_module}"
|
65
|
+
end),
|
66
|
+
"effective_event_threat_detection_custom_module:location:project" => (proc do |project:, location:, effective_event_threat_detection_custom_module:|
|
67
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
68
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
69
|
+
|
70
|
+
"projects/#{project}/locations/#{location}/effectiveEventThreatDetectionCustomModules/#{effective_event_threat_detection_custom_module}"
|
71
|
+
end),
|
72
|
+
"effective_event_threat_detection_custom_module:folder:location" => (proc do |folder:, location:, effective_event_threat_detection_custom_module:|
|
73
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
74
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
75
|
+
|
76
|
+
"folders/#{folder}/locations/#{location}/effectiveEventThreatDetectionCustomModules/#{effective_event_threat_detection_custom_module}"
|
77
|
+
end)
|
78
|
+
}
|
79
|
+
|
80
|
+
resource = resources[args.keys.sort.join(":")]
|
81
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
82
|
+
resource.call(**args)
|
83
|
+
end
|
84
|
+
|
85
|
+
##
|
86
|
+
# Create a fully-qualified EffectiveSecurityHealthAnalyticsCustomModule resource string.
|
87
|
+
#
|
88
|
+
# @overload effective_security_health_analytics_custom_module_path(organization:, location:, effective_security_health_analytics_custom_module:)
|
89
|
+
# The resource will be in the following format:
|
90
|
+
#
|
91
|
+
# `organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
|
92
|
+
#
|
93
|
+
# @param organization [String]
|
94
|
+
# @param location [String]
|
95
|
+
# @param effective_security_health_analytics_custom_module [String]
|
96
|
+
#
|
97
|
+
# @overload effective_security_health_analytics_custom_module_path(project:, location:, effective_security_health_analytics_custom_module:)
|
98
|
+
# The resource will be in the following format:
|
99
|
+
#
|
100
|
+
# `projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
|
101
|
+
#
|
102
|
+
# @param project [String]
|
103
|
+
# @param location [String]
|
104
|
+
# @param effective_security_health_analytics_custom_module [String]
|
105
|
+
#
|
106
|
+
# @overload effective_security_health_analytics_custom_module_path(folder:, location:, effective_security_health_analytics_custom_module:)
|
107
|
+
# The resource will be in the following format:
|
108
|
+
#
|
109
|
+
# `folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
|
110
|
+
#
|
111
|
+
# @param folder [String]
|
112
|
+
# @param location [String]
|
113
|
+
# @param effective_security_health_analytics_custom_module [String]
|
114
|
+
#
|
115
|
+
# @return [::String]
|
116
|
+
def effective_security_health_analytics_custom_module_path **args
|
117
|
+
resources = {
|
118
|
+
"effective_security_health_analytics_custom_module:location:organization" => (proc do |organization:, location:, effective_security_health_analytics_custom_module:|
|
119
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
120
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
121
|
+
|
122
|
+
"organizations/#{organization}/locations/#{location}/effectiveSecurityHealthAnalyticsCustomModules/#{effective_security_health_analytics_custom_module}"
|
123
|
+
end),
|
124
|
+
"effective_security_health_analytics_custom_module:location:project" => (proc do |project:, location:, effective_security_health_analytics_custom_module:|
|
125
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
126
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
127
|
+
|
128
|
+
"projects/#{project}/locations/#{location}/effectiveSecurityHealthAnalyticsCustomModules/#{effective_security_health_analytics_custom_module}"
|
129
|
+
end),
|
130
|
+
"effective_security_health_analytics_custom_module:folder:location" => (proc do |folder:, location:, effective_security_health_analytics_custom_module:|
|
131
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
132
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
133
|
+
|
134
|
+
"folders/#{folder}/locations/#{location}/effectiveSecurityHealthAnalyticsCustomModules/#{effective_security_health_analytics_custom_module}"
|
135
|
+
end)
|
136
|
+
}
|
137
|
+
|
138
|
+
resource = resources[args.keys.sort.join(":")]
|
139
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
140
|
+
resource.call(**args)
|
141
|
+
end
|
142
|
+
|
143
|
+
##
|
144
|
+
# Create a fully-qualified EventThreatDetectionCustomModule resource string.
|
145
|
+
#
|
146
|
+
# @overload event_threat_detection_custom_module_path(organization:, location:, event_threat_detection_custom_module:)
|
147
|
+
# The resource will be in the following format:
|
148
|
+
#
|
149
|
+
# `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`
|
150
|
+
#
|
151
|
+
# @param organization [String]
|
152
|
+
# @param location [String]
|
153
|
+
# @param event_threat_detection_custom_module [String]
|
154
|
+
#
|
155
|
+
# @overload event_threat_detection_custom_module_path(project:, location:, event_threat_detection_custom_module:)
|
156
|
+
# The resource will be in the following format:
|
157
|
+
#
|
158
|
+
# `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`
|
159
|
+
#
|
160
|
+
# @param project [String]
|
161
|
+
# @param location [String]
|
162
|
+
# @param event_threat_detection_custom_module [String]
|
163
|
+
#
|
164
|
+
# @overload event_threat_detection_custom_module_path(folder:, location:, event_threat_detection_custom_module:)
|
165
|
+
# The resource will be in the following format:
|
166
|
+
#
|
167
|
+
# `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`
|
168
|
+
#
|
169
|
+
# @param folder [String]
|
170
|
+
# @param location [String]
|
171
|
+
# @param event_threat_detection_custom_module [String]
|
172
|
+
#
|
173
|
+
# @return [::String]
|
174
|
+
def event_threat_detection_custom_module_path **args
|
175
|
+
resources = {
|
176
|
+
"event_threat_detection_custom_module:location:organization" => (proc do |organization:, location:, event_threat_detection_custom_module:|
|
177
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
178
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
179
|
+
|
180
|
+
"organizations/#{organization}/locations/#{location}/eventThreatDetectionCustomModules/#{event_threat_detection_custom_module}"
|
181
|
+
end),
|
182
|
+
"event_threat_detection_custom_module:location:project" => (proc do |project:, location:, event_threat_detection_custom_module:|
|
183
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
184
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
185
|
+
|
186
|
+
"projects/#{project}/locations/#{location}/eventThreatDetectionCustomModules/#{event_threat_detection_custom_module}"
|
187
|
+
end),
|
188
|
+
"event_threat_detection_custom_module:folder:location" => (proc do |folder:, location:, event_threat_detection_custom_module:|
|
189
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
190
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
191
|
+
|
192
|
+
"folders/#{folder}/locations/#{location}/eventThreatDetectionCustomModules/#{event_threat_detection_custom_module}"
|
193
|
+
end)
|
194
|
+
}
|
195
|
+
|
196
|
+
resource = resources[args.keys.sort.join(":")]
|
197
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
198
|
+
resource.call(**args)
|
199
|
+
end
|
200
|
+
|
201
|
+
##
|
202
|
+
# Create a fully-qualified FolderLocation resource string.
|
203
|
+
#
|
204
|
+
# The resource will be in the following format:
|
205
|
+
#
|
206
|
+
# `folders/{folder}/locations/{location}`
|
207
|
+
#
|
208
|
+
# @param folder [String]
|
209
|
+
# @param location [String]
|
210
|
+
#
|
211
|
+
# @return [::String]
|
212
|
+
def folder_location_path folder:, location:
|
213
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
214
|
+
|
215
|
+
"folders/#{folder}/locations/#{location}"
|
216
|
+
end
|
217
|
+
|
218
|
+
##
|
219
|
+
# Create a fully-qualified Location resource string.
|
220
|
+
#
|
221
|
+
# The resource will be in the following format:
|
222
|
+
#
|
223
|
+
# `projects/{project}/locations/{location}`
|
224
|
+
#
|
225
|
+
# @param project [String]
|
226
|
+
# @param location [String]
|
227
|
+
#
|
228
|
+
# @return [::String]
|
229
|
+
def location_path project:, location:
|
230
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
231
|
+
|
232
|
+
"projects/#{project}/locations/#{location}"
|
233
|
+
end
|
234
|
+
|
235
|
+
##
|
236
|
+
# Create a fully-qualified OrganizationLocation resource string.
|
237
|
+
#
|
238
|
+
# The resource will be in the following format:
|
239
|
+
#
|
240
|
+
# `organizations/{organization}/locations/{location}`
|
241
|
+
#
|
242
|
+
# @param organization [String]
|
243
|
+
# @param location [String]
|
244
|
+
#
|
245
|
+
# @return [::String]
|
246
|
+
def organization_location_path organization:, location:
|
247
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
248
|
+
|
249
|
+
"organizations/#{organization}/locations/#{location}"
|
250
|
+
end
|
251
|
+
|
252
|
+
##
|
253
|
+
# Create a fully-qualified SecurityCenterService resource string.
|
254
|
+
#
|
255
|
+
# @overload security_center_service_path(project:, location:, service:)
|
256
|
+
# The resource will be in the following format:
|
257
|
+
#
|
258
|
+
# `projects/{project}/locations/{location}/securityCenterServices/{service}`
|
259
|
+
#
|
260
|
+
# @param project [String]
|
261
|
+
# @param location [String]
|
262
|
+
# @param service [String]
|
263
|
+
#
|
264
|
+
# @overload security_center_service_path(folder:, location:, service:)
|
265
|
+
# The resource will be in the following format:
|
266
|
+
#
|
267
|
+
# `folders/{folder}/locations/{location}/securityCenterServices/{service}`
|
268
|
+
#
|
269
|
+
# @param folder [String]
|
270
|
+
# @param location [String]
|
271
|
+
# @param service [String]
|
272
|
+
#
|
273
|
+
# @overload security_center_service_path(organization:, location:, service:)
|
274
|
+
# The resource will be in the following format:
|
275
|
+
#
|
276
|
+
# `organizations/{organization}/locations/{location}/securityCenterServices/{service}`
|
277
|
+
#
|
278
|
+
# @param organization [String]
|
279
|
+
# @param location [String]
|
280
|
+
# @param service [String]
|
281
|
+
#
|
282
|
+
# @return [::String]
|
283
|
+
def security_center_service_path **args
|
284
|
+
resources = {
|
285
|
+
"location:project:service" => (proc do |project:, location:, service:|
|
286
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
287
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
288
|
+
|
289
|
+
"projects/#{project}/locations/#{location}/securityCenterServices/#{service}"
|
290
|
+
end),
|
291
|
+
"folder:location:service" => (proc do |folder:, location:, service:|
|
292
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
293
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
294
|
+
|
295
|
+
"folders/#{folder}/locations/#{location}/securityCenterServices/#{service}"
|
296
|
+
end),
|
297
|
+
"location:organization:service" => (proc do |organization:, location:, service:|
|
298
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
299
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
300
|
+
|
301
|
+
"organizations/#{organization}/locations/#{location}/securityCenterServices/#{service}"
|
302
|
+
end)
|
303
|
+
}
|
304
|
+
|
305
|
+
resource = resources[args.keys.sort.join(":")]
|
306
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
307
|
+
resource.call(**args)
|
308
|
+
end
|
309
|
+
|
310
|
+
##
|
311
|
+
# Create a fully-qualified SecurityHealthAnalyticsCustomModule resource string.
|
312
|
+
#
|
313
|
+
# @overload security_health_analytics_custom_module_path(organization:, location:, security_health_analytics_custom_module:)
|
314
|
+
# The resource will be in the following format:
|
315
|
+
#
|
316
|
+
# `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
|
317
|
+
#
|
318
|
+
# @param organization [String]
|
319
|
+
# @param location [String]
|
320
|
+
# @param security_health_analytics_custom_module [String]
|
321
|
+
#
|
322
|
+
# @overload security_health_analytics_custom_module_path(project:, location:, security_health_analytics_custom_module:)
|
323
|
+
# The resource will be in the following format:
|
324
|
+
#
|
325
|
+
# `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
|
326
|
+
#
|
327
|
+
# @param project [String]
|
328
|
+
# @param location [String]
|
329
|
+
# @param security_health_analytics_custom_module [String]
|
330
|
+
#
|
331
|
+
# @overload security_health_analytics_custom_module_path(folder:, location:, security_health_analytics_custom_module:)
|
332
|
+
# The resource will be in the following format:
|
333
|
+
#
|
334
|
+
# `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
|
335
|
+
#
|
336
|
+
# @param folder [String]
|
337
|
+
# @param location [String]
|
338
|
+
# @param security_health_analytics_custom_module [String]
|
339
|
+
#
|
340
|
+
# @return [::String]
|
341
|
+
def security_health_analytics_custom_module_path **args
|
342
|
+
resources = {
|
343
|
+
"location:organization:security_health_analytics_custom_module" => (proc do |organization:, location:, security_health_analytics_custom_module:|
|
344
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
345
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
346
|
+
|
347
|
+
"organizations/#{organization}/locations/#{location}/securityHealthAnalyticsCustomModules/#{security_health_analytics_custom_module}"
|
348
|
+
end),
|
349
|
+
"location:project:security_health_analytics_custom_module" => (proc do |project:, location:, security_health_analytics_custom_module:|
|
350
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
351
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
352
|
+
|
353
|
+
"projects/#{project}/locations/#{location}/securityHealthAnalyticsCustomModules/#{security_health_analytics_custom_module}"
|
354
|
+
end),
|
355
|
+
"folder:location:security_health_analytics_custom_module" => (proc do |folder:, location:, security_health_analytics_custom_module:|
|
356
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
357
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
358
|
+
|
359
|
+
"folders/#{folder}/locations/#{location}/securityHealthAnalyticsCustomModules/#{security_health_analytics_custom_module}"
|
360
|
+
end)
|
361
|
+
}
|
362
|
+
|
363
|
+
resource = resources[args.keys.sort.join(":")]
|
364
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
365
|
+
resource.call(**args)
|
366
|
+
end
|
367
|
+
|
368
|
+
extend self
|
369
|
+
end
|
370
|
+
end
|
371
|
+
end
|
372
|
+
end
|
373
|
+
end
|
374
|
+
end
|