From 2b79e4f5488eba7218043ecafce10dc5705717bb Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 29 Oct 2023 04:04:13 -0700 Subject: [PATCH] feat: Automated regeneration of securitycenter v1beta2 client (#16568) Auto-created at 2023-10-29 10:48:17 +0000 using the toys pull request generator. --- api_names_out.yaml | 4 +++ .../CHANGELOG.md | 4 +++ .../apis/securitycenter_v1beta2/classes.rb | 33 +++++++++++++++++-- .../securitycenter_v1beta2/gem_version.rb | 4 +-- .../securitycenter_v1beta2/representations.rb | 15 +++++++++ 5 files changed, 56 insertions(+), 4 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index b166d4bcb61..864e9b42816 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -274960,6 +274960,8 @@ "/securitycenter:v1beta2/Finding/muteUpdateTime": mute_update_time "/securitycenter:v1beta2/Finding/name": name "/securitycenter:v1beta2/Finding/nextSteps": next_steps +"/securitycenter:v1beta2/Finding/orgPolicies": org_policies +"/securitycenter:v1beta2/Finding/orgPolicies/org_policy": org_policy "/securitycenter:v1beta2/Finding/orgPolicyConstraints": org_policy_constraints "/securitycenter:v1beta2/Finding/orgPolicyConstraints/org_policy_constraint": org_policy_constraint "/securitycenter:v1beta2/Finding/parent": parent @@ -275218,6 +275220,8 @@ "/securitycenter:v1beta2/OnboardingState": onboarding_state "/securitycenter:v1beta2/OnboardingState/name": name "/securitycenter:v1beta2/OnboardingState/onboardingLevel": onboarding_level +"/securitycenter:v1beta2/OrgPolicy": org_policy +"/securitycenter:v1beta2/OrgPolicy/name": name "/securitycenter:v1beta2/OrgPolicyConstraint": org_policy_constraint "/securitycenter:v1beta2/OrgPolicyConstraint/name": name "/securitycenter:v1beta2/PathNode": path_node diff --git a/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md b/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md index 88d68901966..2540a6248b6 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.57.0 (2023-10-29) + +* Regenerated from discovery document revision 20231023 + ### v0.56.0 (2023-10-15) * Regenerated from discovery document revision 20231005 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 51397c073ed..1d697476498 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 @@ -1241,6 +1241,11 @@ class Finding # @return [String] attr_accessor :next_steps + # Contains information about the org policies associated with the finding. + # Corresponds to the JSON property `orgPolicies` + # @return [Array] + attr_accessor :org_policies + # The relative resource name of the source the finding belongs to. See: https:// # cloud.google.com/apis/design/resource_names#relative_resource_name This field # is immutable after creation time. For example: "organizations/`organization_id` @@ -1346,6 +1351,7 @@ def update!(**args) @mute_update_time = args[:mute_update_time] if args.key?(:mute_update_time) @name = args[:name] if args.key?(:name) @next_steps = args[:next_steps] if args.key?(:next_steps) + @org_policies = args[:org_policies] if args.key?(:org_policies) @parent = args[:parent] if args.key?(:parent) @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) @processes = args[:processes] if args.key?(:processes) @@ -1780,7 +1786,10 @@ class GoogleCloudSecuritycenterV1MuteConfig # This field will be ignored if provided on config creation. Format " # organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/ - # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" + # muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" " + # organizations/`organization`/locations/global/muteConfigs/`mute_config`" " + # folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/` + # project`/locations/global/muteConfigs/`mute_config`" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2898,6 +2907,26 @@ def update!(**args) end end + # Contains information about the org policies associated with the finding. + class OrgPolicy + include Google::Apis::Core::Hashable + + # The resource name of the org policy. Example: "organizations/`organization_id`/ + # policies/`constraint_name`" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + end + end + # A Kubernetes Pod. class Pod include Google::Apis::Core::Hashable @@ -3138,7 +3167,7 @@ def update!(**args) end end - # Resource capturing the settings for Security Center. + # Resource capturing the settings for Security Center. Next ID: 12 class SecurityCenterSettings 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 fc5e1ca5e39..ce8f13c75bc 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.56.0" + GEM_VERSION = "0.57.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.12.0" # Revision of the discovery document this client was generated from - REVISION = "20231005" + REVISION = "20231023" 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 50eecf8ed2c..3b058bd4438 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 @@ -376,6 +376,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class OrgPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Pod class Representation < Google::Apis::Core::JsonRepresentation; end @@ -776,6 +782,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :mute_update_time, as: 'muteUpdateTime' property :name, as: 'name' property :next_steps, as: 'nextSteps' + collection :org_policies, as: 'orgPolicies', class: Google::Apis::SecuritycenterV1beta2::OrgPolicy, decorator: Google::Apis::SecuritycenterV1beta2::OrgPolicy::Representation + property :parent, as: 'parent' property :parent_display_name, as: 'parentDisplayName' collection :processes, as: 'processes', class: Google::Apis::SecuritycenterV1beta2::Process, decorator: Google::Apis::SecuritycenterV1beta2::Process::Representation @@ -1169,6 +1177,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class OrgPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + class Pod # @private class Representation < Google::Apis::Core::JsonRepresentation