Skip to content

Commit

Permalink
feat: Automated regeneration of ondemandscanning v1beta1 client (#18964)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-05 10:28:21 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored May 5, 2024
1 parent df1c34d commit fe03899
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 2 deletions.
5 changes: 5 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -271167,6 +271167,11 @@
"/ondemandscanning:v1beta1/ComplianceOccurrence/nonComplianceReason": non_compliance_reason
"/ondemandscanning:v1beta1/ComplianceOccurrence/nonCompliantFiles": non_compliant_files
"/ondemandscanning:v1beta1/ComplianceOccurrence/nonCompliantFiles/non_compliant_file": non_compliant_file
"/ondemandscanning:v1beta1/ComplianceOccurrence/version": version
"/ondemandscanning:v1beta1/ComplianceVersion": compliance_version
"/ondemandscanning:v1beta1/ComplianceVersion/benchmarkDocument": benchmark_document
"/ondemandscanning:v1beta1/ComplianceVersion/cpeUri": cpe_uri
"/ondemandscanning:v1beta1/ComplianceVersion/version": version
"/ondemandscanning:v1beta1/DSSEAttestationOccurrence": dsse_attestation_occurrence
"/ondemandscanning:v1beta1/DSSEAttestationOccurrence/envelope": envelope
"/ondemandscanning:v1beta1/DSSEAttestationOccurrence/statement": statement
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-ondemandscanning_v1beta1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-ondemandscanning_v1beta1

### v0.46.0 (2024-05-05)

* Regenerated from discovery document revision 20240429

### v0.45.0 (2024-02-24)

* Regenerated using generator version 0.14.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,12 @@ class ComplianceOccurrence
# @return [Array<Google::Apis::OndemandscanningV1beta1::NonCompliantFile>]
attr_accessor :non_compliant_files

# Describes the CIS benchmark version that is applicable to a given OS and os
# version.
# Corresponds to the JSON property `version`
# @return [Google::Apis::OndemandscanningV1beta1::ComplianceVersion]
attr_accessor :version

def initialize(**args)
update!(**args)
end
Expand All @@ -797,6 +803,42 @@ def initialize(**args)
def update!(**args)
@non_compliance_reason = args[:non_compliance_reason] if args.key?(:non_compliance_reason)
@non_compliant_files = args[:non_compliant_files] if args.key?(:non_compliant_files)
@version = args[:version] if args.key?(:version)
end
end

# Describes the CIS benchmark version that is applicable to a given OS and os
# version.
class ComplianceVersion
include Google::Apis::Core::Hashable

# The name of the document that defines this benchmark, e.g. "CIS Container-
# Optimized OS".
# Corresponds to the JSON property `benchmarkDocument`
# @return [String]
attr_accessor :benchmark_document

# The CPE URI (https://cpe.mitre.org/specification/) this benchmark is
# applicable to.
# Corresponds to the JSON property `cpeUri`
# @return [String]
attr_accessor :cpe_uri

# The version of the benchmark. This is set to the version of the OS-specific
# CIS document the benchmark is defined in.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module OndemandscanningV1beta1
# Version of the google-apis-ondemandscanning_v1beta1 gem
GEM_VERSION = "0.45.0"
GEM_VERSION = "0.46.0"

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

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

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

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

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

Expand Down Expand Up @@ -792,6 +798,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :non_compliance_reason, as: 'nonComplianceReason'
collection :non_compliant_files, as: 'nonCompliantFiles', class: Google::Apis::OndemandscanningV1beta1::NonCompliantFile, decorator: Google::Apis::OndemandscanningV1beta1::NonCompliantFile::Representation

property :version, as: 'version', class: Google::Apis::OndemandscanningV1beta1::ComplianceVersion, decorator: Google::Apis::OndemandscanningV1beta1::ComplianceVersion::Representation

end
end

class ComplianceVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :benchmark_document, as: 'benchmarkDocument'
property :cpe_uri, as: 'cpeUri'
property :version, as: 'version'
end
end

Expand Down

0 comments on commit fe03899

Please sign in to comment.