google-apis-threatintelligence_v1beta 0.13.0 → 0.14.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 +143 -0
- data/lib/google/apis/threatintelligence_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/threatintelligence_v1beta/representations.rb +44 -0
- data/lib/google/apis/threatintelligence_v1beta/service.rb +6 -5
- 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: b2a6cd623844ff84e744ab891e100572d949646ad2caafbdfb789d5f2aa19fdd
|
|
4
|
+
data.tar.gz: b3377edca04455cd8adc211736bde63ad16a57ecf6927e5334fef97e30fffd2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f40abef4035789676654270dc274013f68a08a8cb6becb62986ad9faf152558c54e91242fb98713e22564f0cee69ad9f002a1012131e5b9d0aca413e61a77a7e
|
|
7
|
+
data.tar.gz: 83d5d5166ec015b36d74395e65fd35a957562d8065a3d7288367955a7a0645193942f129c65aa0cd97f85825eb7d9c3e00cd30aeb1066635ff288ee76fd80140
|
data/CHANGELOG.md
CHANGED
|
@@ -516,19 +516,31 @@ module Google
|
|
|
516
516
|
class CustomThreatScenarioConfig
|
|
517
517
|
include Google::Apis::Core::Hashable
|
|
518
518
|
|
|
519
|
+
# Output only. The compiled Lucene query string.
|
|
520
|
+
# Corresponds to the JSON property `compiledLuceneQuery`
|
|
521
|
+
# @return [String]
|
|
522
|
+
attr_accessor :compiled_lucene_query
|
|
523
|
+
|
|
519
524
|
# Required. The condition driving the scenario, stored as a stringified JSON.
|
|
520
525
|
# This is used to query/filter documents.
|
|
521
526
|
# Corresponds to the JSON property `documentCondition`
|
|
522
527
|
# @return [String]
|
|
523
528
|
attr_accessor :document_condition
|
|
524
529
|
|
|
530
|
+
# Legacy metadata associated with this scenario/monitor.
|
|
531
|
+
# Corresponds to the JSON property `legacyMonitorMetadata`
|
|
532
|
+
# @return [Google::Apis::ThreatintelligenceV1beta::LegacyMetadata]
|
|
533
|
+
attr_accessor :legacy_monitor_metadata
|
|
534
|
+
|
|
525
535
|
def initialize(**args)
|
|
526
536
|
update!(**args)
|
|
527
537
|
end
|
|
528
538
|
|
|
529
539
|
# Update properties of this object
|
|
530
540
|
def update!(**args)
|
|
541
|
+
@compiled_lucene_query = args[:compiled_lucene_query] if args.key?(:compiled_lucene_query)
|
|
531
542
|
@document_condition = args[:document_condition] if args.key?(:document_condition)
|
|
543
|
+
@legacy_monitor_metadata = args[:legacy_monitor_metadata] if args.key?(:legacy_monitor_metadata)
|
|
532
544
|
end
|
|
533
545
|
end
|
|
534
546
|
|
|
@@ -1377,6 +1389,25 @@ module Google
|
|
|
1377
1389
|
end
|
|
1378
1390
|
end
|
|
1379
1391
|
|
|
1392
|
+
# Response message for GetPassword.
|
|
1393
|
+
class GetPasswordResponse
|
|
1394
|
+
include Google::Apis::Core::Hashable
|
|
1395
|
+
|
|
1396
|
+
# The decrypted cleartext password for the compromised credential.
|
|
1397
|
+
# Corresponds to the JSON property `password`
|
|
1398
|
+
# @return [String]
|
|
1399
|
+
attr_accessor :password
|
|
1400
|
+
|
|
1401
|
+
def initialize(**args)
|
|
1402
|
+
update!(**args)
|
|
1403
|
+
end
|
|
1404
|
+
|
|
1405
|
+
# Update properties of this object
|
|
1406
|
+
def update!(**args)
|
|
1407
|
+
@password = args[:password] if args.key?(:password)
|
|
1408
|
+
end
|
|
1409
|
+
end
|
|
1410
|
+
|
|
1380
1411
|
# Captures the specific details of InitialAccessBroker (IAB) alert.
|
|
1381
1412
|
class InitialAccessBrokerAlertDetail
|
|
1382
1413
|
include Google::Apis::Core::Hashable
|
|
@@ -1502,6 +1533,118 @@ module Google
|
|
|
1502
1533
|
end
|
|
1503
1534
|
end
|
|
1504
1535
|
|
|
1536
|
+
# Legacy metadata associated with this scenario/monitor.
|
|
1537
|
+
class LegacyMetadata
|
|
1538
|
+
include Google::Apis::Core::Hashable
|
|
1539
|
+
|
|
1540
|
+
# Optional. Whether aggregation is enabled for alerts from this monitor.
|
|
1541
|
+
# Corresponds to the JSON property `aggregationEnabled`
|
|
1542
|
+
# @return [Boolean]
|
|
1543
|
+
attr_accessor :aggregation_enabled
|
|
1544
|
+
alias_method :aggregation_enabled?, :aggregation_enabled
|
|
1545
|
+
|
|
1546
|
+
# Optional. Similarity threshold for aggregation.
|
|
1547
|
+
# Corresponds to the JSON property `aggregationSimilarity`
|
|
1548
|
+
# @return [Float]
|
|
1549
|
+
attr_accessor :aggregation_similarity
|
|
1550
|
+
|
|
1551
|
+
# Optional. Version of the condition schema.
|
|
1552
|
+
# Corresponds to the JSON property `conditionVersion`
|
|
1553
|
+
# @return [Fixnum]
|
|
1554
|
+
attr_accessor :condition_version
|
|
1555
|
+
|
|
1556
|
+
# Optional. User ID who created the monitor.
|
|
1557
|
+
# Corresponds to the JSON property `creatorUserId`
|
|
1558
|
+
# @return [String]
|
|
1559
|
+
attr_accessor :creator_user_id
|
|
1560
|
+
|
|
1561
|
+
# Optional. Description of the legacy monitor.
|
|
1562
|
+
# Corresponds to the JSON property `description`
|
|
1563
|
+
# @return [String]
|
|
1564
|
+
attr_accessor :description
|
|
1565
|
+
|
|
1566
|
+
# Optional. Code indicating why the monitor is disabled (if applicable).
|
|
1567
|
+
# Corresponds to the JSON property `disabledCode`
|
|
1568
|
+
# @return [String]
|
|
1569
|
+
attr_accessor :disabled_code
|
|
1570
|
+
|
|
1571
|
+
# Optional. Reason why the monitor is disabled (if applicable).
|
|
1572
|
+
# Corresponds to the JSON property `disabledReason`
|
|
1573
|
+
# @return [String]
|
|
1574
|
+
attr_accessor :disabled_reason
|
|
1575
|
+
|
|
1576
|
+
# Optional. Name of the legacy monitor.
|
|
1577
|
+
# Corresponds to the JSON property `displayName`
|
|
1578
|
+
# @return [String]
|
|
1579
|
+
attr_accessor :display_name
|
|
1580
|
+
|
|
1581
|
+
# Optional. Whether email notifications are enabled.
|
|
1582
|
+
# Corresponds to the JSON property `emailNotificationEnabled`
|
|
1583
|
+
# @return [Boolean]
|
|
1584
|
+
attr_accessor :email_notification_enabled
|
|
1585
|
+
alias_method :email_notification_enabled?, :email_notification_enabled
|
|
1586
|
+
|
|
1587
|
+
# Optional. Whether email notifications are intermediate/immediate.
|
|
1588
|
+
# Corresponds to the JSON property `emailNotificationImmediate`
|
|
1589
|
+
# @return [Boolean]
|
|
1590
|
+
attr_accessor :email_notification_immediate
|
|
1591
|
+
alias_method :email_notification_immediate?, :email_notification_immediate
|
|
1592
|
+
|
|
1593
|
+
# Optional. Unique identifier of the legacy monitor.
|
|
1594
|
+
# Corresponds to the JSON property `legacyMonitorId`
|
|
1595
|
+
# @return [String]
|
|
1596
|
+
attr_accessor :legacy_monitor_id
|
|
1597
|
+
|
|
1598
|
+
# Optional. Time the legacy monitor was considered stale.
|
|
1599
|
+
# Corresponds to the JSON property `staleTime`
|
|
1600
|
+
# @return [String]
|
|
1601
|
+
attr_accessor :stale_time
|
|
1602
|
+
|
|
1603
|
+
# Optional. ID of the template this monitor was created from.
|
|
1604
|
+
# Corresponds to the JSON property `templateId`
|
|
1605
|
+
# @return [String]
|
|
1606
|
+
attr_accessor :template_id
|
|
1607
|
+
|
|
1608
|
+
# Optional. ID of the tenant owning the monitor.
|
|
1609
|
+
# Corresponds to the JSON property `tenantId`
|
|
1610
|
+
# @return [String]
|
|
1611
|
+
attr_accessor :tenant_id
|
|
1612
|
+
|
|
1613
|
+
# Optional. User ID who last updated the monitor.
|
|
1614
|
+
# Corresponds to the JSON property `updaterUserId`
|
|
1615
|
+
# @return [String]
|
|
1616
|
+
attr_accessor :updater_user_id
|
|
1617
|
+
|
|
1618
|
+
# Optional. Version of the monitor configuration.
|
|
1619
|
+
# Corresponds to the JSON property `version`
|
|
1620
|
+
# @return [Fixnum]
|
|
1621
|
+
attr_accessor :version
|
|
1622
|
+
|
|
1623
|
+
def initialize(**args)
|
|
1624
|
+
update!(**args)
|
|
1625
|
+
end
|
|
1626
|
+
|
|
1627
|
+
# Update properties of this object
|
|
1628
|
+
def update!(**args)
|
|
1629
|
+
@aggregation_enabled = args[:aggregation_enabled] if args.key?(:aggregation_enabled)
|
|
1630
|
+
@aggregation_similarity = args[:aggregation_similarity] if args.key?(:aggregation_similarity)
|
|
1631
|
+
@condition_version = args[:condition_version] if args.key?(:condition_version)
|
|
1632
|
+
@creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id)
|
|
1633
|
+
@description = args[:description] if args.key?(:description)
|
|
1634
|
+
@disabled_code = args[:disabled_code] if args.key?(:disabled_code)
|
|
1635
|
+
@disabled_reason = args[:disabled_reason] if args.key?(:disabled_reason)
|
|
1636
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
1637
|
+
@email_notification_enabled = args[:email_notification_enabled] if args.key?(:email_notification_enabled)
|
|
1638
|
+
@email_notification_immediate = args[:email_notification_immediate] if args.key?(:email_notification_immediate)
|
|
1639
|
+
@legacy_monitor_id = args[:legacy_monitor_id] if args.key?(:legacy_monitor_id)
|
|
1640
|
+
@stale_time = args[:stale_time] if args.key?(:stale_time)
|
|
1641
|
+
@template_id = args[:template_id] if args.key?(:template_id)
|
|
1642
|
+
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
|
|
1643
|
+
@updater_user_id = args[:updater_user_id] if args.key?(:updater_user_id)
|
|
1644
|
+
@version = args[:version] if args.key?(:version)
|
|
1645
|
+
end
|
|
1646
|
+
end
|
|
1647
|
+
|
|
1505
1648
|
# Response message for ListAlerts.
|
|
1506
1649
|
class ListAlertsResponse
|
|
1507
1650
|
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.14.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260816"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -208,6 +208,12 @@ module Google
|
|
|
208
208
|
include Google::Apis::Core::JsonObjectSupport
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
+
class GetPasswordResponse
|
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
213
|
+
|
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
215
|
+
end
|
|
216
|
+
|
|
211
217
|
class InitialAccessBrokerAlertDetail
|
|
212
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
213
219
|
|
|
@@ -232,6 +238,12 @@ module Google
|
|
|
232
238
|
include Google::Apis::Core::JsonObjectSupport
|
|
233
239
|
end
|
|
234
240
|
|
|
241
|
+
class LegacyMetadata
|
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
243
|
+
|
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
245
|
+
end
|
|
246
|
+
|
|
235
247
|
class ListAlertsResponse
|
|
236
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
237
249
|
|
|
@@ -525,7 +537,10 @@ module Google
|
|
|
525
537
|
class CustomThreatScenarioConfig
|
|
526
538
|
# @private
|
|
527
539
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
540
|
+
property :compiled_lucene_query, as: 'compiledLuceneQuery'
|
|
528
541
|
property :document_condition, as: 'documentCondition'
|
|
542
|
+
property :legacy_monitor_metadata, as: 'legacyMonitorMetadata', class: Google::Apis::ThreatintelligenceV1beta::LegacyMetadata, decorator: Google::Apis::ThreatintelligenceV1beta::LegacyMetadata::Representation
|
|
543
|
+
|
|
529
544
|
end
|
|
530
545
|
end
|
|
531
546
|
|
|
@@ -778,6 +793,13 @@ module Google
|
|
|
778
793
|
end
|
|
779
794
|
end
|
|
780
795
|
|
|
796
|
+
class GetPasswordResponse
|
|
797
|
+
# @private
|
|
798
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
799
|
+
property :password, as: 'password'
|
|
800
|
+
end
|
|
801
|
+
end
|
|
802
|
+
|
|
781
803
|
class InitialAccessBrokerAlertDetail
|
|
782
804
|
# @private
|
|
783
805
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -812,6 +834,28 @@ module Google
|
|
|
812
834
|
end
|
|
813
835
|
end
|
|
814
836
|
|
|
837
|
+
class LegacyMetadata
|
|
838
|
+
# @private
|
|
839
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
840
|
+
property :aggregation_enabled, as: 'aggregationEnabled'
|
|
841
|
+
property :aggregation_similarity, as: 'aggregationSimilarity'
|
|
842
|
+
property :condition_version, as: 'conditionVersion'
|
|
843
|
+
property :creator_user_id, as: 'creatorUserId'
|
|
844
|
+
property :description, as: 'description'
|
|
845
|
+
property :disabled_code, as: 'disabledCode'
|
|
846
|
+
property :disabled_reason, as: 'disabledReason'
|
|
847
|
+
property :display_name, as: 'displayName'
|
|
848
|
+
property :email_notification_enabled, as: 'emailNotificationEnabled'
|
|
849
|
+
property :email_notification_immediate, as: 'emailNotificationImmediate'
|
|
850
|
+
property :legacy_monitor_id, as: 'legacyMonitorId'
|
|
851
|
+
property :stale_time, as: 'staleTime'
|
|
852
|
+
property :template_id, as: 'templateId'
|
|
853
|
+
property :tenant_id, as: 'tenantId'
|
|
854
|
+
property :updater_user_id, as: 'updaterUserId'
|
|
855
|
+
property :version, as: 'version'
|
|
856
|
+
end
|
|
857
|
+
end
|
|
858
|
+
|
|
815
859
|
class ListAlertsResponse
|
|
816
860
|
# @private
|
|
817
861
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -287,7 +287,8 @@ module Google
|
|
|
287
287
|
|
|
288
288
|
# Get the decrypted password of an alert.
|
|
289
289
|
# @param [String] name
|
|
290
|
-
# Required. Name of the alert to get. Format: projects/`project`/
|
|
290
|
+
# Required. Name of the alert to get password for. Format: projects/`project`/
|
|
291
|
+
# alerts/`alert`
|
|
291
292
|
# @param [String] fields
|
|
292
293
|
# Selector specifying which fields to include in a partial response.
|
|
293
294
|
# @param [String] quota_user
|
|
@@ -297,18 +298,18 @@ module Google
|
|
|
297
298
|
# Request-specific options
|
|
298
299
|
#
|
|
299
300
|
# @yield [result, err] Result & error if block supplied
|
|
300
|
-
# @yieldparam result [Google::Apis::ThreatintelligenceV1beta::
|
|
301
|
+
# @yieldparam result [Google::Apis::ThreatintelligenceV1beta::GetPasswordResponse] parsed result object
|
|
301
302
|
# @yieldparam err [StandardError] error object if request failed
|
|
302
303
|
#
|
|
303
|
-
# @return [Google::Apis::ThreatintelligenceV1beta::
|
|
304
|
+
# @return [Google::Apis::ThreatintelligenceV1beta::GetPasswordResponse]
|
|
304
305
|
#
|
|
305
306
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
306
307
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
307
308
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
308
309
|
def get_project_alert_password(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
309
310
|
command = make_simple_command(:get, 'v1beta/{+name}:getPassword', options)
|
|
310
|
-
command.response_representation = Google::Apis::ThreatintelligenceV1beta::
|
|
311
|
-
command.response_class = Google::Apis::ThreatintelligenceV1beta::
|
|
311
|
+
command.response_representation = Google::Apis::ThreatintelligenceV1beta::GetPasswordResponse::Representation
|
|
312
|
+
command.response_class = Google::Apis::ThreatintelligenceV1beta::GetPasswordResponse
|
|
312
313
|
command.params['name'] = name unless name.nil?
|
|
313
314
|
command.query['fields'] = fields unless fields.nil?
|
|
314
315
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
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.14.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.14.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:
|