Class: Google::Apis::VerifiedaccessV1::SignedData

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/verifiedaccess_v1/classes.rb,
generated/google/apis/verifiedaccess_v1/representations.rb,
generated/google/apis/verifiedaccess_v1/representations.rb

Overview

The wrapper message of any data and its signature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SignedData

Returns a new instance of SignedData.



85
86
87
# File 'generated/google/apis/verifiedaccess_v1/classes.rb', line 85

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

Instance Attribute Details

#dataString

The data to be signed. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


77
78
79
# File 'generated/google/apis/verifiedaccess_v1/classes.rb', line 77

def data
  @data
end

#signatureString

The signature of the data field. Corresponds to the JSON property signature NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


83
84
85
# File 'generated/google/apis/verifiedaccess_v1/classes.rb', line 83

def signature
  @signature
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



90
91
92
93
# File 'generated/google/apis/verifiedaccess_v1/classes.rb', line 90

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @signature = args[:signature] if args.key?(:signature)
end