google-cloud-security_center-v1 0.25.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78a251e99aa3cc3bfe81741cae881837a4664b1a3c774aba58cfea98d27062f4
4
- data.tar.gz: a3d0da9f53f313ed334dc2dbcd3a1927d3a8de6e47571ef518a192d1f1be9fe0
3
+ metadata.gz: 51dc99d67ee38591128f7547330f3b9ae90005346df0134e640c26dbe654b1c4
4
+ data.tar.gz: 0bfec05a888c1106cff65021c7a5633e10a51dd5cde26f36ee8788ff3d8ece52
5
5
  SHA512:
6
- metadata.gz: 0f9ff79caa81c3925328e56b459b8a18edaff9be983677e2a164054026a5f138872e9f4c61fa2564893cf0929e17f1fc854c4e9e5b5c1d9443efd922e9f6f01f
7
- data.tar.gz: 1b21eaba1e28a31e247f9b49a0df180882e19f6b7073bf03b77bc2317ccf94dcdda8d58528fd344bd34d3e317052edd4582302bdba7b747550d0664db7a8e895
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
@@ -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
- # # 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
@@ -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 listed assets belong to. Its
1896
- # format is "organizations/[organization_id], folders/[folder_id], or
1897
- # projects/[project_id]".
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
- # # iterate over all elements by calling #each, and the enumerable
2047
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2275
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2380
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2481
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2582
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
2679
- # # object to check the status of an operation, cancel it, or wait
2680
- # # 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.
2681
2669
  # result.wait_until_done! timeout: 60
2682
2670
  # if result.response?
2683
2671
  # p result.response
2684
2672
  # else
2685
- # puts "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
4073
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # 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