Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of securitycenter v1 client #20468

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions generated/google-apis-securitycenter_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-securitycenter_v1

### v0.89.0 (2024-10-27)

* Regenerated from discovery document revision 20241018

### v0.88.0 (2024-10-06)

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

# YAML-based rule that uses CEL, which supports the declaration of variables and
# a filtering predicate. A vulnerable resource is emitted if the evaluation is
# false. Given: 1) the resource types as: - resource_types: "compute.googleapis.
# com/Instance" - resource_types: "compute.googleapis.com/Firewall" 2) the CEL
# policy spec as: name: bad_instance resource_filters: - name: instance
# resource_type: compute.googleapis.com/Instance filter: > instance.status == '
# RUNNING' && 'public' in instance.tags.items - name: firewall resource_type:
# compute.googleapis.com/Firewall filter: > firewall.direction == 'INGRESS' && !
# firewall.disabled && firewall.allowed.exists(rule, rule.IPProtocol.upperAscii()
# in ['TCP', 'ALL'] && rule.ports.exists(port, network.portsInRange(port, '11-
# 256'))) rule: match: - predicate: > instance.networkInterfaces.exists(net,
# firewall.network == net.network) output: > `'message': 'Compute instance with
# publicly accessible ports', 'instance': instance.name` Users are able to join
# resource types together using the exact format as Kubernetes Validating
# Admission policies.
class CelPolicySpec
include Google::Apis::Core::Hashable

# The CEL policy to evaluate to produce findings. A finding is generated when
# the policy validation evaluates to false.
# Corresponds to the JSON property `spec`
# @return [String]
attr_accessor :spec

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

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

# Fields related to Google Cloud Armor findings.
class CloudArmor
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -3135,25 +3101,6 @@ def update!(**args)
class GoogleCloudSecuritycenterV1CustomConfig
include Google::Apis::Core::Hashable

# YAML-based rule that uses CEL, which supports the declaration of variables and
# a filtering predicate. A vulnerable resource is emitted if the evaluation is
# false. Given: 1) the resource types as: - resource_types: "compute.googleapis.
# com/Instance" - resource_types: "compute.googleapis.com/Firewall" 2) the CEL
# policy spec as: name: bad_instance resource_filters: - name: instance
# resource_type: compute.googleapis.com/Instance filter: > instance.status == '
# RUNNING' && 'public' in instance.tags.items - name: firewall resource_type:
# compute.googleapis.com/Firewall filter: > firewall.direction == 'INGRESS' && !
# firewall.disabled && firewall.allowed.exists(rule, rule.IPProtocol.upperAscii()
# in ['TCP', 'ALL'] && rule.ports.exists(port, network.portsInRange(port, '11-
# 256'))) rule: match: - predicate: > instance.networkInterfaces.exists(net,
# firewall.network == net.network) output: > `'message': 'Compute instance with
# publicly accessible ports', 'instance': instance.name` Users are able to join
# resource types together using the exact format as Kubernetes Validating
# Admission policies.
# Corresponds to the JSON property `celPolicy`
# @return [Google::Apis::SecuritycenterV1::CelPolicySpec]
attr_accessor :cel_policy

# A set of optional name-value pairs that define custom source properties to
# return with each finding that is generated by the custom module. The custom
# source properties that are defined here are included in the finding JSON under
Expand Down Expand Up @@ -3212,7 +3159,6 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@cel_policy = args[:cel_policy] if args.key?(:cel_policy)
@custom_output = args[:custom_output] if args.key?(:custom_output)
@description = args[:description] if args.key?(:description)
@predicate = args[:predicate] if args.key?(:predicate)
Expand Down Expand Up @@ -10669,7 +10615,8 @@ def update!(**args)
class SetFindingStateRequest
include Google::Apis::Core::Hashable

# Required. The time at which the updated state takes effect.
# Optional. The time at which the updated state takes effect. If unset, defaults
# to the request time.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module SecuritycenterV1
# Version of the google-apis-securitycenter_v1 gem
GEM_VERSION = "0.88.0"
GEM_VERSION = "0.89.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.1"

# Revision of the discovery document this client was generated from
REVISION = "20240926"
REVISION = "20241018"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class CelPolicySpec
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class CloudArmor
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -1882,13 +1876,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class CelPolicySpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :spec, as: 'spec'
end
end

class CloudArmor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -2366,8 +2353,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
class GoogleCloudSecuritycenterV1CustomConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cel_policy, as: 'celPolicy', class: Google::Apis::SecuritycenterV1::CelPolicySpec, decorator: Google::Apis::SecuritycenterV1::CelPolicySpec::Representation

property :custom_output, as: 'customOutput', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomOutputSpec, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomOutputSpec::Representation

property :description, as: 'description'
Expand Down
Loading