Skip to content

Commit

Permalink
feat: Automated regeneration of containeranalysis v1alpha1 client (go…
Browse files Browse the repository at this point in the history
…ogleapis#14426)

Auto-created at 2023-04-02 10:23:43 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Apr 2, 2023
1 parent 9b337ee commit ad56e46
Show file tree
Hide file tree
Showing 5 changed files with 250 additions and 2 deletions.
22 changes: 22 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86377,6 +86377,7 @@
"/containeranalysis:v1alpha1/Note/relatedUrl": related_url
"/containeranalysis:v1alpha1/Note/relatedUrl/related_url": related_url
"/containeranalysis:v1alpha1/Note/sbom": sbom
"/containeranalysis:v1alpha1/Note/sbomReference": sbom_reference
"/containeranalysis:v1alpha1/Note/shortDescription": short_description
"/containeranalysis:v1alpha1/Note/spdxFile": spdx_file
"/containeranalysis:v1alpha1/Note/spdxPackage": spdx_package
Expand All @@ -86403,6 +86404,7 @@
"/containeranalysis:v1alpha1/Occurrence/resource": resource
"/containeranalysis:v1alpha1/Occurrence/resourceUrl": resource_url
"/containeranalysis:v1alpha1/Occurrence/sbom": sbom
"/containeranalysis:v1alpha1/Occurrence/sbomReference": sbom_reference
"/containeranalysis:v1alpha1/Occurrence/spdxFile": spdx_file
"/containeranalysis:v1alpha1/Occurrence/spdxPackage": spdx_package
"/containeranalysis:v1alpha1/Occurrence/spdxRelationship": spdx_relationship
Expand Down Expand Up @@ -86550,6 +86552,26 @@
"/containeranalysis:v1alpha1/Resource/contentHash": content_hash
"/containeranalysis:v1alpha1/Resource/name": name
"/containeranalysis:v1alpha1/Resource/uri": uri
"/containeranalysis:v1alpha1/SBOMReferenceNote": sbom_reference_note
"/containeranalysis:v1alpha1/SBOMReferenceNote/format": format
"/containeranalysis:v1alpha1/SBOMReferenceNote/version": version
"/containeranalysis:v1alpha1/SBOMReferenceOccurrence": sbom_reference_occurrence
"/containeranalysis:v1alpha1/SBOMReferenceOccurrence/payload": payload
"/containeranalysis:v1alpha1/SBOMReferenceOccurrence/payloadType": payload_type
"/containeranalysis:v1alpha1/SBOMReferenceOccurrence/signatures": signatures
"/containeranalysis:v1alpha1/SBOMReferenceOccurrence/signatures/signature": signature
"/containeranalysis:v1alpha1/SbomReferenceIntotoPayload": sbom_reference_intoto_payload
"/containeranalysis:v1alpha1/SbomReferenceIntotoPayload/_type": _type
"/containeranalysis:v1alpha1/SbomReferenceIntotoPayload/predicate": predicate
"/containeranalysis:v1alpha1/SbomReferenceIntotoPayload/predicateType": predicate_type
"/containeranalysis:v1alpha1/SbomReferenceIntotoPayload/subject": subject
"/containeranalysis:v1alpha1/SbomReferenceIntotoPayload/subject/subject": subject
"/containeranalysis:v1alpha1/SbomReferenceIntotoPredicate": sbom_reference_intoto_predicate
"/containeranalysis:v1alpha1/SbomReferenceIntotoPredicate/digest": digest
"/containeranalysis:v1alpha1/SbomReferenceIntotoPredicate/digest/digest": digest
"/containeranalysis:v1alpha1/SbomReferenceIntotoPredicate/location": location
"/containeranalysis:v1alpha1/SbomReferenceIntotoPredicate/mimeType": mime_type
"/containeranalysis:v1alpha1/SbomReferenceIntotoPredicate/referrerId": referrer_id
"/containeranalysis:v1alpha1/ScanConfig": scan_config
"/containeranalysis:v1alpha1/ScanConfig/createTime": create_time
"/containeranalysis:v1alpha1/ScanConfig/description": description
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-containeranalysis_v1alpha1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-containeranalysis_v1alpha1

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

* Regenerated from discovery document revision 20230324

### v0.45.0 (2023-03-19)

* Regenerated from discovery document revision 20230310
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4584,6 +4584,11 @@ class Note
# @return [Google::Apis::ContaineranalysisV1alpha1::DocumentNote]
attr_accessor :sbom

# The note representing an SBOM reference.
# Corresponds to the JSON property `sbomReference`
# @return [Google::Apis::ContaineranalysisV1alpha1::SbomReferenceNote]
attr_accessor :sbom_reference

# A one sentence description of this `Note`.
# Corresponds to the JSON property `shortDescription`
# @return [String]
Expand Down Expand Up @@ -4654,6 +4659,7 @@ def update!(**args)
@package = args[:package] if args.key?(:package)
@related_url = args[:related_url] if args.key?(:related_url)
@sbom = args[:sbom] if args.key?(:sbom)
@sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
@short_description = args[:short_description] if args.key?(:short_description)
@spdx_file = args[:spdx_file] if args.key?(:spdx_file)
@spdx_package = args[:spdx_package] if args.key?(:spdx_package)
Expand Down Expand Up @@ -4771,6 +4777,13 @@ class Occurrence
# @return [Google::Apis::ContaineranalysisV1alpha1::DocumentOccurrence]
attr_accessor :sbom

# The occurrence representing an SBOM reference as applied to a specific
# resource. The occurrence follows the DSSE specification. See https://github.
# com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
# Corresponds to the JSON property `sbomReference`
# @return [Google::Apis::ContaineranalysisV1alpha1::SbomReferenceOccurrence]
attr_accessor :sbom_reference

# FileOccurrence represents an SPDX File Information section: https://spdx.
# github.io/spdx-spec/4-file-information/
# Corresponds to the JSON property `spdxFile`
Expand Down Expand Up @@ -4830,6 +4843,7 @@ def update!(**args)
@resource = args[:resource] if args.key?(:resource)
@resource_url = args[:resource_url] if args.key?(:resource_url)
@sbom = args[:sbom] if args.key?(:sbom)
@sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
@spdx_file = args[:spdx_file] if args.key?(:spdx_file)
@spdx_package = args[:spdx_package] if args.key?(:spdx_package)
@spdx_relationship = args[:spdx_relationship] if args.key?(:spdx_relationship)
Expand Down Expand Up @@ -5716,6 +5730,145 @@ def update!(**args)
end
end

# The note representing an SBOM reference.
class SbomReferenceNote
include Google::Apis::Core::Hashable

# The format that SBOM takes. E.g. may be spdx, cyclonedx, etc...
# Corresponds to the JSON property `format`
# @return [String]
attr_accessor :format

# The version of the format that the SBOM takes. E.g. if the format is spdx, the
# version may be 2.3.
# 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)
@format = args[:format] if args.key?(:format)
@version = args[:version] if args.key?(:version)
end
end

# The occurrence representing an SBOM reference as applied to a specific
# resource. The occurrence follows the DSSE specification. See https://github.
# com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
class SbomReferenceOccurrence
include Google::Apis::Core::Hashable

# The actual payload that contains the SBOM Reference data. The payload follows
# the intoto statement specification. See https://github.com/in-toto/attestation/
# blob/main/spec/v1.0/statement.md for more details.
# Corresponds to the JSON property `payload`
# @return [Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPayload]
attr_accessor :payload

# The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the
# intoto format, this value is expected to be 'application/vnd.in-toto+json'.
# Corresponds to the JSON property `payloadType`
# @return [String]
attr_accessor :payload_type

# The signatures over the payload.
# Corresponds to the JSON property `signatures`
# @return [Array<Google::Apis::ContaineranalysisV1alpha1::EnvelopeSignature>]
attr_accessor :signatures

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

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

# The actual payload that contains the SBOM Reference data. The payload follows
# the intoto statement specification. See https://github.com/in-toto/attestation/
# blob/main/spec/v1.0/statement.md for more details.
class SbomReferenceIntotoPayload
include Google::Apis::Core::Hashable

# Identifier for the schema of the Statement.
# Corresponds to the JSON property `_type`
# @return [String]
attr_accessor :_type

# A predicate which describes the SBOM being referenced.
# Corresponds to the JSON property `predicate`
# @return [Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPredicate]
attr_accessor :predicate

# URI identifying the type of the Predicate.
# Corresponds to the JSON property `predicateType`
# @return [String]
attr_accessor :predicate_type

# Set of software artifacts that the attestation applies to. Each element
# represents a single software artifact.
# Corresponds to the JSON property `subject`
# @return [Array<Google::Apis::ContaineranalysisV1alpha1::Subject>]
attr_accessor :subject

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

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

# A predicate which describes the SBOM being referenced.
class SbomReferenceIntotoPredicate
include Google::Apis::Core::Hashable

# A map of algorithm to digest of the contents of the SBOM.
# Corresponds to the JSON property `digest`
# @return [Hash<String,String>]
attr_accessor :digest

# The location of the SBOM.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location

# The mime type of the SBOM.
# Corresponds to the JSON property `mimeType`
# @return [String]
attr_accessor :mime_type

# The person or system referring this predicate to the consumer.
# Corresponds to the JSON property `referrerId`
# @return [String]
attr_accessor :referrer_id

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

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

# Indicates various scans and whether they are turned on or off.
class ScanConfig
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 ContaineranalysisV1alpha1
# Version of the google-apis-containeranalysis_v1alpha1 gem
GEM_VERSION = "0.45.0"
GEM_VERSION = "0.46.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 = "20230310"
REVISION = "20230324"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

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

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

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

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

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

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

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

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

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

Expand Down Expand Up @@ -2142,6 +2166,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :sbom, as: 'sbom', class: Google::Apis::ContaineranalysisV1alpha1::DocumentNote, decorator: Google::Apis::ContaineranalysisV1alpha1::DocumentNote::Representation

property :sbom_reference, as: 'sbomReference', class: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceNote, decorator: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceNote::Representation

property :short_description, as: 'shortDescription'
property :spdx_file, as: 'spdxFile', class: Google::Apis::ContaineranalysisV1alpha1::FileNote, decorator: Google::Apis::ContaineranalysisV1alpha1::FileNote::Representation

Expand Down Expand Up @@ -2190,6 +2216,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :resource_url, as: 'resourceUrl'
property :sbom, as: 'sbom', class: Google::Apis::ContaineranalysisV1alpha1::DocumentOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::DocumentOccurrence::Representation

property :sbom_reference, as: 'sbomReference', class: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceOccurrence::Representation

property :spdx_file, as: 'spdxFile', class: Google::Apis::ContaineranalysisV1alpha1::FileOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::FileOccurrence::Representation

property :spdx_package, as: 'spdxPackage', class: Google::Apis::ContaineranalysisV1alpha1::PackageInfoOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::PackageInfoOccurrence::Representation
Expand Down Expand Up @@ -2397,6 +2425,47 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class SbomReferenceNote
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :format, as: 'format'
property :version, as: 'version'
end
end

class SbomReferenceOccurrence
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :payload, as: 'payload', class: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPayload, decorator: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPayload::Representation

property :payload_type, as: 'payloadType'
collection :signatures, as: 'signatures', class: Google::Apis::ContaineranalysisV1alpha1::EnvelopeSignature, decorator: Google::Apis::ContaineranalysisV1alpha1::EnvelopeSignature::Representation

end
end

class SbomReferenceIntotoPayload
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :_type, as: '_type'
property :predicate, as: 'predicate', class: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPredicate, decorator: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPredicate::Representation

property :predicate_type, as: 'predicateType'
collection :subject, as: 'subject', class: Google::Apis::ContaineranalysisV1alpha1::Subject, decorator: Google::Apis::ContaineranalysisV1alpha1::Subject::Representation

end
end

class SbomReferenceIntotoPredicate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :digest, as: 'digest'
property :location, as: 'location'
property :mime_type, as: 'mimeType'
property :referrer_id, as: 'referrerId'
end
end

class ScanConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit ad56e46

Please sign in to comment.