Sha256: 141fd8f7bf15694fe9afdb8702b90c5bfc38e4c21e0278fb36742a6c92cab061
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
# Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT. # typed: true # frozen_string_literal: true module DingSDK module Shared # A successful response to an authentication creation request. class CreateAuthenticationResponse < ::DingSDK::Utils::FieldAugmented extend T::Sig # A unique identifier for the authentication that you can use on the /check and /retry endpoints. field :authentication_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('authentication_uuid') } } field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } } # The time at which the authentication expires and can no longer be checked or retried. field :expires_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('expires_at'), 'decoder': Utils.datetime_from_iso_format(true) } } # The status of the authentication. Possible values are: # * `pending` - The OTP code is being sent. # * `rate_limited` - This user is rate-limited and cannot receive another code. # * `spam_detected` - This attempt is flagged as spam. Go to the dashboard for more details. # field :status, T.nilable(::DingSDK::Shared::Status), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(::DingSDK::Shared::Status, true) } } sig { params(authentication_uuid: T.nilable(::String), created_at: T.nilable(::DateTime), expires_at: T.nilable(::DateTime), status: T.nilable(::DingSDK::Shared::Status)).void } def initialize(authentication_uuid: nil, created_at: nil, expires_at: nil, status: nil) @authentication_uuid = authentication_uuid @created_at = created_at @expires_at = expires_at @status = status end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ding_sdk-0.8.12 | lib/ding_sdk/models/shared/createauthenticationresponse.rb |