google-cloud-security_center_management-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/security_center_management/v1/bindings_override.rb +102 -0
  6. data/lib/google/cloud/security_center_management/v1/rest.rb +38 -0
  7. data/lib/google/cloud/security_center_management/v1/security_center_management/client.rb +2321 -0
  8. data/lib/google/cloud/security_center_management/v1/security_center_management/credentials.rb +47 -0
  9. data/lib/google/cloud/security_center_management/v1/security_center_management/paths.rb +316 -0
  10. data/lib/google/cloud/security_center_management/v1/security_center_management/rest/client.rb +2177 -0
  11. data/lib/google/cloud/security_center_management/v1/security_center_management/rest/service_stub.rb +1401 -0
  12. data/lib/google/cloud/security_center_management/v1/security_center_management/rest.rb +53 -0
  13. data/lib/google/cloud/security_center_management/v1/security_center_management.rb +55 -0
  14. data/lib/google/cloud/security_center_management/v1/version.rb +7 -2
  15. data/lib/google/cloud/security_center_management/v1.rb +45 -0
  16. data/lib/google/cloud/securitycentermanagement/v1/security_center_management_pb.rb +107 -0
  17. data/lib/google/cloud/securitycentermanagement/v1/security_center_management_services_pb.rb +115 -0
  18. data/lib/google-cloud-security_center_management-v1.rb +21 -0
  19. data/proto_docs/README.md +4 -0
  20. data/proto_docs/google/api/client.rb +399 -0
  21. data/proto_docs/google/api/field_behavior.rb +85 -0
  22. data/proto_docs/google/api/launch_stage.rb +71 -0
  23. data/proto_docs/google/api/resource.rb +222 -0
  24. data/proto_docs/google/cloud/securitycentermanagement/v1/security_center_management.rb +1055 -0
  25. data/proto_docs/google/iam/v1/policy.rb +426 -0
  26. data/proto_docs/google/protobuf/any.rb +145 -0
  27. data/proto_docs/google/protobuf/duration.rb +98 -0
  28. data/proto_docs/google/protobuf/empty.rb +34 -0
  29. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  30. data/proto_docs/google/protobuf/struct.rb +96 -0
  31. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  32. data/proto_docs/google/rpc/status.rb +48 -0
  33. data/proto_docs/google/type/expr.rb +75 -0
  34. 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,316 @@
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 SecurityHealthAnalyticsCustomModule resource string.
254
+ #
255
+ # @overload security_health_analytics_custom_module_path(organization:, location:, security_health_analytics_custom_module:)
256
+ # The resource will be in the following format:
257
+ #
258
+ # `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
259
+ #
260
+ # @param organization [String]
261
+ # @param location [String]
262
+ # @param security_health_analytics_custom_module [String]
263
+ #
264
+ # @overload security_health_analytics_custom_module_path(project:, location:, security_health_analytics_custom_module:)
265
+ # The resource will be in the following format:
266
+ #
267
+ # `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
268
+ #
269
+ # @param project [String]
270
+ # @param location [String]
271
+ # @param security_health_analytics_custom_module [String]
272
+ #
273
+ # @overload security_health_analytics_custom_module_path(folder:, location:, security_health_analytics_custom_module:)
274
+ # The resource will be in the following format:
275
+ #
276
+ # `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
277
+ #
278
+ # @param folder [String]
279
+ # @param location [String]
280
+ # @param security_health_analytics_custom_module [String]
281
+ #
282
+ # @return [::String]
283
+ def security_health_analytics_custom_module_path **args
284
+ resources = {
285
+ "location:organization:security_health_analytics_custom_module" => (proc do |organization:, location:, security_health_analytics_custom_module:|
286
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
287
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
288
+
289
+ "organizations/#{organization}/locations/#{location}/securityHealthAnalyticsCustomModules/#{security_health_analytics_custom_module}"
290
+ end),
291
+ "location:project:security_health_analytics_custom_module" => (proc do |project:, location:, security_health_analytics_custom_module:|
292
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
293
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
294
+
295
+ "projects/#{project}/locations/#{location}/securityHealthAnalyticsCustomModules/#{security_health_analytics_custom_module}"
296
+ end),
297
+ "folder:location:security_health_analytics_custom_module" => (proc do |folder:, location:, security_health_analytics_custom_module:|
298
+ raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
299
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
300
+
301
+ "folders/#{folder}/locations/#{location}/securityHealthAnalyticsCustomModules/#{security_health_analytics_custom_module}"
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
+ extend self
311
+ end
312
+ end
313
+ end
314
+ end
315
+ end
316
+ end