Skip to content

Commit 27ac650

Browse files
feat: Automated regeneration of securitycenter v1beta1 client (googleapis#14439)
Auto-created at 2023-04-02 10:41:22 +0000 using the toys pull request generator.
1 parent 07f2500 commit 27ac650

File tree

4 files changed

+6
-414
lines changed

4 files changed

+6
-414
lines changed

generated/google-apis-securitycenter_v1beta1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-securitycenter_v1beta1
22

3+
### v0.50.0 (2023-04-02)
4+
5+
* Regenerated from discovery document revision 20230329
6+
37
### v0.49.0 (2023-03-26)
48

59
* Regenerated from discovery document revision 20230321

generated/google-apis-securitycenter_v1beta1/lib/google/apis/securitycenter_v1beta1/classes.rb

Lines changed: 0 additions & 293 deletions
Original file line numberDiff line numberDiff line change
@@ -264,38 +264,6 @@ def update!(**args)
264264
end
265265
end
266266

267-
# A finding that is associated with this node in the exposure path.
268-
class AssociatedFinding
269-
include Google::Apis::Core::Hashable
270-
271-
# Canonical name of the associated findings. Example: organizations/123/sources/
272-
# 456/findings/789
273-
# Corresponds to the JSON property `canonicalFindingName`
274-
# @return [String]
275-
attr_accessor :canonical_finding_name
276-
277-
# The additional taxonomy group within findings from a given source.
278-
# Corresponds to the JSON property `findingCategory`
279-
# @return [String]
280-
attr_accessor :finding_category
281-
282-
# Full resource name of the finding.
283-
# Corresponds to the JSON property `name`
284-
# @return [String]
285-
attr_accessor :name
286-
287-
def initialize(**args)
288-
update!(**args)
289-
end
290-
291-
# Update properties of this object
292-
def update!(**args)
293-
@canonical_finding_name = args[:canonical_finding_name] if args.key?(:canonical_finding_name)
294-
@finding_category = args[:finding_category] if args.key?(:finding_category)
295-
@name = args[:name] if args.key?(:name)
296-
end
297-
end
298-
299267
# Specifies the audit configuration for a service. The configuration determines
300268
# which permission types are logged, and what identities, if any, are exempted
301269
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -866,32 +834,6 @@ def update!(**args)
866834
end
867835
end
868836

869-
# Represents a connection between a source node and a destination node in this
870-
# exposure path.
871-
class Edge
872-
include Google::Apis::Core::Hashable
873-
874-
# This is the resource name of the destination node.
875-
# Corresponds to the JSON property `destination`
876-
# @return [String]
877-
attr_accessor :destination
878-
879-
# This is the resource name of the source node.
880-
# Corresponds to the JSON property `source`
881-
# @return [String]
882-
attr_accessor :source
883-
884-
def initialize(**args)
885-
update!(**args)
886-
end
887-
888-
# Update properties of this object
889-
def update!(**args)
890-
@destination = args[:destination] if args.key?(:destination)
891-
@source = args[:source] if args.key?(:source)
892-
end
893-
end
894-
895837
# A generic empty message that you can re-use to avoid defining duplicated empty
896838
# messages in your APIs. A typical example is to use it as the request or the
897839
# response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1296,12 +1238,6 @@ class Finding
12961238
# @return [String]
12971239
attr_accessor :next_steps
12981240

1299-
# Contains information about the org policy constraints associated with the
1300-
# finding.
1301-
# Corresponds to the JSON property `orgPolicyConstraints`
1302-
# @return [Array<Google::Apis::SecuritycenterV1beta1::OrgPolicyConstraint>]
1303-
attr_accessor :org_policy_constraints
1304-
13051241
# The relative resource name of the source the finding belongs to. See: https://
13061242
# cloud.google.com/apis/design/resource_names#relative_resource_name This field
13071243
# is immutable after creation time. For example: "organizations/`organization_id`
@@ -1397,7 +1333,6 @@ def update!(**args)
13971333
@mute_update_time = args[:mute_update_time] if args.key?(:mute_update_time)
13981334
@name = args[:name] if args.key?(:name)
13991335
@next_steps = args[:next_steps] if args.key?(:next_steps)
1400-
@org_policy_constraints = args[:org_policy_constraints] if args.key?(:org_policy_constraints)
14011336
@parent = args[:parent] if args.key?(:parent)
14021337
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
14031338
@processes = args[:processes] if args.key?(:processes)
@@ -1636,96 +1571,6 @@ def update!(**args)
16361571
end
16371572
end
16381573

1639-
# A resource that is exposed as a result of a finding.
1640-
class GoogleCloudSecuritycenterV1ExposedResource
1641-
include Google::Apis::Core::Hashable
1642-
1643-
# Human readable name of the resource that is exposed.
1644-
# Corresponds to the JSON property `displayName`
1645-
# @return [String]
1646-
attr_accessor :display_name
1647-
1648-
# The ways in which this resource is exposed. Examples: Read, Write
1649-
# Corresponds to the JSON property `methods`
1650-
# @return [Array<String>]
1651-
attr_accessor :methods_prop
1652-
1653-
# Exposed Resource Name e.g.: `organizations/123/attackExposureResults/456/
1654-
# exposedResources/789`
1655-
# Corresponds to the JSON property `name`
1656-
# @return [String]
1657-
attr_accessor :name
1658-
1659-
# The name of the resource that is exposed. See: https://cloud.google.com/apis/
1660-
# design/resource_names#full_resource_name
1661-
# Corresponds to the JSON property `resource`
1662-
# @return [String]
1663-
attr_accessor :resource
1664-
1665-
# The resource type of the exposed resource. See: https://cloud.google.com/asset-
1666-
# inventory/docs/supported-asset-types
1667-
# Corresponds to the JSON property `resourceType`
1668-
# @return [String]
1669-
attr_accessor :resource_type
1670-
1671-
# How valuable this resource is.
1672-
# Corresponds to the JSON property `resourceValue`
1673-
# @return [String]
1674-
attr_accessor :resource_value
1675-
1676-
def initialize(**args)
1677-
update!(**args)
1678-
end
1679-
1680-
# Update properties of this object
1681-
def update!(**args)
1682-
@display_name = args[:display_name] if args.key?(:display_name)
1683-
@methods_prop = args[:methods_prop] if args.key?(:methods_prop)
1684-
@name = args[:name] if args.key?(:name)
1685-
@resource = args[:resource] if args.key?(:resource)
1686-
@resource_type = args[:resource_type] if args.key?(:resource_type)
1687-
@resource_value = args[:resource_value] if args.key?(:resource_value)
1688-
end
1689-
end
1690-
1691-
# A path that an attacker could take to reach an exposed resource.
1692-
class GoogleCloudSecuritycenterV1ExposurePath
1693-
include Google::Apis::Core::Hashable
1694-
1695-
# A list of the edges between nodes in this exposure path.
1696-
# Corresponds to the JSON property `edges`
1697-
# @return [Array<Google::Apis::SecuritycenterV1beta1::Edge>]
1698-
attr_accessor :edges
1699-
1700-
# A resource that is exposed as a result of a finding.
1701-
# Corresponds to the JSON property `exposedResource`
1702-
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1ExposedResource]
1703-
attr_accessor :exposed_resource
1704-
1705-
# Exposure Path Name e.g.: `organizations/123/attackExposureResults/456/
1706-
# exposurePaths/789`
1707-
# Corresponds to the JSON property `name`
1708-
# @return [String]
1709-
attr_accessor :name
1710-
1711-
# A list of nodes that exist in this exposure path.
1712-
# Corresponds to the JSON property `pathNodes`
1713-
# @return [Array<Google::Apis::SecuritycenterV1beta1::PathNode>]
1714-
attr_accessor :path_nodes
1715-
1716-
def initialize(**args)
1717-
update!(**args)
1718-
end
1719-
1720-
# Update properties of this object
1721-
def update!(**args)
1722-
@edges = args[:edges] if args.key?(:edges)
1723-
@exposed_resource = args[:exposed_resource] if args.key?(:exposed_resource)
1724-
@name = args[:name] if args.key?(:name)
1725-
@path_nodes = args[:path_nodes] if args.key?(:path_nodes)
1726-
end
1727-
end
1728-
17291574
# Representation of third party SIEM/SOAR fields within SCC.
17301575
class GoogleCloudSecuritycenterV1ExternalSystem
17311576
include Google::Apis::Core::Hashable
@@ -1945,84 +1790,6 @@ def update!(**args)
19451790
end
19461791
end
19471792

1948-
# A resource value config is a mapping configuration of user's tag values to
1949-
# resource values. Used by the attack path simulation.
1950-
class GoogleCloudSecuritycenterV1ResourceValueConfig
1951-
include Google::Apis::Core::Hashable
1952-
1953-
# Output only. Timestamp this resource value config was created.
1954-
# Corresponds to the JSON property `createTime`
1955-
# @return [String]
1956-
attr_accessor :create_time
1957-
1958-
# Description of the resource value config.
1959-
# Corresponds to the JSON property `description`
1960-
# @return [String]
1961-
attr_accessor :description
1962-
1963-
# Name for the resource value config
1964-
# Corresponds to the JSON property `name`
1965-
# @return [String]
1966-
attr_accessor :name
1967-
1968-
# List of resource labels to search for, evaluated with AND. E.g. "
1969-
# resource_labels_selector": `"key": "value", "env": "prod"` will match
1970-
# resources with labels "key": "value" AND "env": "prod" https://cloud.google.
1971-
# com/resource-manager/docs/creating-managing-labels
1972-
# Corresponds to the JSON property `resourceLabelsSelector`
1973-
# @return [Hash<String,String>]
1974-
attr_accessor :resource_labels_selector
1975-
1976-
# Apply resource_value only to resources that match resource_type. resource_type
1977-
# will be checked with "AND" of other resources. E.g. "storage.googleapis.com/
1978-
# Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.
1979-
# googleapis.com/Bucket" resources.
1980-
# Corresponds to the JSON property `resourceType`
1981-
# @return [String]
1982-
attr_accessor :resource_type
1983-
1984-
# Required. Resource value level this expression represents
1985-
# Corresponds to the JSON property `resourceValue`
1986-
# @return [String]
1987-
attr_accessor :resource_value
1988-
1989-
# Project or folder to scope this config to. For example, "project/456" would
1990-
# apply this config only to resources in "project/456" scope will be checked
1991-
# with "AND" of other resources.
1992-
# Corresponds to the JSON property `scope`
1993-
# @return [String]
1994-
attr_accessor :scope
1995-
1996-
# Required. Tag values combined with AND to check against. Values in the form "
1997-
# tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
1998-
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
1999-
# Corresponds to the JSON property `tagValues`
2000-
# @return [Array<String>]
2001-
attr_accessor :tag_values
2002-
2003-
# Output only. Timestamp this resource value config was last updated.
2004-
# Corresponds to the JSON property `updateTime`
2005-
# @return [String]
2006-
attr_accessor :update_time
2007-
2008-
def initialize(**args)
2009-
update!(**args)
2010-
end
2011-
2012-
# Update properties of this object
2013-
def update!(**args)
2014-
@create_time = args[:create_time] if args.key?(:create_time)
2015-
@description = args[:description] if args.key?(:description)
2016-
@name = args[:name] if args.key?(:name)
2017-
@resource_labels_selector = args[:resource_labels_selector] if args.key?(:resource_labels_selector)
2018-
@resource_type = args[:resource_type] if args.key?(:resource_type)
2019-
@resource_value = args[:resource_value] if args.key?(:resource_value)
2020-
@scope = args[:scope] if args.key?(:scope)
2021-
@tag_values = args[:tag_values] if args.key?(:tag_values)
2022-
@update_time = args[:update_time] if args.key?(:update_time)
2023-
end
2024-
end
2025-
20261793
# Response of asset discovery run
20271794
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
20281795
include Google::Apis::Core::Hashable
@@ -3319,26 +3086,6 @@ def update!(**args)
33193086
end
33203087
end
33213088

3322-
# Encapsulates data about a constraint associated with an organization policy.
3323-
class OrgPolicyConstraint
3324-
include Google::Apis::Core::Hashable
3325-
3326-
# The resource name of the constraint. Example: "organizations/`organization_id`/
3327-
# constraints/`constraint_name`"
3328-
# Corresponds to the JSON property `name`
3329-
# @return [String]
3330-
attr_accessor :name
3331-
3332-
def initialize(**args)
3333-
update!(**args)
3334-
end
3335-
3336-
# Update properties of this object
3337-
def update!(**args)
3338-
@name = args[:name] if args.key?(:name)
3339-
end
3340-
end
3341-
33423089
# User specified settings that are attached to the Security Command Center
33433090
# organization.
33443091
class OrganizationSettings
@@ -3376,46 +3123,6 @@ def update!(**args)
33763123
end
33773124
end
33783125

3379-
# Represents one point that an attacker passes through in this exposure path.
3380-
class PathNode
3381-
include Google::Apis::Core::Hashable
3382-
3383-
# The findings associated with this node in the exposure path.
3384-
# Corresponds to the JSON property `associatedFindings`
3385-
# @return [Array<Google::Apis::SecuritycenterV1beta1::AssociatedFinding>]
3386-
attr_accessor :associated_findings
3387-
3388-
# Human readable name of this resource.
3389-
# Corresponds to the JSON property `displayName`
3390-
# @return [String]
3391-
attr_accessor :display_name
3392-
3393-
# The name of the resource at this point in the exposure path. The format of the
3394-
# name is: https://cloud.google.com/apis/design/resource_names#
3395-
# full_resource_name
3396-
# Corresponds to the JSON property `resource`
3397-
# @return [String]
3398-
attr_accessor :resource
3399-
3400-
# The resource type of this resource. See: https://cloud.google.com/asset-
3401-
# inventory/docs/supported-asset-types
3402-
# Corresponds to the JSON property `resourceType`
3403-
# @return [String]
3404-
attr_accessor :resource_type
3405-
3406-
def initialize(**args)
3407-
update!(**args)
3408-
end
3409-
3410-
# Update properties of this object
3411-
def update!(**args)
3412-
@associated_findings = args[:associated_findings] if args.key?(:associated_findings)
3413-
@display_name = args[:display_name] if args.key?(:display_name)
3414-
@resource = args[:resource] if args.key?(:resource)
3415-
@resource_type = args[:resource_type] if args.key?(:resource_type)
3416-
end
3417-
end
3418-
34193126
# Kubernetes Pod.
34203127
class Pod
34213128
include Google::Apis::Core::Hashable

generated/google-apis-securitycenter_v1beta1/lib/google/apis/securitycenter_v1beta1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module SecuritycenterV1beta1
1818
# Version of the google-apis-securitycenter_v1beta1 gem
19-
GEM_VERSION = "0.49.0"
19+
GEM_VERSION = "0.50.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.12.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20230321"
25+
REVISION = "20230329"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)