google-cloud-security_center-v1p1beta1 0.9.0 → 0.10.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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +2 -2
  4. data/lib/google/cloud/security_center/v1p1beta1/rest.rb +37 -0
  5. data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +28 -40
  6. data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +12 -14
  7. data/lib/google/cloud/security_center/v1p1beta1/security_center/rest/client.rb +2575 -0
  8. data/lib/google/cloud/security_center/v1p1beta1/security_center/rest/operations.rb +793 -0
  9. data/lib/google/cloud/security_center/v1p1beta1/security_center/rest/service_stub.rb +1566 -0
  10. data/lib/google/cloud/security_center/v1p1beta1/security_center/rest.rb +53 -0
  11. data/lib/google/cloud/security_center/v1p1beta1/security_center.rb +7 -1
  12. data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
  13. data/lib/google/cloud/security_center/v1p1beta1.rb +7 -2
  14. data/lib/google/cloud/securitycenter/v1p1beta1/asset_pb.rb +0 -1
  15. data/lib/google/cloud/securitycenter/v1p1beta1/finding_pb.rb +0 -1
  16. data/lib/google/cloud/securitycenter/v1p1beta1/folder_pb.rb +0 -2
  17. data/lib/google/cloud/securitycenter/v1p1beta1/notification_config_pb.rb +0 -1
  18. data/lib/google/cloud/securitycenter/v1p1beta1/notification_message_pb.rb +0 -1
  19. data/lib/google/cloud/securitycenter/v1p1beta1/organization_settings_pb.rb +0 -1
  20. data/lib/google/cloud/securitycenter/v1p1beta1/resource_pb.rb +0 -1
  21. data/lib/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response_pb.rb +0 -1
  22. data/lib/google/cloud/securitycenter/v1p1beta1/security_marks_pb.rb +0 -1
  23. data/lib/google/cloud/securitycenter/v1p1beta1/source_pb.rb +0 -1
  24. data/proto_docs/google/api/client.rb +318 -0
  25. data/proto_docs/google/api/launch_stage.rb +71 -0
  26. data/proto_docs/google/protobuf/empty.rb +0 -2
  27. data/proto_docs/google/rpc/status.rb +4 -2
  28. metadata +16 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ab226ed56466cb3ee43d42294934244cbf7e3e8864ecf0aca11aa56dcf8a87a
4
- data.tar.gz: f04fade253c7e70aad27921681a5601812b18bb7312c6546af4403d61b623aa8
3
+ metadata.gz: c93d57c433e2c9c12f7854ab04bb8899736e7c9c31c0082ebb7097e450754dee
4
+ data.tar.gz: 063dba0cde485cf5dad03928cddfb72e8a57e52021236e7c8b71438cac89c5dc
5
5
  SHA512:
6
- metadata.gz: be2cf457ef17c8d523de7dce83c44b78d0b3148a7ca2b590d109a27ec5661f5a84fea671979f910c30ec05fa6fd840e0d8a86316fe15f33876fe84312ed7f37d
7
- data.tar.gz: 466e744f311c4348f6fcdc7ef52f1da74b08c17673ffe3dc694d026ed8f806df97933fd5b0a9c3f0912cae4db5eca3e82799884b4a142d23e2a4d99a9e531f11
6
+ metadata.gz: 707f6dad79a4dddeb6814e5dbb450e61e10d0c96deec433f992d6c41e8f03ed63000e02a2e84f125609015c9269e20dffd02e5733498f0f878bcdeec07f56ead
7
+ data.tar.gz: b56cea626dd096fac0b503dda6094261bb6ad798ad4075a28e1a5492d01977ef40325f1de49e263239a7c20865e8b8c09421f8700e11e6c25458fe443764e315
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Security Command Center V1p1beta1 API
2
2
 
3
- API Client library for the Cloud Security Command Center V1p1beta1 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
 
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -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/v1p1beta1/security_center/rest"
20
+ require "google/cloud/security_center/v1p1beta1/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/v1p1beta1/rest"
31
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
32
+ #
33
+ module V1p1beta1
34
+ end
35
+ end
36
+ end
37
+ end
@@ -1109,13 +1109,11 @@ module Google
1109
1109
  # # Call the group_assets method.
1110
1110
  # result = client.group_assets request
1111
1111
  #
1112
- # # The returned object is of type Gapic::PagedEnumerable. You can
1113
- # # iterate over all elements by calling #each, and the enumerable
1114
- # # will lazily make API calls to fetch subsequent pages. Other
1115
- # # methods are also available for managing paging directly.
1116
- # result.each do |response|
1112
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1113
+ # # over elements, and API calls will be issued to fetch pages as needed.
1114
+ # result.each do |item|
1117
1115
  # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult.
1118
- # p response
1116
+ # p item
1119
1117
  # end
1120
1118
  #
1121
1119
  def group_assets request, options = nil
@@ -1325,13 +1323,11 @@ module Google
1325
1323
  # # Call the group_findings method.
1326
1324
  # result = client.group_findings request
1327
1325
  #
1328
- # # The returned object is of type Gapic::PagedEnumerable. You can
1329
- # # iterate over all elements by calling #each, and the enumerable
1330
- # # will lazily make API calls to fetch subsequent pages. Other
1331
- # # methods are also available for managing paging directly.
1332
- # result.each do |response|
1326
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1327
+ # # over elements, and API calls will be issued to fetch pages as needed.
1328
+ # result.each do |item|
1333
1329
  # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult.
1334
- # p response
1330
+ # p item
1335
1331
  # end
1336
1332
  #
1337
1333
  def group_findings request, options = nil
@@ -1545,13 +1541,11 @@ module Google
1545
1541
  # # Call the list_assets method.
1546
1542
  # result = client.list_assets request
1547
1543
  #
1548
- # # The returned object is of type Gapic::PagedEnumerable. You can
1549
- # # iterate over all elements by calling #each, and the enumerable
1550
- # # will lazily make API calls to fetch subsequent pages. Other
1551
- # # methods are also available for managing paging directly.
1552
- # result.each do |response|
1544
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1545
+ # # over elements, and API calls will be issued to fetch pages as needed.
1546
+ # result.each do |item|
1553
1547
  # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult.
1554
- # p response
1548
+ # p item
1555
1549
  # end
1556
1550
  #
1557
1551
  def list_assets request, options = nil
@@ -1762,13 +1756,11 @@ module Google
1762
1756
  # # Call the list_findings method.
1763
1757
  # result = client.list_findings request
1764
1758
  #
1765
- # # The returned object is of type Gapic::PagedEnumerable. You can
1766
- # # iterate over all elements by calling #each, and the enumerable
1767
- # # will lazily make API calls to fetch subsequent pages. Other
1768
- # # methods are also available for managing paging directly.
1769
- # result.each do |response|
1759
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1760
+ # # over elements, and API calls will be issued to fetch pages as needed.
1761
+ # result.each do |item|
1770
1762
  # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult.
1771
- # p response
1763
+ # p item
1772
1764
  # end
1773
1765
  #
1774
1766
  def list_findings request, options = nil
@@ -1862,13 +1854,11 @@ module Google
1862
1854
  # # Call the list_notification_configs method.
1863
1855
  # result = client.list_notification_configs request
1864
1856
  #
1865
- # # The returned object is of type Gapic::PagedEnumerable. You can
1866
- # # iterate over all elements by calling #each, and the enumerable
1867
- # # will lazily make API calls to fetch subsequent pages. Other
1868
- # # methods are also available for managing paging directly.
1869
- # result.each do |response|
1857
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1858
+ # # over elements, and API calls will be issued to fetch pages as needed.
1859
+ # result.each do |item|
1870
1860
  # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig.
1871
- # p response
1861
+ # p item
1872
1862
  # end
1873
1863
  #
1874
1864
  def list_notification_configs request, options = nil
@@ -1963,13 +1953,11 @@ module Google
1963
1953
  # # Call the list_sources method.
1964
1954
  # result = client.list_sources request
1965
1955
  #
1966
- # # The returned object is of type Gapic::PagedEnumerable. You can
1967
- # # iterate over all elements by calling #each, and the enumerable
1968
- # # will lazily make API calls to fetch subsequent pages. Other
1969
- # # methods are also available for managing paging directly.
1970
- # result.each do |response|
1956
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1957
+ # # over elements, and API calls will be issued to fetch pages as needed.
1958
+ # result.each do |item|
1971
1959
  # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::Source.
1972
- # p response
1960
+ # p item
1973
1961
  # end
1974
1962
  #
1975
1963
  def list_sources request, options = nil
@@ -2061,14 +2049,14 @@ module Google
2061
2049
  # # Call the run_asset_discovery method.
2062
2050
  # result = client.run_asset_discovery request
2063
2051
  #
2064
- # # The returned object is of type Gapic::Operation. You can use this
2065
- # # object to check the status of an operation, cancel it, or wait
2066
- # # for results. Here is how to block until completion:
2052
+ # # The returned object is of type Gapic::Operation. You can use it to
2053
+ # # check the status of an operation, cancel it, or wait for results.
2054
+ # # Here is how to wait for a response.
2067
2055
  # result.wait_until_done! timeout: 60
2068
2056
  # if result.response?
2069
2057
  # p result.response
2070
2058
  # else
2071
- # puts "Error!"
2059
+ # puts "No response received."
2072
2060
  # end
2073
2061
  #
2074
2062
  def run_asset_discovery 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