google-apis-securitycenter_v1beta2 0.60.0 → 0.62.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cd7f5a9a3bbf6e9917b2e8296aa0190f383c43bd76372a5bfd68678f3f0c2e8
4
- data.tar.gz: fec3b9626946c22f4f304d3627e730ff8c702a0d873be830502340fb4e9176f4
3
+ metadata.gz: 9f101f56e076db9a00f2b997549755bdff2a16de24c17920826b3f4383e5fdef
4
+ data.tar.gz: 22a9e894bdc4832217a72d3f51a9d1157ecbcd78034d86b07e045c313acbfdf0
5
5
  SHA512:
6
- metadata.gz: 5fdd8ae7596337cc3b41bc2601f60f8a62a79b282b7d725da45c55db355953fc7d5464edbca2155532b0abb2f3a7d38f4336cd2592cf23fe40b658b8d943248d
7
- data.tar.gz: 2a46d9ef46963008c8cb20bac9d9ce3acc66f164d1f439a1b77773ba1fb9e14defc0a8b64fb7fe49720e36f7dad86ade829f75c81645955a44ae048687385f5d
6
+ metadata.gz: d54115ea29c23dec5e3b85d765a9cd3cf4d4c3773a1122ea216fb6f470a2151c4e776a0d9e6a4258c0544b9016f1240a7c3ed0b5702eae5ca43aa6b334e782a8
7
+ data.tar.gz: 66aaaddc4a429104ae315858088f9fff6f0de79a1969c9b374426087afc09a75a157d5fbc05af28a9d84351663aa63fff599d0d7d145729338e7907f558cf862
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-securitycenter_v1beta2
2
2
 
3
+ ### v0.62.0 (2024-01-22)
4
+
5
+ * Regenerated from discovery document revision 20240117
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.61.0 (2024-01-07)
9
+
10
+ * Regenerated from discovery document revision 20240101
11
+
3
12
  ### v0.60.0 (2023-12-24)
4
13
 
5
14
  * Regenerated from discovery document revision 20231218
@@ -221,7 +221,7 @@ module Google
221
221
 
222
222
  # The resource name of the attack path simulation result that contains the
223
223
  # details regarding this attack exposure score. Example: organizations/123/
224
- # attackExposureResults/456
224
+ # simulations/456/attackExposureResults/789
225
225
  # Corresponds to the JSON property `attackExposureResult`
226
226
  # @return [String]
227
227
  attr_accessor :attack_exposure_result
@@ -1922,6 +1922,21 @@ module Google
1922
1922
  # @return [Array<String>]
1923
1923
  attr_accessor :assignees
1924
1924
 
1925
+ # The priority of the finding's corresponding case in the external system.
1926
+ # Corresponds to the JSON property `casePriority`
1927
+ # @return [String]
1928
+ attr_accessor :case_priority
1929
+
1930
+ # The SLA of the finding's corresponding case in the external system.
1931
+ # Corresponds to the JSON property `caseSla`
1932
+ # @return [String]
1933
+ attr_accessor :case_sla
1934
+
1935
+ # The link to the finding's corresponding case in the external system.
1936
+ # Corresponds to the JSON property `caseUri`
1937
+ # @return [String]
1938
+ attr_accessor :case_uri
1939
+
1925
1940
  # The time when the case was last updated, as reported by the external system.
1926
1941
  # Corresponds to the JSON property `externalSystemUpdateTime`
1927
1942
  # @return [String]
@@ -1947,6 +1962,12 @@ module Google
1947
1962
  # @return [String]
1948
1963
  attr_accessor :status
1949
1964
 
1965
+ # Information about the ticket, if any, that is being used to track the
1966
+ # resolution of the issue that is identified by this finding.
1967
+ # Corresponds to the JSON property `ticketInfo`
1968
+ # @return [Google::Apis::SecuritycenterV1beta2::TicketInfo]
1969
+ attr_accessor :ticket_info
1970
+
1950
1971
  def initialize(**args)
1951
1972
  update!(**args)
1952
1973
  end
@@ -1954,10 +1975,14 @@ module Google
1954
1975
  # Update properties of this object
1955
1976
  def update!(**args)
1956
1977
  @assignees = args[:assignees] if args.key?(:assignees)
1978
+ @case_priority = args[:case_priority] if args.key?(:case_priority)
1979
+ @case_sla = args[:case_sla] if args.key?(:case_sla)
1980
+ @case_uri = args[:case_uri] if args.key?(:case_uri)
1957
1981
  @external_system_update_time = args[:external_system_update_time] if args.key?(:external_system_update_time)
1958
1982
  @external_uid = args[:external_uid] if args.key?(:external_uid)
1959
1983
  @name = args[:name] if args.key?(:name)
1960
1984
  @status = args[:status] if args.key?(:status)
1985
+ @ticket_info = args[:ticket_info] if args.key?(:ticket_info)
1961
1986
  end
1962
1987
  end
1963
1988
 
@@ -3246,6 +3271,41 @@ module Google
3246
3271
  end
3247
3272
  end
3248
3273
 
3274
+ # The policy field that violates the deployed posture and its expected and and
3275
+ # detected values.
3276
+ class PolicyDriftDetails
3277
+ include Google::Apis::Core::Hashable
3278
+
3279
+ # The detected value that violates the deployed posture, for example, `false` or
3280
+ # `allowed_values=`"projects/22831892”``.
3281
+ # Corresponds to the JSON property `detectedValue`
3282
+ # @return [String]
3283
+ attr_accessor :detected_value
3284
+
3285
+ # The value of this field that was configured in a posture, for example, `true`
3286
+ # or `allowed_values=`"projects/29831892”``.
3287
+ # Corresponds to the JSON property `expectedValue`
3288
+ # @return [String]
3289
+ attr_accessor :expected_value
3290
+
3291
+ # The name of the updated field, for example constraint.implementation.
3292
+ # policy_rules[0].enforce
3293
+ # Corresponds to the JSON property `field`
3294
+ # @return [String]
3295
+ attr_accessor :field
3296
+
3297
+ def initialize(**args)
3298
+ update!(**args)
3299
+ end
3300
+
3301
+ # Update properties of this object
3302
+ def update!(**args)
3303
+ @detected_value = args[:detected_value] if args.key?(:detected_value)
3304
+ @expected_value = args[:expected_value] if args.key?(:expected_value)
3305
+ @field = args[:field] if args.key?(:field)
3306
+ end
3307
+ end
3308
+
3249
3309
  # Represents an operating system process.
3250
3310
  class Process
3251
3311
  include Google::Apis::Core::Hashable
@@ -3635,26 +3695,41 @@ module Google
3635
3695
  class SecurityPosture
3636
3696
  include Google::Apis::Core::Hashable
3637
3697
 
3638
- # The name of the policy that has been updated, for example, `projects/`
3639
- # project_id`/policies/`constraint_name``.
3698
+ # The name of the updated policy, for example, `projects/`project_id`/policies/`
3699
+ # constraint_name``.
3640
3700
  # Corresponds to the JSON property `changedPolicy`
3641
3701
  # @return [String]
3642
3702
  attr_accessor :changed_policy
3643
3703
 
3644
- # Name of the posture, for example, `organizations/`org_id`/locations/`location`/
3645
- # postures/`posture_name``.
3704
+ # Name of the posture, for example, `CIS-Posture`.
3646
3705
  # Corresponds to the JSON property `name`
3647
3706
  # @return [String]
3648
3707
  attr_accessor :name
3649
3708
 
3650
- # The name of the posture deployment, for example, `projects/`project_id`/
3709
+ # The ID of the updated policy, for example, `compute-policy-1`.
3710
+ # Corresponds to the JSON property `policy`
3711
+ # @return [String]
3712
+ attr_accessor :policy
3713
+
3714
+ # The details about a change in an updated policy that violates the deployed
3715
+ # posture.
3716
+ # Corresponds to the JSON property `policyDriftDetails`
3717
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::PolicyDriftDetails>]
3718
+ attr_accessor :policy_drift_details
3719
+
3720
+ # The name of the updated policyset, for example, `cis-policyset`.
3721
+ # Corresponds to the JSON property `policySet`
3722
+ # @return [String]
3723
+ attr_accessor :policy_set
3724
+
3725
+ # The name of the posture deployment, for example, `organizations/`org_id`/
3651
3726
  # posturedeployments/`posture_deployment_id``.
3652
3727
  # Corresponds to the JSON property `postureDeployment`
3653
3728
  # @return [String]
3654
3729
  attr_accessor :posture_deployment
3655
3730
 
3656
3731
  # The project, folder, or organization on which the posture is deployed, for
3657
- # example, `projects/`project_id``.
3732
+ # example, `projects/`project_number``.
3658
3733
  # Corresponds to the JSON property `postureDeploymentResource`
3659
3734
  # @return [String]
3660
3735
  attr_accessor :posture_deployment_resource
@@ -3672,6 +3747,9 @@ module Google
3672
3747
  def update!(**args)
3673
3748
  @changed_policy = args[:changed_policy] if args.key?(:changed_policy)
3674
3749
  @name = args[:name] if args.key?(:name)
3750
+ @policy = args[:policy] if args.key?(:policy)
3751
+ @policy_drift_details = args[:policy_drift_details] if args.key?(:policy_drift_details)
3752
+ @policy_set = args[:policy_set] if args.key?(:policy_set)
3675
3753
  @posture_deployment = args[:posture_deployment] if args.key?(:posture_deployment)
3676
3754
  @posture_deployment_resource = args[:posture_deployment_resource] if args.key?(:posture_deployment_resource)
3677
3755
  @revision_id = args[:revision_id] if args.key?(:revision_id)
@@ -3772,6 +3850,56 @@ module Google
3772
3850
  end
3773
3851
  end
3774
3852
 
3853
+ # Information about the ticket, if any, that is being used to track the
3854
+ # resolution of the issue that is identified by this finding.
3855
+ class TicketInfo
3856
+ include Google::Apis::Core::Hashable
3857
+
3858
+ # The assignee of the ticket in the ticket system.
3859
+ # Corresponds to the JSON property `assignee`
3860
+ # @return [String]
3861
+ attr_accessor :assignee
3862
+
3863
+ # The description of the ticket in the ticket system.
3864
+ # Corresponds to the JSON property `description`
3865
+ # @return [String]
3866
+ attr_accessor :description
3867
+
3868
+ # The identifier of the ticket in the ticket system.
3869
+ # Corresponds to the JSON property `id`
3870
+ # @return [String]
3871
+ attr_accessor :id
3872
+
3873
+ # The latest status of the ticket, as reported by the ticket system.
3874
+ # Corresponds to the JSON property `status`
3875
+ # @return [String]
3876
+ attr_accessor :status
3877
+
3878
+ # The time when the ticket was last updated, as reported by the ticket system.
3879
+ # Corresponds to the JSON property `updateTime`
3880
+ # @return [String]
3881
+ attr_accessor :update_time
3882
+
3883
+ # The link to the ticket in the ticket system.
3884
+ # Corresponds to the JSON property `uri`
3885
+ # @return [String]
3886
+ attr_accessor :uri
3887
+
3888
+ def initialize(**args)
3889
+ update!(**args)
3890
+ end
3891
+
3892
+ # Update properties of this object
3893
+ def update!(**args)
3894
+ @assignee = args[:assignee] if args.key?(:assignee)
3895
+ @description = args[:description] if args.key?(:description)
3896
+ @id = args[:id] if args.key?(:id)
3897
+ @status = args[:status] if args.key?(:status)
3898
+ @update_time = args[:update_time] if args.key?(:update_time)
3899
+ @uri = args[:uri] if args.key?(:uri)
3900
+ end
3901
+ end
3902
+
3775
3903
  # Resource capturing the settings for the Virtual Machine Threat Detection
3776
3904
  # service.
3777
3905
  class VirtualMachineThreatDetectionSettings
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SecuritycenterV1beta2
18
18
  # Version of the google-apis-securitycenter_v1beta2 gem
19
- GEM_VERSION = "0.60.0"
19
+ GEM_VERSION = "0.62.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231218"
25
+ REVISION = "20240117"
26
26
  end
27
27
  end
28
28
  end
@@ -424,6 +424,12 @@ module Google
424
424
  include Google::Apis::Core::JsonObjectSupport
425
425
  end
426
426
 
427
+ class PolicyDriftDetails
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
427
433
  class Process
428
434
  class Representation < Google::Apis::Core::JsonRepresentation; end
429
435
 
@@ -502,6 +508,12 @@ module Google
502
508
  include Google::Apis::Core::JsonObjectSupport
503
509
  end
504
510
 
511
+ class TicketInfo
512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
513
+
514
+ include Google::Apis::Core::JsonObjectSupport
515
+ end
516
+
505
517
  class VirtualMachineThreatDetectionSettings
506
518
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
519
 
@@ -978,10 +990,15 @@ module Google
978
990
  # @private
979
991
  class Representation < Google::Apis::Core::JsonRepresentation
980
992
  collection :assignees, as: 'assignees'
993
+ property :case_priority, as: 'casePriority'
994
+ property :case_sla, as: 'caseSla'
995
+ property :case_uri, as: 'caseUri'
981
996
  property :external_system_update_time, as: 'externalSystemUpdateTime'
982
997
  property :external_uid, as: 'externalUid'
983
998
  property :name, as: 'name'
984
999
  property :status, as: 'status'
1000
+ property :ticket_info, as: 'ticketInfo', class: Google::Apis::SecuritycenterV1beta2::TicketInfo, decorator: Google::Apis::SecuritycenterV1beta2::TicketInfo::Representation
1001
+
985
1002
  end
986
1003
  end
987
1004
 
@@ -1308,6 +1325,15 @@ module Google
1308
1325
  end
1309
1326
  end
1310
1327
 
1328
+ class PolicyDriftDetails
1329
+ # @private
1330
+ class Representation < Google::Apis::Core::JsonRepresentation
1331
+ property :detected_value, as: 'detectedValue'
1332
+ property :expected_value, as: 'expectedValue'
1333
+ property :field, as: 'field'
1334
+ end
1335
+ end
1336
+
1311
1337
  class Process
1312
1338
  # @private
1313
1339
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1412,6 +1438,10 @@ module Google
1412
1438
  class Representation < Google::Apis::Core::JsonRepresentation
1413
1439
  property :changed_policy, as: 'changedPolicy'
1414
1440
  property :name, as: 'name'
1441
+ property :policy, as: 'policy'
1442
+ collection :policy_drift_details, as: 'policyDriftDetails', class: Google::Apis::SecuritycenterV1beta2::PolicyDriftDetails, decorator: Google::Apis::SecuritycenterV1beta2::PolicyDriftDetails::Representation
1443
+
1444
+ property :policy_set, as: 'policySet'
1415
1445
  property :posture_deployment, as: 'postureDeployment'
1416
1446
  property :posture_deployment_resource, as: 'postureDeploymentResource'
1417
1447
  property :revision_id, as: 'revisionId'
@@ -1445,6 +1475,18 @@ module Google
1445
1475
  end
1446
1476
  end
1447
1477
 
1478
+ class TicketInfo
1479
+ # @private
1480
+ class Representation < Google::Apis::Core::JsonRepresentation
1481
+ property :assignee, as: 'assignee'
1482
+ property :description, as: 'description'
1483
+ property :id, as: 'id'
1484
+ property :status, as: 'status'
1485
+ property :update_time, as: 'updateTime'
1486
+ property :uri, as: 'uri'
1487
+ end
1488
+ end
1489
+
1448
1490
  class VirtualMachineThreatDetectionSettings
1449
1491
  # @private
1450
1492
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/security-command-center
35
35
  class SecurityCommandCenterService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://securitycenter.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://securitycenter.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-securitycenter_v1beta2',
49
51
  client_version: Google::Apis::SecuritycenterV1beta2::GEM_VERSION)
50
52
  @batch_path = 'batch'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-securitycenter_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.0
4
+ version: 0.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-24 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.60.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.62.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Security Command Center API V1beta2