google-apis-threatintelligence_v1beta 0.2.0 → 0.3.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/CHANGELOG.md +4 -0
- data/lib/google/apis/threatintelligence_v1beta/classes.rb +132 -0
- data/lib/google/apis/threatintelligence_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/threatintelligence_v1beta/representations.rb +48 -0
- data/lib/google/apis/threatintelligence_v1beta/service.rb +34 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78f0e3c93a6bc3f68641f5438764209160bc63cf751dae0d5a74ac1d597312eb
|
|
4
|
+
data.tar.gz: d8041dd553f4602a4d5b01b3ef9e45664d52fd78342b0d09ba961ca3d76f0061
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ac5ebb1a7e693c915b9a55fc8802e5579fc9f7708a950140f1f2f951c5f7c5bad1d58deca1c91e2279f1e6f13dfb9fb89dca9cbaf0ed4b456f30f726bda3b1a
|
|
7
|
+
data.tar.gz: f467351af602512e05aa5a1ba01776011f106a1596a2811c65e84083cd5e603f5064759fc837856f68ba07843720ead733a82744719edd2de7ad921829bf4534
|
data/CHANGELOG.md
CHANGED
|
@@ -109,6 +109,11 @@ module Google
|
|
|
109
109
|
# @return [String]
|
|
110
110
|
attr_accessor :external_id
|
|
111
111
|
|
|
112
|
+
# Output only. The number of findings associated with this alert.
|
|
113
|
+
# Corresponds to the JSON property `findingCount`
|
|
114
|
+
# @return [Fixnum]
|
|
115
|
+
attr_accessor :finding_count
|
|
116
|
+
|
|
112
117
|
# Output only. Findings that are covered by this alert.
|
|
113
118
|
# Corresponds to the JSON property `findings`
|
|
114
119
|
# @return [Array<String>]
|
|
@@ -156,6 +161,7 @@ module Google
|
|
|
156
161
|
@duplicated_by = args[:duplicated_by] if args.key?(:duplicated_by)
|
|
157
162
|
@etag = args[:etag] if args.key?(:etag)
|
|
158
163
|
@external_id = args[:external_id] if args.key?(:external_id)
|
|
164
|
+
@finding_count = args[:finding_count] if args.key?(:finding_count)
|
|
159
165
|
@findings = args[:findings] if args.key?(:findings)
|
|
160
166
|
@name = args[:name] if args.key?(:name)
|
|
161
167
|
@priority_analysis = args[:priority_analysis] if args.key?(:priority_analysis)
|
|
@@ -1732,6 +1738,31 @@ module Google
|
|
|
1732
1738
|
end
|
|
1733
1739
|
end
|
|
1734
1740
|
|
|
1741
|
+
# Request message for GenerateOrgProfileConfiguration.
|
|
1742
|
+
class GenerateOrgProfileConfigurationRequest
|
|
1743
|
+
include Google::Apis::Core::Hashable
|
|
1744
|
+
|
|
1745
|
+
# Required. The display name of the organization to generate the profile for.
|
|
1746
|
+
# Corresponds to the JSON property `displayName`
|
|
1747
|
+
# @return [String]
|
|
1748
|
+
attr_accessor :display_name
|
|
1749
|
+
|
|
1750
|
+
# Required. The domain of the organization to generate the profile for.
|
|
1751
|
+
# Corresponds to the JSON property `domain`
|
|
1752
|
+
# @return [String]
|
|
1753
|
+
attr_accessor :domain
|
|
1754
|
+
|
|
1755
|
+
def initialize(**args)
|
|
1756
|
+
update!(**args)
|
|
1757
|
+
end
|
|
1758
|
+
|
|
1759
|
+
# Update properties of this object
|
|
1760
|
+
def update!(**args)
|
|
1761
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
1762
|
+
@domain = args[:domain] if args.key?(:domain)
|
|
1763
|
+
end
|
|
1764
|
+
end
|
|
1765
|
+
|
|
1735
1766
|
# Fleshed out vulnerability object that includes enough details to fill out a
|
|
1736
1767
|
# vulnerability specific view for an issue.
|
|
1737
1768
|
class InbandVulnerability
|
|
@@ -2337,6 +2368,68 @@ module Google
|
|
|
2337
2368
|
end
|
|
2338
2369
|
end
|
|
2339
2370
|
|
|
2371
|
+
# This resource represents a long-running operation that is the result of a
|
|
2372
|
+
# network API call.
|
|
2373
|
+
class Operation
|
|
2374
|
+
include Google::Apis::Core::Hashable
|
|
2375
|
+
|
|
2376
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
|
2377
|
+
# , the operation is completed, and either `error` or `response` is available.
|
|
2378
|
+
# Corresponds to the JSON property `done`
|
|
2379
|
+
# @return [Boolean]
|
|
2380
|
+
attr_accessor :done
|
|
2381
|
+
alias_method :done?, :done
|
|
2382
|
+
|
|
2383
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
2384
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
2385
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
2386
|
+
# data: error code, error message, and error details. You can find out more
|
|
2387
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
2388
|
+
# //cloud.google.com/apis/design/errors).
|
|
2389
|
+
# Corresponds to the JSON property `error`
|
|
2390
|
+
# @return [Google::Apis::ThreatintelligenceV1beta::Status]
|
|
2391
|
+
attr_accessor :error
|
|
2392
|
+
|
|
2393
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
2394
|
+
# progress information and common metadata such as create time. Some services
|
|
2395
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
2396
|
+
# operation should document the metadata type, if any.
|
|
2397
|
+
# Corresponds to the JSON property `metadata`
|
|
2398
|
+
# @return [Hash<String,Object>]
|
|
2399
|
+
attr_accessor :metadata
|
|
2400
|
+
|
|
2401
|
+
# The server-assigned name, which is only unique within the same service that
|
|
2402
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
2403
|
+
# be a resource name ending with `operations/`unique_id``.
|
|
2404
|
+
# Corresponds to the JSON property `name`
|
|
2405
|
+
# @return [String]
|
|
2406
|
+
attr_accessor :name
|
|
2407
|
+
|
|
2408
|
+
# The normal, successful response of the operation. If the original method
|
|
2409
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
|
2410
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
|
2411
|
+
# response should be the resource. For other methods, the response should have
|
|
2412
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
|
2413
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
|
2414
|
+
# `TakeSnapshotResponse`.
|
|
2415
|
+
# Corresponds to the JSON property `response`
|
|
2416
|
+
# @return [Hash<String,Object>]
|
|
2417
|
+
attr_accessor :response
|
|
2418
|
+
|
|
2419
|
+
def initialize(**args)
|
|
2420
|
+
update!(**args)
|
|
2421
|
+
end
|
|
2422
|
+
|
|
2423
|
+
# Update properties of this object
|
|
2424
|
+
def update!(**args)
|
|
2425
|
+
@done = args[:done] if args.key?(:done)
|
|
2426
|
+
@error = args[:error] if args.key?(:error)
|
|
2427
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
2428
|
+
@name = args[:name] if args.key?(:name)
|
|
2429
|
+
@response = args[:response] if args.key?(:response)
|
|
2430
|
+
end
|
|
2431
|
+
end
|
|
2432
|
+
|
|
2340
2433
|
# Structured priority analysis for a threat.
|
|
2341
2434
|
class PriorityAnalysis
|
|
2342
2435
|
include Google::Apis::Core::Hashable
|
|
@@ -2535,6 +2628,45 @@ module Google
|
|
|
2535
2628
|
end
|
|
2536
2629
|
end
|
|
2537
2630
|
|
|
2631
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
2632
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
2633
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
2634
|
+
# data: error code, error message, and error details. You can find out more
|
|
2635
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
2636
|
+
# //cloud.google.com/apis/design/errors).
|
|
2637
|
+
class Status
|
|
2638
|
+
include Google::Apis::Core::Hashable
|
|
2639
|
+
|
|
2640
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
2641
|
+
# Corresponds to the JSON property `code`
|
|
2642
|
+
# @return [Fixnum]
|
|
2643
|
+
attr_accessor :code
|
|
2644
|
+
|
|
2645
|
+
# A list of messages that carry the error details. There is a common set of
|
|
2646
|
+
# message types for APIs to use.
|
|
2647
|
+
# Corresponds to the JSON property `details`
|
|
2648
|
+
# @return [Array<Hash<String,Object>>]
|
|
2649
|
+
attr_accessor :details
|
|
2650
|
+
|
|
2651
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
|
2652
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
|
2653
|
+
# field, or localized by the client.
|
|
2654
|
+
# Corresponds to the JSON property `message`
|
|
2655
|
+
# @return [String]
|
|
2656
|
+
attr_accessor :message
|
|
2657
|
+
|
|
2658
|
+
def initialize(**args)
|
|
2659
|
+
update!(**args)
|
|
2660
|
+
end
|
|
2661
|
+
|
|
2662
|
+
# Update properties of this object
|
|
2663
|
+
def update!(**args)
|
|
2664
|
+
@code = args[:code] if args.key?(:code)
|
|
2665
|
+
@details = args[:details] if args.key?(:details)
|
|
2666
|
+
@message = args[:message] if args.key?(:message)
|
|
2667
|
+
end
|
|
2668
|
+
end
|
|
2669
|
+
|
|
2538
2670
|
# The alert detail for a suspicious domain finding.
|
|
2539
2671
|
class SuspiciousDomainAlertDetail
|
|
2540
2672
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module ThreatintelligenceV1beta
|
|
18
18
|
# Version of the google-apis-threatintelligence_v1beta gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.3.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260204"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -238,6 +238,12 @@ module Google
|
|
|
238
238
|
include Google::Apis::Core::JsonObjectSupport
|
|
239
239
|
end
|
|
240
240
|
|
|
241
|
+
class GenerateOrgProfileConfigurationRequest
|
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
243
|
+
|
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
245
|
+
end
|
|
246
|
+
|
|
241
247
|
class InbandVulnerability
|
|
242
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
243
249
|
|
|
@@ -376,6 +382,12 @@ module Google
|
|
|
376
382
|
include Google::Apis::Core::JsonObjectSupport
|
|
377
383
|
end
|
|
378
384
|
|
|
385
|
+
class Operation
|
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
387
|
+
|
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
389
|
+
end
|
|
390
|
+
|
|
379
391
|
class PriorityAnalysis
|
|
380
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
381
393
|
|
|
@@ -424,6 +436,12 @@ module Google
|
|
|
424
436
|
include Google::Apis::Core::JsonObjectSupport
|
|
425
437
|
end
|
|
426
438
|
|
|
439
|
+
class Status
|
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
441
|
+
|
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
443
|
+
end
|
|
444
|
+
|
|
427
445
|
class SuspiciousDomainAlertDetail
|
|
428
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
429
447
|
|
|
@@ -519,6 +537,7 @@ module Google
|
|
|
519
537
|
collection :duplicated_by, as: 'duplicatedBy'
|
|
520
538
|
property :etag, as: 'etag'
|
|
521
539
|
property :external_id, as: 'externalId'
|
|
540
|
+
property :finding_count, :numeric_string => true, as: 'findingCount'
|
|
522
541
|
collection :findings, as: 'findings'
|
|
523
542
|
property :name, as: 'name'
|
|
524
543
|
property :priority_analysis, as: 'priorityAnalysis', class: Google::Apis::ThreatintelligenceV1beta::PriorityAnalysis, decorator: Google::Apis::ThreatintelligenceV1beta::PriorityAnalysis::Representation
|
|
@@ -958,6 +977,14 @@ module Google
|
|
|
958
977
|
end
|
|
959
978
|
end
|
|
960
979
|
|
|
980
|
+
class GenerateOrgProfileConfigurationRequest
|
|
981
|
+
# @private
|
|
982
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
983
|
+
property :display_name, as: 'displayName'
|
|
984
|
+
property :domain, as: 'domain'
|
|
985
|
+
end
|
|
986
|
+
end
|
|
987
|
+
|
|
961
988
|
class InbandVulnerability
|
|
962
989
|
# @private
|
|
963
990
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1151,6 +1178,18 @@ module Google
|
|
|
1151
1178
|
end
|
|
1152
1179
|
end
|
|
1153
1180
|
|
|
1181
|
+
class Operation
|
|
1182
|
+
# @private
|
|
1183
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1184
|
+
property :done, as: 'done'
|
|
1185
|
+
property :error, as: 'error', class: Google::Apis::ThreatintelligenceV1beta::Status, decorator: Google::Apis::ThreatintelligenceV1beta::Status::Representation
|
|
1186
|
+
|
|
1187
|
+
hash :metadata, as: 'metadata'
|
|
1188
|
+
property :name, as: 'name'
|
|
1189
|
+
hash :response, as: 'response'
|
|
1190
|
+
end
|
|
1191
|
+
end
|
|
1192
|
+
|
|
1154
1193
|
class PriorityAnalysis
|
|
1155
1194
|
# @private
|
|
1156
1195
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1216,6 +1255,15 @@ module Google
|
|
|
1216
1255
|
end
|
|
1217
1256
|
end
|
|
1218
1257
|
|
|
1258
|
+
class Status
|
|
1259
|
+
# @private
|
|
1260
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1261
|
+
property :code, as: 'code'
|
|
1262
|
+
collection :details, as: 'details'
|
|
1263
|
+
property :message, as: 'message'
|
|
1264
|
+
end
|
|
1265
|
+
end
|
|
1266
|
+
|
|
1219
1267
|
class SuspiciousDomainAlertDetail
|
|
1220
1268
|
# @private
|
|
1221
1269
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -51,6 +51,40 @@ module Google
|
|
|
51
51
|
@batch_path = 'batch'
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
# Triggers the generation of a Customer Profile for a project.
|
|
55
|
+
# @param [String] name
|
|
56
|
+
# Required. The name of the project to generate the profile for. Format:
|
|
57
|
+
# projects/`project`
|
|
58
|
+
# @param [Google::Apis::ThreatintelligenceV1beta::GenerateOrgProfileConfigurationRequest] generate_org_profile_configuration_request_object
|
|
59
|
+
# @param [String] fields
|
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
|
61
|
+
# @param [String] quota_user
|
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
|
65
|
+
# Request-specific options
|
|
66
|
+
#
|
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
|
68
|
+
# @yieldparam result [Google::Apis::ThreatintelligenceV1beta::Operation] parsed result object
|
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
70
|
+
#
|
|
71
|
+
# @return [Google::Apis::ThreatintelligenceV1beta::Operation]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
76
|
+
def generate_project_org_profile_configuration(name, generate_org_profile_configuration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
77
|
+
command = make_simple_command(:post, 'v1beta/{+name}:generateOrgProfile', options)
|
|
78
|
+
command.request_representation = Google::Apis::ThreatintelligenceV1beta::GenerateOrgProfileConfigurationRequest::Representation
|
|
79
|
+
command.request_object = generate_org_profile_configuration_request_object
|
|
80
|
+
command.response_representation = Google::Apis::ThreatintelligenceV1beta::Operation::Representation
|
|
81
|
+
command.response_class = Google::Apis::ThreatintelligenceV1beta::Operation
|
|
82
|
+
command.params['name'] = name unless name.nil?
|
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
85
|
+
execute_or_queue_command(command, &block)
|
|
86
|
+
end
|
|
87
|
+
|
|
54
88
|
# Marks an alert as benign - BENIGN.
|
|
55
89
|
# @param [String] name
|
|
56
90
|
# Required. Name of the alert to mark as a benign. Format: projects/`project`/
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-threatintelligence_v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-threatintelligence_v1beta/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-threatintelligence_v1beta/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-threatintelligence_v1beta/v0.3.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-threatintelligence_v1beta
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|