google-cloud-security_center-v1 0.4.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +188 -190
  3. data/README.md +66 -2
  4. data/lib/google/cloud/security_center/v1/security_center/client.rb +142 -105
  5. data/lib/google/cloud/security_center/v1/security_center/operations.rb +95 -10
  6. data/lib/google/cloud/security_center/v1/security_center/paths.rb +175 -17
  7. data/lib/google/cloud/security_center/v1/version.rb +1 -1
  8. data/lib/google/cloud/securitycenter/v1/asset_pb.rb +4 -1
  9. data/lib/google/cloud/securitycenter/v1/finding_pb.rb +2 -1
  10. data/lib/google/cloud/securitycenter/v1/folder_pb.rb +24 -0
  11. data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +1 -1
  12. data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +1 -1
  13. data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +2 -1
  14. data/lib/google/cloud/securitycenter/v1/resource_pb.rb +3 -0
  15. data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +1 -1
  16. data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +2 -1
  17. data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +2 -0
  18. data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +5 -2
  19. data/lib/google/cloud/securitycenter/v1/source_pb.rb +2 -1
  20. data/proto_docs/google/api/field_behavior.rb +6 -0
  21. data/proto_docs/google/cloud/securitycenter/v1/asset.rb +13 -2
  22. data/proto_docs/google/cloud/securitycenter/v1/finding.rb +10 -1
  23. data/proto_docs/google/cloud/securitycenter/v1/folder.rb +40 -0
  24. data/proto_docs/google/cloud/securitycenter/v1/organization_settings.rb +4 -0
  25. data/proto_docs/google/cloud/securitycenter/v1/resource.rb +5 -0
  26. data/proto_docs/google/cloud/securitycenter/v1/security_marks.rb +10 -0
  27. data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +77 -43
  28. data/proto_docs/google/cloud/securitycenter/v1/source.rb +8 -0
  29. data/proto_docs/google/longrunning/operations.rb +17 -3
  30. data/proto_docs/google/protobuf/any.rb +5 -2
  31. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  32. metadata +23 -13
@@ -47,6 +47,14 @@ module Google
47
47
  # scan and detect four common vulnerabilities, including cross-site-scripting
48
48
  # (XSS), Flash injection, mixed content (HTTP in HTTPS), and
49
49
  # outdated or insecure libraries."
50
+ # @!attribute [rw] canonical_name
51
+ # @return [::String]
52
+ # The canonical name of the finding. It's either
53
+ # "organizations/\\{organization_id}/sources/\\{source_id}",
54
+ # "folders/\\{folder_id}/sources/\\{source_id}" or
55
+ # "projects/\\{project_number}/sources/\\{source_id}",
56
+ # depending on the closest CRM ancestor of the resource associated with the
57
+ # finding.
50
58
  class Source
51
59
  include ::Google::Protobuf::MessageExts
52
60
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -25,7 +25,7 @@ module Google
25
25
  # @return [::String]
26
26
  # The server-assigned name, which is only unique within the same service that
27
27
  # originally returns it. If you use the default HTTP mapping, the
28
- # `name` should have the format of `operations/some/unique/name`.
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
29
  # @!attribute [rw] metadata
30
30
  # @return [::Google::Protobuf::Any]
31
31
  # Service-specific metadata associated with the operation. It typically
@@ -35,7 +35,7 @@ module Google
35
35
  # @!attribute [rw] done
36
36
  # @return [::Boolean]
37
37
  # If the value is `false`, it means the operation is still in progress.
38
- # If true, the operation is completed, and either `error` or `response` is
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
39
  # available.
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
@@ -67,7 +67,7 @@ module Google
67
67
  # The request message for Operations.ListOperations.
68
68
  # @!attribute [rw] name
69
69
  # @return [::String]
70
- # The name of the operation collection.
70
+ # The name of the operation's parent resource.
71
71
  # @!attribute [rw] filter
72
72
  # @return [::String]
73
73
  # The standard list filter.
@@ -112,6 +112,20 @@ module Google
112
112
  extend ::Google::Protobuf::MessageExts::ClassMethods
113
113
  end
114
114
 
115
+ # The request message for Operations.WaitOperation.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # The name of the operation resource to wait on.
119
+ # @!attribute [rw] timeout
120
+ # @return [::Google::Protobuf::Duration]
121
+ # The maximum duration to wait before timing out. If left blank, the wait
122
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
123
+ # If RPC context deadline is also specified, the shorter one will be used.
124
+ class WaitOperationRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
115
129
  # A message representing the message types used by a long-running operation.
116
130
  #
117
131
  # Example:
@@ -57,10 +57,13 @@ module Google
57
57
  # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
- # any, err := ptypes.MarshalAny(foo)
60
+ # any, err := anypb.New(foo)
61
+ # if err != nil {
62
+ # ...
63
+ # }
61
64
  # ...
62
65
  # foo := &pb.Foo{}
63
- # if err := ptypes.UnmarshalAny(any, foo); err != nil {
66
+ # if err := any.UnmarshalTo(foo); err != nil {
64
67
  # ...
65
68
  # }
66
69
  #
@@ -70,7 +70,16 @@ module Google
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
72
  #
73
- # Example 5: Compute Timestamp from current time in Python.
73
+ # Example 5: Compute Timestamp from Java `Instant.now()`.
74
+ #
75
+ # Instant now = Instant.now();
76
+ #
77
+ # Timestamp timestamp =
78
+ # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
+ # .setNanos(now.getNano()).build();
80
+ #
81
+ #
82
+ # Example 6: Compute Timestamp from current time in Python.
74
83
  #
75
84
  # timestamp = Timestamp()
76
85
  # timestamp.GetCurrentTime()
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security_center-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-15 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.3'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.3'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +53,7 @@ dependencies:
47
53
  version: 0.6.10
48
54
  - - "<"
49
55
  - !ruby/object:Gem::Version
50
- version: '2.0'
56
+ version: 2.a
51
57
  type: :runtime
52
58
  prerelease: false
53
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,21 +63,21 @@ dependencies:
57
63
  version: 0.6.10
58
64
  - - "<"
59
65
  - !ruby/object:Gem::Version
60
- version: '2.0'
66
+ version: 2.a
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: google-style
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - "~>"
66
72
  - !ruby/object:Gem::Version
67
- version: 1.24.0
73
+ version: 1.25.1
68
74
  type: :development
69
75
  prerelease: false
70
76
  version_requirements: !ruby/object:Gem::Requirement
71
77
  requirements:
72
78
  - - "~>"
73
79
  - !ruby/object:Gem::Version
74
- version: 1.24.0
80
+ version: 1.25.1
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: minitest
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +177,9 @@ dependencies:
171
177
  - !ruby/object:Gem::Version
172
178
  version: '0.9'
173
179
  description: Security Command Center API provides access to temporal views of assets
174
- and findings within an organization.
180
+ and findings within an organization. Note that google-cloud-security_center-v1 is
181
+ a version-specific client library. For most uses, we recommend installing the main
182
+ client library google-cloud-security_center instead. See the readme for more details.
175
183
  email: googleapis-packages@google.com
176
184
  executables: []
177
185
  extensions: []
@@ -191,6 +199,7 @@ files:
191
199
  - lib/google/cloud/security_center/v1/version.rb
192
200
  - lib/google/cloud/securitycenter/v1/asset_pb.rb
193
201
  - lib/google/cloud/securitycenter/v1/finding_pb.rb
202
+ - lib/google/cloud/securitycenter/v1/folder_pb.rb
194
203
  - lib/google/cloud/securitycenter/v1/notification_config_pb.rb
195
204
  - lib/google/cloud/securitycenter/v1/notification_message_pb.rb
196
205
  - lib/google/cloud/securitycenter/v1/organization_settings_pb.rb
@@ -205,6 +214,7 @@ files:
205
214
  - proto_docs/google/api/resource.rb
206
215
  - proto_docs/google/cloud/securitycenter/v1/asset.rb
207
216
  - proto_docs/google/cloud/securitycenter/v1/finding.rb
217
+ - proto_docs/google/cloud/securitycenter/v1/folder.rb
208
218
  - proto_docs/google/cloud/securitycenter/v1/notification_config.rb
209
219
  - proto_docs/google/cloud/securitycenter/v1/notification_message.rb
210
220
  - proto_docs/google/cloud/securitycenter/v1/organization_settings.rb
@@ -237,14 +247,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
237
247
  requirements:
238
248
  - - ">="
239
249
  - !ruby/object:Gem::Version
240
- version: '2.4'
250
+ version: '2.5'
241
251
  required_rubygems_version: !ruby/object:Gem::Requirement
242
252
  requirements:
243
253
  - - ">="
244
254
  - !ruby/object:Gem::Version
245
255
  version: '0'
246
256
  requirements: []
247
- rubygems_version: 3.1.4
257
+ rubygems_version: 3.2.17
248
258
  signing_key:
249
259
  specification_version: 4
250
260
  summary: API Client library for the Cloud Security Command Center V1 API