google-cloud-security_center-v1 0.25.0 → 0.26.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/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 +49 -63
- 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 +7 -1
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/security_center/v1.rb +7 -2
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +9 -7
- metadata +14 -8
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
|
@@ -1452,8 +1452,8 @@ module Google
|
|
1452
1452
|
#
|
1453
1453
|
# @param parent [::String]
|
1454
1454
|
# Required. The name of the parent to group the assets by. Its format is
|
1455
|
-
# "organizations/[organization_id], folders/[folder_id], or
|
1456
|
-
# projects/[project_id]".
|
1455
|
+
# "organizations/[organization_id]", "folders/[folder_id]", or
|
1456
|
+
# "projects/[project_id]".
|
1457
1457
|
# @param filter [::String]
|
1458
1458
|
# Expression that defines the filter to apply across assets.
|
1459
1459
|
# The expression is a list of zero or more restrictions combined via logical
|
@@ -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
|
@@ -1892,9 +1888,11 @@ module Google
|
|
1892
1888
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1893
1889
|
#
|
1894
1890
|
# @param parent [::String]
|
1895
|
-
# Required. The name of the parent that the
|
1896
|
-
#
|
1897
|
-
#
|
1891
|
+
# Required. The name of the parent resource that contains the assets. The
|
1892
|
+
# value that you can specify on parent depends on the method in which you
|
1893
|
+
# specify parent. You can specify one of the following values:
|
1894
|
+
# "organizations/[organization_id]", "folders/[folder_id]", or
|
1895
|
+
# "projects/[project_id]".
|
1898
1896
|
# @param filter [::String]
|
1899
1897
|
# Expression that defines the filter to apply across assets.
|
1900
1898
|
# The expression is a list of zero or more restrictions combined via logical
|
@@ -2042,13 +2040,11 @@ module Google
|
|
2042
2040
|
# # Call the list_assets method.
|
2043
2041
|
# result = client.list_assets request
|
2044
2042
|
#
|
2045
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2046
|
-
# #
|
2047
|
-
#
|
2048
|
-
# # methods are also available for managing paging directly.
|
2049
|
-
# 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|
|
2050
2046
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult.
|
2051
|
-
# p
|
2047
|
+
# p item
|
2052
2048
|
# end
|
2053
2049
|
#
|
2054
2050
|
def list_assets request, options = nil
|
@@ -2270,13 +2266,11 @@ module Google
|
|
2270
2266
|
# # Call the list_findings method.
|
2271
2267
|
# result = client.list_findings request
|
2272
2268
|
#
|
2273
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2274
|
-
# #
|
2275
|
-
#
|
2276
|
-
# # methods are also available for managing paging directly.
|
2277
|
-
# 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|
|
2278
2272
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult.
|
2279
|
-
# p
|
2273
|
+
# p item
|
2280
2274
|
# end
|
2281
2275
|
#
|
2282
2276
|
def list_findings request, options = nil
|
@@ -2375,13 +2369,11 @@ module Google
|
|
2375
2369
|
# # Call the list_mute_configs method.
|
2376
2370
|
# result = client.list_mute_configs request
|
2377
2371
|
#
|
2378
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2379
|
-
# #
|
2380
|
-
#
|
2381
|
-
# # methods are also available for managing paging directly.
|
2382
|
-
# 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|
|
2383
2375
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::MuteConfig.
|
2384
|
-
# p
|
2376
|
+
# p item
|
2385
2377
|
# end
|
2386
2378
|
#
|
2387
2379
|
def list_mute_configs request, options = nil
|
@@ -2476,13 +2468,11 @@ module Google
|
|
2476
2468
|
# # Call the list_notification_configs method.
|
2477
2469
|
# result = client.list_notification_configs request
|
2478
2470
|
#
|
2479
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2480
|
-
# #
|
2481
|
-
#
|
2482
|
-
# # methods are also available for managing paging directly.
|
2483
|
-
# 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|
|
2484
2474
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::NotificationConfig.
|
2485
|
-
# p
|
2475
|
+
# p item
|
2486
2476
|
# end
|
2487
2477
|
#
|
2488
2478
|
def list_notification_configs request, options = nil
|
@@ -2547,8 +2537,8 @@ module Google
|
|
2547
2537
|
#
|
2548
2538
|
# @param parent [::String]
|
2549
2539
|
# Required. Resource name of the parent of sources to list. Its format should
|
2550
|
-
# be "organizations/[organization_id], folders/[folder_id], or
|
2551
|
-
# projects/[project_id]".
|
2540
|
+
# be "organizations/[organization_id]", "folders/[folder_id]", or
|
2541
|
+
# "projects/[project_id]".
|
2552
2542
|
# @param page_token [::String]
|
2553
2543
|
# The value returned by the last `ListSourcesResponse`; indicates
|
2554
2544
|
# that this is a continuation of a prior `ListSources` call, and
|
@@ -2577,13 +2567,11 @@ module Google
|
|
2577
2567
|
# # Call the list_sources method.
|
2578
2568
|
# result = client.list_sources request
|
2579
2569
|
#
|
2580
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2581
|
-
# #
|
2582
|
-
#
|
2583
|
-
# # methods are also available for managing paging directly.
|
2584
|
-
# 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|
|
2585
2573
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::Source.
|
2586
|
-
# p
|
2574
|
+
# p item
|
2587
2575
|
# end
|
2588
2576
|
#
|
2589
2577
|
def list_sources request, options = nil
|
@@ -2675,14 +2663,14 @@ module Google
|
|
2675
2663
|
# # Call the run_asset_discovery method.
|
2676
2664
|
# result = client.run_asset_discovery request
|
2677
2665
|
#
|
2678
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2679
|
-
# #
|
2680
|
-
# #
|
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.
|
2681
2669
|
# result.wait_until_done! timeout: 60
|
2682
2670
|
# if result.response?
|
2683
2671
|
# p result.response
|
2684
2672
|
# else
|
2685
|
-
# puts "
|
2673
|
+
# puts "No response received."
|
2686
2674
|
# end
|
2687
2675
|
#
|
2688
2676
|
def run_asset_discovery request, options = nil
|
@@ -4068,13 +4056,11 @@ module Google
|
|
4068
4056
|
# # Call the list_big_query_exports method.
|
4069
4057
|
# result = client.list_big_query_exports request
|
4070
4058
|
#
|
4071
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
4072
|
-
# #
|
4073
|
-
#
|
4074
|
-
# # methods are also available for managing paging directly.
|
4075
|
-
# 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|
|
4076
4062
|
# # Each element is of type ::Google::Cloud::SecurityCenter::V1::BigQueryExport.
|
4077
|
-
# p
|
4063
|
+
# p item
|
4078
4064
|
# end
|
4079
4065
|
#
|
4080
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
|