Skip to content

Commit

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

Auto-created at 2023-04-02 10:41:22 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Apr 2, 2023
1 parent 07f2500 commit 27ac650
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 414 deletions.
4 changes: 4 additions & 0 deletions generated/google-apis-securitycenter_v1beta1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-securitycenter_v1beta1

### v0.50.0 (2023-04-02)

* Regenerated from discovery document revision 20230329

### v0.49.0 (2023-03-26)

* Regenerated from discovery document revision 20230321
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,38 +264,6 @@ def update!(**args)
end
end

# A finding that is associated with this node in the exposure path.
class AssociatedFinding
include Google::Apis::Core::Hashable

# Canonical name of the associated findings. Example: organizations/123/sources/
# 456/findings/789
# Corresponds to the JSON property `canonicalFindingName`
# @return [String]
attr_accessor :canonical_finding_name

# The additional taxonomy group within findings from a given source.
# Corresponds to the JSON property `findingCategory`
# @return [String]
attr_accessor :finding_category

# Full resource name of the finding.
# 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)
@canonical_finding_name = args[:canonical_finding_name] if args.key?(:canonical_finding_name)
@finding_category = args[:finding_category] if args.key?(:finding_category)
@name = args[:name] if args.key?(:name)
end
end

# Specifies the audit configuration for a service. The configuration determines
# which permission types are logged, and what identities, if any, are exempted
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
Expand Down Expand Up @@ -866,32 +834,6 @@ def update!(**args)
end
end

# Represents a connection between a source node and a destination node in this
# exposure path.
class Edge
include Google::Apis::Core::Hashable

# This is the resource name of the destination node.
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :destination

# This is the resource name of the source node.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@destination = args[:destination] if args.key?(:destination)
@source = args[:source] if args.key?(:source)
end
end

# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
Expand Down Expand Up @@ -1296,12 +1238,6 @@ class Finding
# @return [String]
attr_accessor :next_steps

# Contains information about the org policy constraints associated with the
# finding.
# Corresponds to the JSON property `orgPolicyConstraints`
# @return [Array<Google::Apis::SecuritycenterV1beta1::OrgPolicyConstraint>]
attr_accessor :org_policy_constraints

# 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 @@ -1397,7 +1333,6 @@ 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_policy_constraints = args[:org_policy_constraints] if args.key?(:org_policy_constraints)
@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 @@ -1636,96 +1571,6 @@ def update!(**args)
end
end

# A resource that is exposed as a result of a finding.
class GoogleCloudSecuritycenterV1ExposedResource
include Google::Apis::Core::Hashable

# Human readable name of the resource that is exposed.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name

# The ways in which this resource is exposed. Examples: Read, Write
# Corresponds to the JSON property `methods`
# @return [Array<String>]
attr_accessor :methods_prop

# Exposed Resource Name e.g.: `organizations/123/attackExposureResults/456/
# exposedResources/789`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# The name of the resource that is exposed. See: https://cloud.google.com/apis/
# design/resource_names#full_resource_name
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource

# The resource type of the exposed resource. See: https://cloud.google.com/asset-
# inventory/docs/supported-asset-types
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type

# How valuable this resource is.
# Corresponds to the JSON property `resourceValue`
# @return [String]
attr_accessor :resource_value

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@methods_prop = args[:methods_prop] if args.key?(:methods_prop)
@name = args[:name] if args.key?(:name)
@resource = args[:resource] if args.key?(:resource)
@resource_type = args[:resource_type] if args.key?(:resource_type)
@resource_value = args[:resource_value] if args.key?(:resource_value)
end
end

# A path that an attacker could take to reach an exposed resource.
class GoogleCloudSecuritycenterV1ExposurePath
include Google::Apis::Core::Hashable

# A list of the edges between nodes in this exposure path.
# Corresponds to the JSON property `edges`
# @return [Array<Google::Apis::SecuritycenterV1beta1::Edge>]
attr_accessor :edges

# A resource that is exposed as a result of a finding.
# Corresponds to the JSON property `exposedResource`
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1ExposedResource]
attr_accessor :exposed_resource

# Exposure Path Name e.g.: `organizations/123/attackExposureResults/456/
# exposurePaths/789`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# A list of nodes that exist in this exposure path.
# Corresponds to the JSON property `pathNodes`
# @return [Array<Google::Apis::SecuritycenterV1beta1::PathNode>]
attr_accessor :path_nodes

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@edges = args[:edges] if args.key?(:edges)
@exposed_resource = args[:exposed_resource] if args.key?(:exposed_resource)
@name = args[:name] if args.key?(:name)
@path_nodes = args[:path_nodes] if args.key?(:path_nodes)
end
end

# Representation of third party SIEM/SOAR fields within SCC.
class GoogleCloudSecuritycenterV1ExternalSystem
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -1945,84 +1790,6 @@ def update!(**args)
end
end

# A resource value config is a mapping configuration of user's tag values to
# resource values. Used by the attack path simulation.
class GoogleCloudSecuritycenterV1ResourceValueConfig
include Google::Apis::Core::Hashable

# Output only. Timestamp this resource value config was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time

# Description of the resource value config.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description

# Name for the resource value config
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# List of resource labels to search for, evaluated with AND. E.g. "
# resource_labels_selector": `"key": "value", "env": "prod"` will match
# resources with labels "key": "value" AND "env": "prod" https://cloud.google.
# com/resource-manager/docs/creating-managing-labels
# Corresponds to the JSON property `resourceLabelsSelector`
# @return [Hash<String,String>]
attr_accessor :resource_labels_selector

# Apply resource_value only to resources that match resource_type. resource_type
# will be checked with "AND" of other resources. E.g. "storage.googleapis.com/
# Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.
# googleapis.com/Bucket" resources.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type

# Required. Resource value level this expression represents
# Corresponds to the JSON property `resourceValue`
# @return [String]
attr_accessor :resource_value

# Project or folder to scope this config to. For example, "project/456" would
# apply this config only to resources in "project/456" scope will be checked
# with "AND" of other resources.
# Corresponds to the JSON property `scope`
# @return [String]
attr_accessor :scope

# Required. Tag values combined with AND to check against. Values in the form "
# tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
# Corresponds to the JSON property `tagValues`
# @return [Array<String>]
attr_accessor :tag_values

# Output only. Timestamp this resource value config was last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@resource_labels_selector = args[:resource_labels_selector] if args.key?(:resource_labels_selector)
@resource_type = args[:resource_type] if args.key?(:resource_type)
@resource_value = args[:resource_value] if args.key?(:resource_value)
@scope = args[:scope] if args.key?(:scope)
@tag_values = args[:tag_values] if args.key?(:tag_values)
@update_time = args[:update_time] if args.key?(:update_time)
end
end

# Response of asset discovery run
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -3319,26 +3086,6 @@ def update!(**args)
end
end

# Encapsulates data about a constraint associated with an organization policy.
class OrgPolicyConstraint
include Google::Apis::Core::Hashable

# The resource name of the constraint. Example: "organizations/`organization_id`/
# constraints/`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

# User specified settings that are attached to the Security Command Center
# organization.
class OrganizationSettings
Expand Down Expand Up @@ -3376,46 +3123,6 @@ def update!(**args)
end
end

# Represents one point that an attacker passes through in this exposure path.
class PathNode
include Google::Apis::Core::Hashable

# The findings associated with this node in the exposure path.
# Corresponds to the JSON property `associatedFindings`
# @return [Array<Google::Apis::SecuritycenterV1beta1::AssociatedFinding>]
attr_accessor :associated_findings

# Human readable name of this resource.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name

# The name of the resource at this point in the exposure path. The format of the
# name is: https://cloud.google.com/apis/design/resource_names#
# full_resource_name
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource

# The resource type of this resource. See: https://cloud.google.com/asset-
# inventory/docs/supported-asset-types
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@associated_findings = args[:associated_findings] if args.key?(:associated_findings)
@display_name = args[:display_name] if args.key?(:display_name)
@resource = args[:resource] if args.key?(:resource)
@resource_type = args[:resource_type] if args.key?(:resource_type)
end
end

# Kubernetes Pod.
class Pod
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 SecuritycenterV1beta1
# Version of the google-apis-securitycenter_v1beta1 gem
GEM_VERSION = "0.49.0"
GEM_VERSION = "0.50.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 = "20230321"
REVISION = "20230329"
end
end
end
Loading

0 comments on commit 27ac650

Please sign in to comment.