Class: Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetailsTotpParameters
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetailsTotpParameters
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Overview
Configuration for the key and value length. See https://www.rfc-editor.org/rfc/ rfc4226#section-5.3
Instance Attribute Summary collapse
-
#key ⇒ String
The secret key used for the TOTP value generation, encoded as a Base16 string.
-
#value_length ⇒ Fixnum
The length of the TOTP value in decimal digits.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RotatingBarcodeTotpDetailsTotpParameters
constructor
A new instance of RotatingBarcodeTotpDetailsTotpParameters.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RotatingBarcodeTotpDetailsTotpParameters
Returns a new instance of RotatingBarcodeTotpDetailsTotpParameters.
7226 7227 7228 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7226 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The secret key used for the TOTP value generation, encoded as a Base16 string.
Corresponds to the JSON property key
7219 7220 7221 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7219 def key @key end |
#value_length ⇒ Fixnum
The length of the TOTP value in decimal digits.
Corresponds to the JSON property valueLength
7224 7225 7226 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7224 def value_length @value_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7231 7232 7233 7234 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7231 def update!(**args) @key = args[:key] if args.key?(:key) @value_length = args[:value_length] if args.key?(:value_length) end |