Class: Openlayer::Models::Workspaces::APIKeyCreateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/workspaces/api_key_create_response.rb,
sig/openlayer/models/workspaces/api_key_create_response.rbs

Overview

See Also:

  • Openlayer::Resources::Workspaces::APIKeys#create

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, date_created:, date_last_used:, date_updated:, secure_key:, name: nil) ⇒ Object

Parameters:

  • id (String)

    The API key id.

  • date_created (Time)

    The API key creation date.

  • date_last_used (Time, nil)

    The API key last use date.

  • date_updated (Time)

    The API key last update date.

  • secure_key (String)

    The API key value.

  • name (String, nil) (defaults to: nil)

    The API key name.



# File 'lib/openlayer/models/workspaces/api_key_create_response.rb', line 46

Instance Attribute Details

#date_createdTime

Returns the value of attribute date_created.

Returns:

  • (Time)


19
20
21
# File 'sig/openlayer/models/workspaces/api_key_create_response.rbs', line 19

def date_created
  @date_created
end

#date_last_usedTime?

Returns the value of attribute date_last_used.

Returns:

  • (Time, nil)


21
22
23
# File 'sig/openlayer/models/workspaces/api_key_create_response.rbs', line 21

def date_last_used
  @date_last_used
end

#date_updatedTime

Returns the value of attribute date_updated.

Returns:

  • (Time)


23
24
25
# File 'sig/openlayer/models/workspaces/api_key_create_response.rbs', line 23

def date_updated
  @date_updated
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


17
18
19
# File 'sig/openlayer/models/workspaces/api_key_create_response.rbs', line 17

def id
  @id
end

#nameString?

The API key name.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


12
# File 'lib/openlayer/models/workspaces/api_key_create_response.rb', line 12

optional :name, String, nil?: true

#secure_keyString

Returns the value of attribute secure_key.

Returns:

  • (String)


25
26
27
# File 'sig/openlayer/models/workspaces/api_key_create_response.rbs', line 25

def secure_key
  @secure_key
end

Instance Method Details

#to_hash{

Returns:

  • ({)


36
# File 'sig/openlayer/models/workspaces/api_key_create_response.rbs', line 36

def to_hash: -> {