Skip to content

Commit

Permalink
feat: Automated regeneration of securitycenter v1beta2 client (google…
Browse files Browse the repository at this point in the history
…apis#16568)

Auto-created at 2023-10-29 10:48:17 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Oct 29, 2023
1 parent a9f27b2 commit 2b79e4f
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 4 deletions.
4 changes: 4 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-securitycenter_v1beta2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Google::Apis::SecuritycenterV1beta2::OrgPolicy>]
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`
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b79e4f

Please sign in to comment.