Class: Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetails
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetails
- 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 time-based OTP substitutions. See https://tools.ietf.org/ html/rfc6238
Instance Attribute Summary collapse
-
#algorithm ⇒ String
The TOTP algorithm used to generate the OTP.
-
#parameters ⇒ Array<Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetailsTotpParameters>
The TOTP parameters for each of the
totp_value_*
substitutions. -
#period_millis ⇒ Fixnum
The time interval used for the TOTP value generation, in milliseconds.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RotatingBarcodeTotpDetails
constructor
A new instance of RotatingBarcodeTotpDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RotatingBarcodeTotpDetails
Returns a new instance of RotatingBarcodeTotpDetails.
7199 7200 7201 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7199 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algorithm ⇒ String
The TOTP algorithm used to generate the OTP.
Corresponds to the JSON property algorithm
7186 7187 7188 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7186 def algorithm @algorithm end |
#parameters ⇒ Array<Google::Apis::WalletobjectsV1::RotatingBarcodeTotpDetailsTotpParameters>
The TOTP parameters for each of the totp_value_*
substitutions. The
TotpParameters at index n is used for the totp_value_n
substitution.
Corresponds to the JSON property parameters
7192 7193 7194 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7192 def parameters @parameters end |
#period_millis ⇒ Fixnum
The time interval used for the TOTP value generation, in milliseconds.
Corresponds to the JSON property periodMillis
7197 7198 7199 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7197 def period_millis @period_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7204 7205 7206 7207 7208 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7204 def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) @parameters = args[:parameters] if args.key?(:parameters) @period_millis = args[:period_millis] if args.key?(:period_millis) end |