google-cloud-security_center-v1 0.25.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c7815afc2f896ce6e1f528aca01e4d15b5a055724f35fdcf9d4f8162bf5c670
4
- data.tar.gz: 3e87dce577c6e5243a524ba83bef33432cf3986de47168d6c1e86f8c8e5c0890
3
+ metadata.gz: 51dc99d67ee38591128f7547330f3b9ae90005346df0134e640c26dbe654b1c4
4
+ data.tar.gz: 0bfec05a888c1106cff65021c7a5633e10a51dd5cde26f36ee8788ff3d8ece52
5
5
  SHA512:
6
- metadata.gz: 4a7f87c1541e20d4ad1282612883f00fd7a8e6abf148ecd741ee3a8af51c8eaf4c04df76578c2181dc71105b9e9724ab0f0c984a25c03f1cf9e369dda41aece5
7
- data.tar.gz: b93652d1d4e138f21d5463941489aa8c9fd87368a60a8832aa05c4d62a9242ff10a1d9b4e10f4bfcf49b99a2caabdc6b651bab87ce400e541af3fa44de778907
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 Client library for the Cloud Security Command Center V1 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 this
309
- # # object to check the status of an operation, cancel it, or wait
310
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
1602
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
1827
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2049
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2277
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2382
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2483
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2584
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
2681
- # # object to check the status of an operation, cancel it, or wait
2682
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
4075
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil