google-cloud-security_center-v1 0.25.1 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/security_center/v1/rest.rb +37 -0
- data/lib/google/cloud/security_center/v1/security_center/client.rb +40 -56
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +12 -14
- data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +3614 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/operations.rb +792 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +2610 -0
- data/lib/google/cloud/security_center/v1/security_center/rest.rb +53 -0
- data/lib/google/cloud/security_center/v1/security_center.rb +6 -0
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/security_center/v1.rb +5 -0
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51dc99d67ee38591128f7547330f3b9ae90005346df0134e640c26dbe654b1c4
|
4
|
+
data.tar.gz: 0bfec05a888c1106cff65021c7a5633e10a51dd5cde26f36ee8788ff3d8ece52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bda3d7720e1d8645ddb8ba6dfb8f5ccfb0a9d1bdedb12c493722a984e43cb0efebc6bb62be7e34e1624e80174fa16a810638aa1fe167344a6eaca5bfa6f3bce
|
7
|
+
data.tar.gz: 8c4340940dfa3e2518cb55cab47af408699494cd640b2e58b854ca3f8d81fe4f1bf5fcf71fb62912caaa47a0c4d2c32d651cbc891b30d26d62c9dbc3d0a1c179
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Security Command Center V1 API
|
2
2
|
|
3
|
-
API
|
3
|
+
Security Command Center API provides access to temporal views of assets and findings within an organization.
|
4
4
|
|
5
5
|
Security Command Center API provides access to temporal views of assets and findings within an organization.
|
6
6
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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/security_center/v1/security_center/rest"
|
20
|
+
require "google/cloud/security_center/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module SecurityCenter
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/security_center/v1/rest"
|
31
|
+
# client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -305,14 +305,14 @@ module Google
|
|
305
305
|
# # Call the bulk_mute_findings method.
|
306
306
|
# result = client.bulk_mute_findings request
|
307
307
|
#
|
308
|
-
# # The returned object is of type Gapic::Operation. You can use
|
309
|
-
# #
|
310
|
-
# #
|
308
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
309
|
+
# # check the status of an operation, cancel it, or wait for results.
|
310
|
+
# # Here is how to wait for a response.
|
311
311
|
# result.wait_until_done! timeout: 60
|
312
312
|
# if result.response?
|
313
313
|
# p result.response
|
314
314
|
# else
|
315
|
-
# puts "
|
315
|
+
# puts "No response received."
|
316
316
|
# end
|
317
317
|
#
|
318
318
|
def bulk_mute_findings request, options = nil
|
@@ -1597,13 +1597,11 @@ module Google
|
|
1597
1597
|
# # Call the group_assets method.
|
1598
1598
|
# result = client.group_assets request
|
1599
1599
|
#
|
1600
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1601
|
-
# #
|
1602
|
-
#
|
1603
|
-
# # methods are also available for managing paging directly.
|
1604
|
-
# result.each do |response|
|
1600
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1601
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1602
|
+
# result.each do |item|
|
1605
1603
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::GroupResult.
|
1606
|
-
# p
|
1604
|
+
# p item
|
1607
1605
|
# end
|
1608
1606
|
#
|
1609
1607
|
def group_assets request, options = nil
|
@@ -1822,13 +1820,11 @@ module Google
|
|
1822
1820
|
# # Call the group_findings method.
|
1823
1821
|
# result = client.group_findings request
|
1824
1822
|
#
|
1825
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1826
|
-
# #
|
1827
|
-
#
|
1828
|
-
# # methods are also available for managing paging directly.
|
1829
|
-
# result.each do |response|
|
1823
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1824
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1825
|
+
# result.each do |item|
|
1830
1826
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::GroupResult.
|
1831
|
-
# p
|
1827
|
+
# p item
|
1832
1828
|
# end
|
1833
1829
|
#
|
1834
1830
|
def group_findings request, options = nil
|
@@ -2044,13 +2040,11 @@ module Google
|
|
2044
2040
|
# # Call the list_assets method.
|
2045
2041
|
# result = client.list_assets request
|
2046
2042
|
#
|
2047
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2048
|
-
# #
|
2049
|
-
#
|
2050
|
-
# # methods are also available for managing paging directly.
|
2051
|
-
# result.each do |response|
|
2043
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2044
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2045
|
+
# result.each do |item|
|
2052
2046
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult.
|
2053
|
-
# p
|
2047
|
+
# p item
|
2054
2048
|
# end
|
2055
2049
|
#
|
2056
2050
|
def list_assets request, options = nil
|
@@ -2272,13 +2266,11 @@ module Google
|
|
2272
2266
|
# # Call the list_findings method.
|
2273
2267
|
# result = client.list_findings request
|
2274
2268
|
#
|
2275
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2276
|
-
# #
|
2277
|
-
#
|
2278
|
-
# # methods are also available for managing paging directly.
|
2279
|
-
# result.each do |response|
|
2269
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2270
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2271
|
+
# result.each do |item|
|
2280
2272
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult.
|
2281
|
-
# p
|
2273
|
+
# p item
|
2282
2274
|
# end
|
2283
2275
|
#
|
2284
2276
|
def list_findings request, options = nil
|
@@ -2377,13 +2369,11 @@ module Google
|
|
2377
2369
|
# # Call the list_mute_configs method.
|
2378
2370
|
# result = client.list_mute_configs request
|
2379
2371
|
#
|
2380
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2381
|
-
# #
|
2382
|
-
#
|
2383
|
-
# # methods are also available for managing paging directly.
|
2384
|
-
# result.each do |response|
|
2372
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2373
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2374
|
+
# result.each do |item|
|
2385
2375
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::MuteConfig.
|
2386
|
-
# p
|
2376
|
+
# p item
|
2387
2377
|
# end
|
2388
2378
|
#
|
2389
2379
|
def list_mute_configs request, options = nil
|
@@ -2478,13 +2468,11 @@ module Google
|
|
2478
2468
|
# # Call the list_notification_configs method.
|
2479
2469
|
# result = client.list_notification_configs request
|
2480
2470
|
#
|
2481
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2482
|
-
# #
|
2483
|
-
#
|
2484
|
-
# # methods are also available for managing paging directly.
|
2485
|
-
# result.each do |response|
|
2471
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2472
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2473
|
+
# result.each do |item|
|
2486
2474
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::NotificationConfig.
|
2487
|
-
# p
|
2475
|
+
# p item
|
2488
2476
|
# end
|
2489
2477
|
#
|
2490
2478
|
def list_notification_configs request, options = nil
|
@@ -2579,13 +2567,11 @@ module Google
|
|
2579
2567
|
# # Call the list_sources method.
|
2580
2568
|
# result = client.list_sources request
|
2581
2569
|
#
|
2582
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2583
|
-
# #
|
2584
|
-
#
|
2585
|
-
# # methods are also available for managing paging directly.
|
2586
|
-
# result.each do |response|
|
2570
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2571
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2572
|
+
# result.each do |item|
|
2587
2573
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::Source.
|
2588
|
-
# p
|
2574
|
+
# p item
|
2589
2575
|
# end
|
2590
2576
|
#
|
2591
2577
|
def list_sources request, options = nil
|
@@ -2677,14 +2663,14 @@ module Google
|
|
2677
2663
|
# # Call the run_asset_discovery method.
|
2678
2664
|
# result = client.run_asset_discovery request
|
2679
2665
|
#
|
2680
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2681
|
-
# #
|
2682
|
-
# #
|
2666
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2667
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2668
|
+
# # Here is how to wait for a response.
|
2683
2669
|
# result.wait_until_done! timeout: 60
|
2684
2670
|
# if result.response?
|
2685
2671
|
# p result.response
|
2686
2672
|
# else
|
2687
|
-
# puts "
|
2673
|
+
# puts "No response received."
|
2688
2674
|
# end
|
2689
2675
|
#
|
2690
2676
|
def run_asset_discovery request, options = nil
|
@@ -4070,13 +4056,11 @@ module Google
|
|
4070
4056
|
# # Call the list_big_query_exports method.
|
4071
4057
|
# result = client.list_big_query_exports request
|
4072
4058
|
#
|
4073
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
4074
|
-
# #
|
4075
|
-
#
|
4076
|
-
# # methods are also available for managing paging directly.
|
4077
|
-
# result.each do |response|
|
4059
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4060
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4061
|
+
# result.each do |item|
|
4078
4062
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::BigQueryExport.
|
4079
|
-
# p
|
4063
|
+
# p item
|
4080
4064
|
# end
|
4081
4065
|
#
|
4082
4066
|
def list_big_query_exports request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|