Sha256: 0f01955cc906f5b6cf4f636c9fcdf342076b3db3f83cfbfa35064de131bfbe61

Contents?: true

Size: 1.35 KB

Versions: 6

Compression:

Stored size: 1.35 KB

Contents

# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module SpeakeasyClientSDK
  module Shared
  
    # An AccessToken is a token that can be used to authenticate with the Speakeasy API.
    class AccessToken < ::SpeakeasyClientSDK::Utils::FieldAugmented
      extend T::Sig


      field :access_token, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('access_token') } }

      field :claims, ::SpeakeasyClientSDK::Shared::Claims, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('claims') } }

      field :user, ::SpeakeasyClientSDK::Shared::User, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('user') } }

      field :workspaces, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Workspaces]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspaces') } }


      sig { params(access_token: ::String, claims: ::SpeakeasyClientSDK::Shared::Claims, user: ::SpeakeasyClientSDK::Shared::User, workspaces: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Workspaces])).void }
      def initialize(access_token: nil, claims: nil, user: nil, workspaces: nil)
        @access_token = access_token
        @claims = claims
        @user = user
        @workspaces = workspaces
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
speakeasy_client_sdk_ruby-4.0.15 lib/speakeasy_client_sdk/models/shared/accesstoken.rb
speakeasy_client_sdk_ruby-4.0.14 lib/speakeasy_client_sdk/models/shared/accesstoken.rb
speakeasy_client_sdk_ruby-4.0.13 lib/speakeasy_client_sdk/models/shared/accesstoken.rb
speakeasy_client_sdk_ruby-4.0.12 lib/speakeasy_client_sdk/models/shared/accesstoken.rb
speakeasy_client_sdk_ruby-4.0.11 lib/speakeasy_client_sdk/models/shared/accesstoken.rb
speakeasy_client_sdk_ruby-4.0.10 lib/speakeasy_client_sdk/models/shared/accesstoken.rb