google-apis-securitycenter_v1beta2 0.30.0 → 0.33.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: 4d56584050d9e6e610ddf89515a7ea392ef0a30031c1a7e06ca651d98ff2535d
4
- data.tar.gz: a2da7cd0c02dd72446346ee09edb885564869030b2f3a10a9f4a4016b39df71d
3
+ metadata.gz: ffacacf40445e33a8d1c63ebfb893d3564dfdb33699462b50e3e70ab8b1d1b43
4
+ data.tar.gz: 90e5a03c9da065da711f804134d068868708edb7f68cb13cb1a95df0fc4fca90
5
5
  SHA512:
6
- metadata.gz: 8d3d62804cdbe2cd2dc247e0dba968d0809770ca8605134af6d6cf2dd014b1b73efa9267689da92d74a0975731dbbd7386ac0871f88171bd5f0a319623e98777
7
- data.tar.gz: 7e7416ae7eb335644a02ee83cf6bad8e4eff514ad62921bc6495b98a8262099560ec0cbefff5432ccde9c825275f3d8b09f0bd07c3a97292fbef8d81df4e6488
6
+ metadata.gz: 4dccc38619c93ec04bfefed99bfe5d98cb5350c88252bffae3ba4482c273688ea1180742372ccc62047da8671beab8f4126e42fa758b1e2032871620501a2f1d
7
+ data.tar.gz: a9b4ec0283f49f2bd66381eb11cb59374afe71951a5c5e959a74555ed21bff6eaa7c1f63abd26fd2965306452b77bfa25cc3025d2f09b5eb9507156c26c36238
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-securitycenter_v1beta2
2
2
 
3
+ ### v0.33.0 (2022-08-25)
4
+
5
+ * Regenerated from discovery document revision 20220824
6
+
7
+ ### v0.32.0 (2022-08-10)
8
+
9
+ * Regenerated from discovery document revision 20220809
10
+
11
+ ### v0.31.0 (2022-08-02)
12
+
13
+ * Regenerated from discovery document revision 20220728
14
+
3
15
  ### v0.30.0 (2022-07-26)
4
16
 
5
17
  * Regenerated from discovery document revision 20220720
@@ -41,11 +41,44 @@ module Google
41
41
  # @return [String]
42
42
  attr_accessor :method_name
43
43
 
44
- # Associated email, such as "foo@google.com".
44
+ # Associated email, such as "foo@google.com". The email address of the
45
+ # authenticated user (or service account on behalf of third party principal)
46
+ # making the request. For third party identity callers, the `principal_subject`
47
+ # field is populated instead of this field. For privacy reasons, the principal
48
+ # email address is sometimes redacted. For more information, see [Caller
49
+ # identities in audit logs](https://cloud.google.com/logging/docs/audit#user-id).
45
50
  # Corresponds to the JSON property `principalEmail`
46
51
  # @return [String]
47
52
  attr_accessor :principal_email
48
53
 
54
+ # A string representing the principal_subject associated with the identity. As
55
+ # compared to `principal_email`, supports principals that aren't associated with
56
+ # email addresses, such as third party principals. For most identities, the
57
+ # format will be `principal://iam.googleapis.com/`identity pool name`/subject/`
58
+ # subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM,
59
+ # GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:`
60
+ # identity pool name`[`subject`]`
61
+ # Corresponds to the JSON property `principalSubject`
62
+ # @return [String]
63
+ attr_accessor :principal_subject
64
+
65
+ # Identity delegation history of an authenticated service account that makes the
66
+ # request. It contains information on the real authorities that try to access
67
+ # GCP resources by delegating on a service account. When multiple authorities
68
+ # are present, they are guaranteed to be sorted based on the original ordering
69
+ # of the identity delegation events.
70
+ # Corresponds to the JSON property `serviceAccountDelegationInfo`
71
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::ServiceAccountDelegationInfo>]
72
+ attr_accessor :service_account_delegation_info
73
+
74
+ # The name of the service account key used to create or exchange credentials for
75
+ # authenticating the service account making the request. This is a scheme-less
76
+ # URI full resource name. For example: "//iam.googleapis.com/projects/`
77
+ # PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key`"
78
+ # Corresponds to the JSON property `serviceAccountKeyName`
79
+ # @return [String]
80
+ attr_accessor :service_account_key_name
81
+
49
82
  # This is the API service that the service account made a call to, e.g. "iam.
50
83
  # googleapis.com"
51
84
  # Corresponds to the JSON property `serviceName`
@@ -68,6 +101,9 @@ module Google
68
101
  @caller_ip_geo = args[:caller_ip_geo] if args.key?(:caller_ip_geo)
69
102
  @method_name = args[:method_name] if args.key?(:method_name)
70
103
  @principal_email = args[:principal_email] if args.key?(:principal_email)
104
+ @principal_subject = args[:principal_subject] if args.key?(:principal_subject)
105
+ @service_account_delegation_info = args[:service_account_delegation_info] if args.key?(:service_account_delegation_info)
106
+ @service_account_key_name = args[:service_account_key_name] if args.key?(:service_account_key_name)
71
107
  @service_name = args[:service_name] if args.key?(:service_name)
72
108
  @user_agent_family = args[:user_agent_family] if args.key?(:user_agent_family)
73
109
  end
@@ -480,6 +516,57 @@ module Google
480
516
  end
481
517
  end
482
518
 
519
+ # Represents database access information, such as queries. A database may be a
520
+ # sub-resource of an instance (as in the case of CloudSQL instances or Cloud
521
+ # Spanner instances), or the database instance itself. Some database resources
522
+ # may not have the full resource name populated because these resource types are
523
+ # not yet supported by Cloud Asset Inventory (e.g. CloudSQL databases). In these
524
+ # cases only the display name will be provided.
525
+ class Database
526
+ include Google::Apis::Core::Hashable
527
+
528
+ # The human readable name of the database the user connected to.
529
+ # Corresponds to the JSON property `displayName`
530
+ # @return [String]
531
+ attr_accessor :display_name
532
+
533
+ # The target usernames/roles/groups of a SQL privilege grant (not an IAM policy
534
+ # change).
535
+ # Corresponds to the JSON property `grantees`
536
+ # @return [Array<String>]
537
+ attr_accessor :grantees
538
+
539
+ # The full resource name of the database the user connected to, if it is
540
+ # supported by CAI. (https://google.aip.dev/122#full-resource-names)
541
+ # Corresponds to the JSON property `name`
542
+ # @return [String]
543
+ attr_accessor :name
544
+
545
+ # The SQL statement associated with the relevant access.
546
+ # Corresponds to the JSON property `query`
547
+ # @return [String]
548
+ attr_accessor :query
549
+
550
+ # The username used to connect to the DB. This may not necessarily be an IAM
551
+ # principal, and has no required format.
552
+ # Corresponds to the JSON property `userName`
553
+ # @return [String]
554
+ attr_accessor :user_name
555
+
556
+ def initialize(**args)
557
+ update!(**args)
558
+ end
559
+
560
+ # Update properties of this object
561
+ def update!(**args)
562
+ @display_name = args[:display_name] if args.key?(:display_name)
563
+ @grantees = args[:grantees] if args.key?(:grantees)
564
+ @name = args[:name] if args.key?(:name)
565
+ @query = args[:query] if args.key?(:query)
566
+ @user_name = args[:user_name] if args.key?(:user_name)
567
+ end
568
+ end
569
+
483
570
  # Details of a subscription.
484
571
  class Details
485
572
  include Google::Apis::Core::Hashable
@@ -760,7 +847,7 @@ module Google
760
847
  # contacts that pertain. Please refer to: https://cloud.google.com/resource-
761
848
  # manager/docs/managing-notification-contacts#notification-categories ` "
762
849
  # security": ` "contacts": [ ` "email": "person1@company.com" `, ` "email": "
763
- # person2@company.com" ` ] `
850
+ # person2@company.com" ` ] ` `
764
851
  # Corresponds to the JSON property `contacts`
765
852
  # @return [Hash<String,Google::Apis::SecuritycenterV1beta2::ContactDetails>]
766
853
  attr_accessor :contacts
@@ -776,6 +863,16 @@ module Google
776
863
  # @return [String]
777
864
  attr_accessor :create_time
778
865
 
866
+ # Represents database access information, such as queries. A database may be a
867
+ # sub-resource of an instance (as in the case of CloudSQL instances or Cloud
868
+ # Spanner instances), or the database instance itself. Some database resources
869
+ # may not have the full resource name populated because these resource types are
870
+ # not yet supported by Cloud Asset Inventory (e.g. CloudSQL databases). In these
871
+ # cases only the display name will be provided.
872
+ # Corresponds to the JSON property `database`
873
+ # @return [Google::Apis::SecuritycenterV1beta2::Database]
874
+ attr_accessor :database
875
+
779
876
  # Contains more detail about the finding.
780
877
  # Corresponds to the JSON property `description`
781
878
  # @return [String]
@@ -940,6 +1037,7 @@ module Google
940
1037
  @contacts = args[:contacts] if args.key?(:contacts)
941
1038
  @containers = args[:containers] if args.key?(:containers)
942
1039
  @create_time = args[:create_time] if args.key?(:create_time)
1040
+ @database = args[:database] if args.key?(:database)
943
1041
  @description = args[:description] if args.key?(:description)
944
1042
  @event_time = args[:event_time] if args.key?(:event_time)
945
1043
  @exfiltration = args[:exfiltration] if args.key?(:exfiltration)
@@ -1771,7 +1869,7 @@ module Google
1771
1869
  # @return [Array<Google::Apis::SecuritycenterV1beta2::ProcessSignature>]
1772
1870
  attr_accessor :signatures
1773
1871
 
1774
- # The list of URIs associated to the Findings
1872
+ # The list of URIs associated to the Findings.
1775
1873
  # Corresponds to the JSON property `uris`
1776
1874
  # @return [Array<String>]
1777
1875
  attr_accessor :uris
@@ -2397,6 +2495,37 @@ module Google
2397
2495
  end
2398
2496
  end
2399
2497
 
2498
+ # Identity delegation history of an authenticated service account.
2499
+ class ServiceAccountDelegationInfo
2500
+ include Google::Apis::Core::Hashable
2501
+
2502
+ # The email address of a Google account. .
2503
+ # Corresponds to the JSON property `principalEmail`
2504
+ # @return [String]
2505
+ attr_accessor :principal_email
2506
+
2507
+ # A string representing the principal_subject associated with the identity. As
2508
+ # compared to `principal_email`, supports principals that aren't associated with
2509
+ # email addresses, such as third party principals. For most identities, the
2510
+ # format will be `principal://iam.googleapis.com/`identity pool name`/subject/`
2511
+ # subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM,
2512
+ # GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:`
2513
+ # identity pool name`[`subject`]`
2514
+ # Corresponds to the JSON property `principalSubject`
2515
+ # @return [String]
2516
+ attr_accessor :principal_subject
2517
+
2518
+ def initialize(**args)
2519
+ update!(**args)
2520
+ end
2521
+
2522
+ # Update properties of this object
2523
+ def update!(**args)
2524
+ @principal_email = args[:principal_email] if args.key?(:principal_email)
2525
+ @principal_subject = args[:principal_subject] if args.key?(:principal_subject)
2526
+ end
2527
+ end
2528
+
2400
2529
  # Represents a Kubernetes Subject.
2401
2530
  class Subject
2402
2531
  include Google::Apis::Core::Hashable
@@ -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.30.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220720"
25
+ REVISION = "20220824"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class Database
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class Details
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -346,6 +352,12 @@ module Google
346
352
  include Google::Apis::Core::JsonObjectSupport
347
353
  end
348
354
 
355
+ class ServiceAccountDelegationInfo
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
349
361
  class Subject
350
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
363
 
@@ -390,6 +402,10 @@ module Google
390
402
 
391
403
  property :method_name, as: 'methodName'
392
404
  property :principal_email, as: 'principalEmail'
405
+ property :principal_subject, as: 'principalSubject'
406
+ collection :service_account_delegation_info, as: 'serviceAccountDelegationInfo', class: Google::Apis::SecuritycenterV1beta2::ServiceAccountDelegationInfo, decorator: Google::Apis::SecuritycenterV1beta2::ServiceAccountDelegationInfo::Representation
407
+
408
+ property :service_account_key_name, as: 'serviceAccountKeyName'
393
409
  property :service_name, as: 'serviceName'
394
410
  property :user_agent_family, as: 'userAgentFamily'
395
411
  end
@@ -501,6 +517,17 @@ module Google
501
517
  end
502
518
  end
503
519
 
520
+ class Database
521
+ # @private
522
+ class Representation < Google::Apis::Core::JsonRepresentation
523
+ property :display_name, as: 'displayName'
524
+ collection :grantees, as: 'grantees'
525
+ property :name, as: 'name'
526
+ property :query, as: 'query'
527
+ property :user_name, as: 'userName'
528
+ end
529
+ end
530
+
504
531
  class Details
505
532
  # @private
506
533
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -583,6 +610,8 @@ module Google
583
610
  collection :containers, as: 'containers', class: Google::Apis::SecuritycenterV1beta2::Container, decorator: Google::Apis::SecuritycenterV1beta2::Container::Representation
584
611
 
585
612
  property :create_time, as: 'createTime'
613
+ property :database, as: 'database', class: Google::Apis::SecuritycenterV1beta2::Database, decorator: Google::Apis::SecuritycenterV1beta2::Database::Representation
614
+
586
615
  property :description, as: 'description'
587
616
  property :event_time, as: 'eventTime'
588
617
  property :exfiltration, as: 'exfiltration', class: Google::Apis::SecuritycenterV1beta2::Exfiltration, decorator: Google::Apis::SecuritycenterV1beta2::Exfiltration::Representation
@@ -990,6 +1019,14 @@ module Google
990
1019
  end
991
1020
  end
992
1021
 
1022
+ class ServiceAccountDelegationInfo
1023
+ # @private
1024
+ class Representation < Google::Apis::Core::JsonRepresentation
1025
+ property :principal_email, as: 'principalEmail'
1026
+ property :principal_subject, as: 'principalSubject'
1027
+ end
1028
+ end
1029
+
993
1030
  class Subject
994
1031
  # @private
995
1032
  class Representation < Google::Apis::Core::JsonRepresentation
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.30.0
4
+ version: 0.33.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: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.33.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: []