Class: Google::Apis::ContaineranalysisV1::Envelope

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1/classes.rb,
lib/google/apis/containeranalysis_v1/representations.rb,
lib/google/apis/containeranalysis_v1/representations.rb

Overview

MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope. proto. An authenticated message of arbitrary type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Envelope

Returns a new instance of Envelope.



2648
2649
2650
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2648

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

Instance Attribute Details

#payloadString

Corresponds to the JSON property payload NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2636
2637
2638
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2636

def payload
  @payload
end

#payload_typeString

Corresponds to the JSON property payloadType

Returns:

  • (String)


2641
2642
2643
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2641

def payload_type
  @payload_type
end

#signaturesArray<Google::Apis::ContaineranalysisV1::EnvelopeSignature>

Corresponds to the JSON property signatures



2646
2647
2648
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2646

def signatures
  @signatures
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2653
2654
2655
2656
2657
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2653

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