Class: Google::Apis::OndemandscanningV1beta1::Envelope

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ondemandscanning_v1beta1/classes.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb,
lib/google/apis/ondemandscanning_v1beta1/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.



747
748
749
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 747

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)


735
736
737
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 735

def payload
  @payload
end

#payload_typeString

Corresponds to the JSON property payloadType

Returns:

  • (String)


740
741
742
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 740

def payload_type
  @payload_type
end

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

Corresponds to the JSON property signatures



745
746
747
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 745

def signatures
  @signatures
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



752
753
754
755
756
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 752

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