From 929cea893102d0a1ccd79ee62b7312fbb6b2371c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 11 Jan 2026 10:54:18 +0000 Subject: [PATCH] feat: Automated regeneration of securitycenter v1beta2 client --- api_names_out.yaml | 46 +++ .../CHANGELOG.md | 4 + .../apis/securitycenter_v1beta2/classes.rb | 356 ++++++++++++++++++ .../securitycenter_v1beta2/gem_version.rb | 4 +- .../securitycenter_v1beta2/representations.rb | 188 +++++++++ 5 files changed, 596 insertions(+), 2 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index faf5cf184e6..0bdbb68a9a3 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -356270,6 +356270,14 @@ "/securitycenter:v1beta2/Application": application "/securitycenter:v1beta2/Application/baseUri": base_uri "/securitycenter:v1beta2/Application/fullUri": full_uri +"/securitycenter:v1beta2/ArtifactGuardPolicies": artifact_guard_policies +"/securitycenter:v1beta2/ArtifactGuardPolicies/failingPolicies": failing_policies +"/securitycenter:v1beta2/ArtifactGuardPolicies/failingPolicies/failing_policy": failing_policy +"/securitycenter:v1beta2/ArtifactGuardPolicies/resourceId": resource_id +"/securitycenter:v1beta2/ArtifactGuardPolicy": artifact_guard_policy +"/securitycenter:v1beta2/ArtifactGuardPolicy/failureReason": failure_reason +"/securitycenter:v1beta2/ArtifactGuardPolicy/policyId": policy_id +"/securitycenter:v1beta2/ArtifactGuardPolicy/type": type "/securitycenter:v1beta2/AssociatedFinding": associated_finding "/securitycenter:v1beta2/AssociatedFinding/canonicalFindingName": canonical_finding_name "/securitycenter:v1beta2/AssociatedFinding/findingCategory": finding_category @@ -356524,6 +356532,7 @@ "/securitycenter:v1beta2/File": file "/securitycenter:v1beta2/File/contents": contents "/securitycenter:v1beta2/File/diskPath": disk_path +"/securitycenter:v1beta2/File/fileLoadState": file_load_state "/securitycenter:v1beta2/File/hashedSize": hashed_size "/securitycenter:v1beta2/File/operations": operations "/securitycenter:v1beta2/File/operations/operation": operation @@ -356538,6 +356547,7 @@ "/securitycenter:v1beta2/Finding/affectedResources": affected_resources "/securitycenter:v1beta2/Finding/aiModel": ai_model "/securitycenter:v1beta2/Finding/application": application +"/securitycenter:v1beta2/Finding/artifactGuardPolicies": artifact_guard_policies "/securitycenter:v1beta2/Finding/attackExposure": attack_exposure "/securitycenter:v1beta2/Finding/backupDisasterRecovery": backup_disaster_recovery "/securitycenter:v1beta2/Finding/canonicalName": canonical_name @@ -356606,6 +356616,7 @@ "/securitycenter:v1beta2/Finding/processes": processes "/securitycenter:v1beta2/Finding/processes/process": process "/securitycenter:v1beta2/Finding/resourceName": resource_name +"/securitycenter:v1beta2/Finding/secret": secret "/securitycenter:v1beta2/Finding/securityMarks": security_marks "/securitycenter:v1beta2/Finding/securityPosture": security_posture "/securitycenter:v1beta2/Finding/severity": severity @@ -356887,6 +356898,14 @@ "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Application": google_cloud_securitycenter_v2_application "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Application/baseUri": base_uri "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Application/fullUri": full_uri +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2ArtifactGuardPolicies": google_cloud_securitycenter_v2_artifact_guard_policies +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2ArtifactGuardPolicies/failingPolicies": failing_policies +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2ArtifactGuardPolicies/failingPolicies/failing_policy": failing_policy +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2ArtifactGuardPolicies/resourceId": resource_id +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2ArtifactGuardPolicy": google_cloud_securitycenter_v2_artifact_guard_policy +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2ArtifactGuardPolicy/failureReason": failure_reason +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2ArtifactGuardPolicy/policyId": policy_id +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2ArtifactGuardPolicy/type": type "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Attack": google_cloud_securitycenter_v2_attack "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Attack/classification": classification "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Attack/volumeBps": volume_bps @@ -357122,6 +357141,7 @@ "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File": google_cloud_securitycenter_v2_file "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/contents": contents "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/diskPath": disk_path +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/fileLoadState": file_load_state "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/hashedSize": hashed_size "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/operations": operations "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/operations/operation": operation @@ -357136,6 +357156,7 @@ "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/affectedResources": affected_resources "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/aiModel": ai_model "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/application": application +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/artifactGuardPolicies": artifact_guard_policies "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/attackExposure": attack_exposure "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/backupDisasterRecovery": backup_disaster_recovery "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/canonicalName": canonical_name @@ -357203,6 +357224,7 @@ "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/processes": processes "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/processes/process": process "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/resourceName": resource_name +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/secret": secret "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/securityMarks": security_marks "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/securityPosture": security_posture "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/severity": severity @@ -357541,6 +357563,18 @@ "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Role/kind": kind "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Role/name": name "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Role/ns": ns +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Secret": google_cloud_securitycenter_v2_secret +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Secret/environmentVariable": environment_variable +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Secret/filePath": file_path +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Secret/status": status +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Secret/type": type +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecretEnvironmentVariable": google_cloud_securitycenter_v2_secret_environment_variable +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecretEnvironmentVariable/key": key +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecretFilePath": google_cloud_securitycenter_v2_secret_file_path +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecretFilePath/path": path +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecretStatus": google_cloud_securitycenter_v2_secret_status +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecretStatus/lastUpdatedTime": last_updated_time +"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecretStatus/validity": validity "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecurityBulletin": google_cloud_securitycenter_v2_security_bulletin "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecurityBulletin/bulletinId": bulletin_id "/securitycenter:v1beta2/GoogleCloudSecuritycenterV2SecurityBulletin/submissionTime": submission_time @@ -357793,6 +357827,18 @@ "/securitycenter:v1beta2/Role/kind": kind "/securitycenter:v1beta2/Role/name": name "/securitycenter:v1beta2/Role/ns": ns +"/securitycenter:v1beta2/Secret": secret +"/securitycenter:v1beta2/Secret/environmentVariable": environment_variable +"/securitycenter:v1beta2/Secret/filePath": file_path +"/securitycenter:v1beta2/Secret/status": status +"/securitycenter:v1beta2/Secret/type": type +"/securitycenter:v1beta2/SecretEnvironmentVariable": secret_environment_variable +"/securitycenter:v1beta2/SecretEnvironmentVariable/key": key +"/securitycenter:v1beta2/SecretFilePath": secret_file_path +"/securitycenter:v1beta2/SecretFilePath/path": path +"/securitycenter:v1beta2/SecretStatus": secret_status +"/securitycenter:v1beta2/SecretStatus/lastUpdatedTime": last_updated_time +"/securitycenter:v1beta2/SecretStatus/validity": validity "/securitycenter:v1beta2/SecurityBulletin": security_bulletin "/securitycenter:v1beta2/SecurityBulletin/bulletinId": bulletin_id "/securitycenter:v1beta2/SecurityBulletin/submissionTime": submission_time diff --git a/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md b/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md index efb33f2b91e..c18967b254c 100644 --- a/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md +++ b/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-securitycenter_v1beta2 +### v0.94.0 (2026-01-11) + +* Regenerated from discovery document revision 20260105 + ### v0.93.0 (2025-12-07) * Regenerated from discovery document revision 20251202 diff --git a/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/classes.rb b/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/classes.rb index f6407daff7f..efeaa2c0f22 100644 --- a/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/classes.rb +++ b/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/classes.rb @@ -337,6 +337,64 @@ def update!(**args) end end + # Represents the result of evaluating artifact guard policies. + class ArtifactGuardPolicies + include Google::Apis::Core::Hashable + + # A list of failing policies. + # Corresponds to the JSON property `failingPolicies` + # @return [Array] + attr_accessor :failing_policies + + # The ID of the resource that has policies configured for it. + # Corresponds to the JSON property `resourceId` + # @return [String] + attr_accessor :resource_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @failing_policies = args[:failing_policies] if args.key?(:failing_policies) + @resource_id = args[:resource_id] if args.key?(:resource_id) + end + end + + # Represents an artifact guard policy. + class ArtifactGuardPolicy + include Google::Apis::Core::Hashable + + # The reason for the policy failure, for example, "severity=HIGH AND + # max_vuln_count=2". + # Corresponds to the JSON property `failureReason` + # @return [String] + attr_accessor :failure_reason + + # The ID of the failing policy, for example, "organizations/3392779/locations/ + # global/policies/prod-policy". + # Corresponds to the JSON property `policyId` + # @return [String] + attr_accessor :policy_id + + # The type of the policy evaluation. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @failure_reason = args[:failure_reason] if args.key?(:failure_reason) + @policy_id = args[:policy_id] if args.key?(:policy_id) + @type = args[:type] if args.key?(:type) + end + end + # Information about DDoS attack volume and classification. class Attack include Google::Apis::Core::Hashable @@ -2154,6 +2212,11 @@ class File # @return [Google::Apis::SecuritycenterV1beta2::DiskPath] attr_accessor :disk_path + # The load state of the file. + # Corresponds to the JSON property `fileLoadState` + # @return [String] + attr_accessor :file_load_state + # The length in bytes of the file prefix that was hashed. If hashed_size == size, # any hashes reported represent the entire file. # Corresponds to the JSON property `hashedSize` @@ -2195,6 +2258,7 @@ def initialize(**args) def update!(**args) @contents = args[:contents] if args.key?(:contents) @disk_path = args[:disk_path] if args.key?(:disk_path) + @file_load_state = args[:file_load_state] if args.key?(:file_load_state) @hashed_size = args[:hashed_size] if args.key?(:hashed_size) @operations = args[:operations] if args.key?(:operations) @partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed) @@ -2251,6 +2315,11 @@ class Finding # @return [Google::Apis::SecuritycenterV1beta2::Application] attr_accessor :application + # Represents the result of evaluating artifact guard policies. + # Corresponds to the JSON property `artifactGuardPolicies` + # @return [Google::Apis::SecuritycenterV1beta2::ArtifactGuardPolicies] + attr_accessor :artifact_guard_policies + # An attack exposure contains the results of an attack path simulation run. # Corresponds to the JSON property `attackExposure` # @return [Google::Apis::SecuritycenterV1beta2::AttackExposure] @@ -2563,6 +2632,11 @@ class Finding # @return [String] attr_accessor :resource_name + # Details about a secret or credential associated with the finding. + # Corresponds to the JSON property `secret` + # @return [Google::Apis::SecuritycenterV1beta2::Secret] + attr_accessor :secret + # User specified security marks that are attached to the parent Security Command # Center resource. Security marks are scoped within a Security Command Center # organization -- they can be modified and viewed by all users who have proper @@ -2625,6 +2699,7 @@ def update!(**args) @affected_resources = args[:affected_resources] if args.key?(:affected_resources) @ai_model = args[:ai_model] if args.key?(:ai_model) @application = args[:application] if args.key?(:application) + @artifact_guard_policies = args[:artifact_guard_policies] if args.key?(:artifact_guard_policies) @attack_exposure = args[:attack_exposure] if args.key?(:attack_exposure) @backup_disaster_recovery = args[:backup_disaster_recovery] if args.key?(:backup_disaster_recovery) @canonical_name = args[:canonical_name] if args.key?(:canonical_name) @@ -2675,6 +2750,7 @@ def update!(**args) @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) @processes = args[:processes] if args.key?(:processes) @resource_name = args[:resource_name] if args.key?(:resource_name) + @secret = args[:secret] if args.key?(:secret) @security_marks = args[:security_marks] if args.key?(:security_marks) @security_posture = args[:security_posture] if args.key?(:security_posture) @severity = args[:severity] if args.key?(:severity) @@ -4513,6 +4589,64 @@ def update!(**args) end end + # Represents the result of evaluating artifact guard policies. + class GoogleCloudSecuritycenterV2ArtifactGuardPolicies + include Google::Apis::Core::Hashable + + # A list of failing policies. + # Corresponds to the JSON property `failingPolicies` + # @return [Array] + attr_accessor :failing_policies + + # The ID of the resource that has policies configured for it. + # Corresponds to the JSON property `resourceId` + # @return [String] + attr_accessor :resource_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @failing_policies = args[:failing_policies] if args.key?(:failing_policies) + @resource_id = args[:resource_id] if args.key?(:resource_id) + end + end + + # Represents an artifact guard policy. + class GoogleCloudSecuritycenterV2ArtifactGuardPolicy + include Google::Apis::Core::Hashable + + # The reason for the policy failure, for example, "severity=HIGH AND + # max_vuln_count=2". + # Corresponds to the JSON property `failureReason` + # @return [String] + attr_accessor :failure_reason + + # The ID of the failing policy, for example, "organizations/3392779/locations/ + # global/policies/prod-policy". + # Corresponds to the JSON property `policyId` + # @return [String] + attr_accessor :policy_id + + # The type of the policy evaluation. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @failure_reason = args[:failure_reason] if args.key?(:failure_reason) + @policy_id = args[:policy_id] if args.key?(:policy_id) + @type = args[:type] if args.key?(:type) + end + end + # Information about DDoS attack volume and classification. class GoogleCloudSecuritycenterV2Attack include Google::Apis::Core::Hashable @@ -6299,6 +6433,11 @@ class GoogleCloudSecuritycenterV2File # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2DiskPath] attr_accessor :disk_path + # The load state of the file. + # Corresponds to the JSON property `fileLoadState` + # @return [String] + attr_accessor :file_load_state + # The length in bytes of the file prefix that was hashed. If hashed_size == size, # any hashes reported represent the entire file. # Corresponds to the JSON property `hashedSize` @@ -6340,6 +6479,7 @@ def initialize(**args) def update!(**args) @contents = args[:contents] if args.key?(:contents) @disk_path = args[:disk_path] if args.key?(:disk_path) + @file_load_state = args[:file_load_state] if args.key?(:file_load_state) @hashed_size = args[:hashed_size] if args.key?(:hashed_size) @operations = args[:operations] if args.key?(:operations) @partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed) @@ -6396,6 +6536,11 @@ class GoogleCloudSecuritycenterV2Finding # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Application] attr_accessor :application + # Represents the result of evaluating artifact guard policies. + # Corresponds to the JSON property `artifactGuardPolicies` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2ArtifactGuardPolicies] + attr_accessor :artifact_guard_policies + # An attack exposure contains the results of an attack path simulation run. # Corresponds to the JSON property `attackExposure` # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2AttackExposure] @@ -6725,6 +6870,11 @@ class GoogleCloudSecuritycenterV2Finding # @return [String] attr_accessor :resource_name + # Details about a secret or credential associated with the finding. + # Corresponds to the JSON property `secret` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Secret] + attr_accessor :secret + # User specified security marks that are attached to the parent Security Command # Center resource. Security marks are scoped within a Security Command Center # organization -- they can be modified and viewed by all users who have proper @@ -6787,6 +6937,7 @@ def update!(**args) @affected_resources = args[:affected_resources] if args.key?(:affected_resources) @ai_model = args[:ai_model] if args.key?(:ai_model) @application = args[:application] if args.key?(:application) + @artifact_guard_policies = args[:artifact_guard_policies] if args.key?(:artifact_guard_policies) @attack_exposure = args[:attack_exposure] if args.key?(:attack_exposure) @backup_disaster_recovery = args[:backup_disaster_recovery] if args.key?(:backup_disaster_recovery) @canonical_name = args[:canonical_name] if args.key?(:canonical_name) @@ -6838,6 +6989,7 @@ def update!(**args) @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) @processes = args[:processes] if args.key?(:processes) @resource_name = args[:resource_name] if args.key?(:resource_name) + @secret = args[:secret] if args.key?(:secret) @security_marks = args[:security_marks] if args.key?(:security_marks) @security_posture = args[:security_posture] if args.key?(:security_posture) @severity = args[:severity] if args.key?(:severity) @@ -9172,6 +9324,108 @@ def update!(**args) end end + # Details about a secret or credential associated with the finding. + class GoogleCloudSecuritycenterV2Secret + include Google::Apis::Core::Hashable + + # Environment variable containing the secret. + # Corresponds to the JSON property `environmentVariable` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretEnvironmentVariable] + attr_accessor :environment_variable + + # File path containing the secret. + # Corresponds to the JSON property `filePath` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretFilePath] + attr_accessor :file_path + + # The status of the secret. + # Corresponds to the JSON property `status` + # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretStatus] + attr_accessor :status + + # The type of secret, for example, GCP_API_KEY. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environment_variable = args[:environment_variable] if args.key?(:environment_variable) + @file_path = args[:file_path] if args.key?(:file_path) + @status = args[:status] if args.key?(:status) + @type = args[:type] if args.key?(:type) + end + end + + # Environment variable containing the secret. + class GoogleCloudSecuritycenterV2SecretEnvironmentVariable + include Google::Apis::Core::Hashable + + # Environment variable name as a JSON encoded string. Note that value is not + # included since the value contains the secret data, which is sensitive core + # content. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + end + end + + # File path containing the secret. + class GoogleCloudSecuritycenterV2SecretFilePath + include Google::Apis::Core::Hashable + + # Path to the file. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @path = args[:path] if args.key?(:path) + end + end + + # The status of the secret. + class GoogleCloudSecuritycenterV2SecretStatus + include Google::Apis::Core::Hashable + + # Time that the secret was found. + # Corresponds to the JSON property `lastUpdatedTime` + # @return [String] + attr_accessor :last_updated_time + + # The validity of the secret. + # Corresponds to the JSON property `validity` + # @return [String] + attr_accessor :validity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_updated_time = args[:last_updated_time] if args.key?(:last_updated_time) + @validity = args[:validity] if args.key?(:validity) + end + end + # SecurityBulletin are notifications of vulnerabilities of Google products. class GoogleCloudSecuritycenterV2SecurityBulletin include Google::Apis::Core::Hashable @@ -10903,6 +11157,108 @@ def update!(**args) end end + # Details about a secret or credential associated with the finding. + class Secret + include Google::Apis::Core::Hashable + + # Environment variable containing the secret. + # Corresponds to the JSON property `environmentVariable` + # @return [Google::Apis::SecuritycenterV1beta2::SecretEnvironmentVariable] + attr_accessor :environment_variable + + # File path containing the secret. + # Corresponds to the JSON property `filePath` + # @return [Google::Apis::SecuritycenterV1beta2::SecretFilePath] + attr_accessor :file_path + + # The status of the secret. + # Corresponds to the JSON property `status` + # @return [Google::Apis::SecuritycenterV1beta2::SecretStatus] + attr_accessor :status + + # The type of secret, for example, GCP_API_KEY. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environment_variable = args[:environment_variable] if args.key?(:environment_variable) + @file_path = args[:file_path] if args.key?(:file_path) + @status = args[:status] if args.key?(:status) + @type = args[:type] if args.key?(:type) + end + end + + # Environment variable containing the secret. + class SecretEnvironmentVariable + include Google::Apis::Core::Hashable + + # Environment variable name as a JSON encoded string. Note that value is not + # included since the value contains the secret data, which is sensitive core + # content. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + end + end + + # File path containing the secret. + class SecretFilePath + include Google::Apis::Core::Hashable + + # Path to the file. + # Corresponds to the JSON property `path` + # @return [String] + attr_accessor :path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @path = args[:path] if args.key?(:path) + end + end + + # The status of the secret. + class SecretStatus + include Google::Apis::Core::Hashable + + # Time that the secret was found. + # Corresponds to the JSON property `lastUpdatedTime` + # @return [String] + attr_accessor :last_updated_time + + # The validity of the secret. + # Corresponds to the JSON property `validity` + # @return [String] + attr_accessor :validity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_updated_time = args[:last_updated_time] if args.key?(:last_updated_time) + @validity = args[:validity] if args.key?(:validity) + end + end + # SecurityBulletin are notifications of vulnerabilities of Google products. class SecurityBulletin include Google::Apis::Core::Hashable diff --git a/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/gem_version.rb b/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/gem_version.rb index 13ea264372e..25bfa6e6031 100644 --- a/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/gem_version.rb +++ b/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module SecuritycenterV1beta2 # Version of the google-apis-securitycenter_v1beta2 gem - GEM_VERSION = "0.93.0" + GEM_VERSION = "0.94.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251202" + REVISION = "20260105" end end end diff --git a/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/representations.rb b/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/representations.rb index c0d6df83579..53355d7dc9f 100644 --- a/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/representations.rb +++ b/generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/representations.rb @@ -64,6 +64,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ArtifactGuardPolicies + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ArtifactGuardPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Attack class Representation < Google::Apis::Core::JsonRepresentation; end @@ -610,6 +622,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV2ArtifactGuardPolicies + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV2ArtifactGuardPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV2Attack class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1288,6 +1312,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV2Secret + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV2SecretEnvironmentVariable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV2SecretFilePath + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudSecuritycenterV2SecretStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV2SecurityBulletin class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1576,6 +1624,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Secret + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SecretEnvironmentVariable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SecretFilePath + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SecretStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SecurityBulletin class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1772,6 +1844,24 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ArtifactGuardPolicies + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :failing_policies, as: 'failingPolicies', class: Google::Apis::SecuritycenterV1beta2::ArtifactGuardPolicy, decorator: Google::Apis::SecuritycenterV1beta2::ArtifactGuardPolicy::Representation + + property :resource_id, as: 'resourceId' + end + end + + class ArtifactGuardPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :failure_reason, as: 'failureReason' + property :policy_id, as: 'policyId' + property :type, as: 'type' + end + end + class Attack # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2260,6 +2350,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :contents, as: 'contents' property :disk_path, as: 'diskPath', class: Google::Apis::SecuritycenterV1beta2::DiskPath, decorator: Google::Apis::SecuritycenterV1beta2::DiskPath::Representation + property :file_load_state, as: 'fileLoadState' property :hashed_size, :numeric_string => true, as: 'hashedSize' collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1beta2::FileOperation, decorator: Google::Apis::SecuritycenterV1beta2::FileOperation::Representation @@ -2288,6 +2379,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :application, as: 'application', class: Google::Apis::SecuritycenterV1beta2::Application, decorator: Google::Apis::SecuritycenterV1beta2::Application::Representation + property :artifact_guard_policies, as: 'artifactGuardPolicies', class: Google::Apis::SecuritycenterV1beta2::ArtifactGuardPolicies, decorator: Google::Apis::SecuritycenterV1beta2::ArtifactGuardPolicies::Representation + property :attack_exposure, as: 'attackExposure', class: Google::Apis::SecuritycenterV1beta2::AttackExposure, decorator: Google::Apis::SecuritycenterV1beta2::AttackExposure::Representation property :backup_disaster_recovery, as: 'backupDisasterRecovery', class: Google::Apis::SecuritycenterV1beta2::BackupDisasterRecovery, decorator: Google::Apis::SecuritycenterV1beta2::BackupDisasterRecovery::Representation @@ -2372,6 +2465,8 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :processes, as: 'processes', class: Google::Apis::SecuritycenterV1beta2::Process, decorator: Google::Apis::SecuritycenterV1beta2::Process::Representation property :resource_name, as: 'resourceName' + property :secret, as: 'secret', class: Google::Apis::SecuritycenterV1beta2::Secret, decorator: Google::Apis::SecuritycenterV1beta2::Secret::Representation + property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::SecurityMarks::Representation property :security_posture, as: 'securityPosture', class: Google::Apis::SecuritycenterV1beta2::SecurityPosture, decorator: Google::Apis::SecuritycenterV1beta2::SecurityPosture::Representation @@ -2830,6 +2925,24 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudSecuritycenterV2ArtifactGuardPolicies + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :failing_policies, as: 'failingPolicies', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2ArtifactGuardPolicy, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2ArtifactGuardPolicy::Representation + + property :resource_id, as: 'resourceId' + end + end + + class GoogleCloudSecuritycenterV2ArtifactGuardPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :failure_reason, as: 'failureReason' + property :policy_id, as: 'policyId' + property :type, as: 'type' + end + end + class GoogleCloudSecuritycenterV2Attack # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3297,6 +3410,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :contents, as: 'contents' property :disk_path, as: 'diskPath', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2DiskPath, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2DiskPath::Representation + property :file_load_state, as: 'fileLoadState' property :hashed_size, :numeric_string => true, as: 'hashedSize' collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2FileOperation, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2FileOperation::Representation @@ -3325,6 +3439,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :application, as: 'application', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Application, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Application::Representation + property :artifact_guard_policies, as: 'artifactGuardPolicies', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2ArtifactGuardPolicies, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2ArtifactGuardPolicies::Representation + property :attack_exposure, as: 'attackExposure', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2AttackExposure, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2AttackExposure::Representation property :backup_disaster_recovery, as: 'backupDisasterRecovery', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2BackupDisasterRecovery, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2BackupDisasterRecovery::Representation @@ -3410,6 +3526,8 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :processes, as: 'processes', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Process, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Process::Representation property :resource_name, as: 'resourceName' + property :secret, as: 'secret', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Secret, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Secret::Representation + property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityMarks::Representation property :security_posture, as: 'securityPosture', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityPosture, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityPosture::Representation @@ -4100,6 +4218,41 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudSecuritycenterV2Secret + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :environment_variable, as: 'environmentVariable', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretEnvironmentVariable, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretEnvironmentVariable::Representation + + property :file_path, as: 'filePath', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretFilePath, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretFilePath::Representation + + property :status, as: 'status', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretStatus, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretStatus::Representation + + property :type, as: 'type' + end + end + + class GoogleCloudSecuritycenterV2SecretEnvironmentVariable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + end + end + + class GoogleCloudSecuritycenterV2SecretFilePath + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :path, as: 'path' + end + end + + class GoogleCloudSecuritycenterV2SecretStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_updated_time, as: 'lastUpdatedTime' + property :validity, as: 'validity' + end + end + class GoogleCloudSecuritycenterV2SecurityBulletin # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4582,6 +4735,41 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Secret + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :environment_variable, as: 'environmentVariable', class: Google::Apis::SecuritycenterV1beta2::SecretEnvironmentVariable, decorator: Google::Apis::SecuritycenterV1beta2::SecretEnvironmentVariable::Representation + + property :file_path, as: 'filePath', class: Google::Apis::SecuritycenterV1beta2::SecretFilePath, decorator: Google::Apis::SecuritycenterV1beta2::SecretFilePath::Representation + + property :status, as: 'status', class: Google::Apis::SecuritycenterV1beta2::SecretStatus, decorator: Google::Apis::SecuritycenterV1beta2::SecretStatus::Representation + + property :type, as: 'type' + end + end + + class SecretEnvironmentVariable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + end + end + + class SecretFilePath + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :path, as: 'path' + end + end + + class SecretStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_updated_time, as: 'lastUpdatedTime' + property :validity, as: 'validity' + end + end + class SecurityBulletin # @private class Representation < Google::Apis::Core::JsonRepresentation