Class: Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Framework

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/governance/frameworks/subsection_list_rules_response.rb,
sig/openlayer/models/governance/frameworks/subsection_list_rules_response.rbs

Defined Under Namespace

Classes: Avatar

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:, avatar:, built_in_slug:, enabled:, name:) ⇒ Object

Some parameter documentations has been truncated, see Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Framework for more details.

`iso_

Parameters:



# File 'lib/openlayer/models/governance/frameworks/subsection_list_rules_response.rb', line 281

Instance Attribute Details

#avatar ⇒ Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Framework::Avatar?

The icon shown for the framework.



248
249
250
# File 'lib/openlayer/models/governance/frameworks/subsection_list_rules_response.rb', line 248

required :avatar,
-> { Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Framework::Avatar },
nil?: true

#built_in_slug ⇒ String?

Identifies a framework that ships with Openlayer, for example eu_ai_act, iso_42001, nist_ai_rmf, or traiga. null for frameworks you create yourself.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


258
# File 'lib/openlayer/models/governance/frameworks/subsection_list_rules_response.rb', line 258

required :built_in_slug, String, api_name: :builtInSlug, nil?: true

#enabled ⇒ Boolean

Whether the framework is active. Rules of a disabled framework are not evaluated and do not count towards compliance.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


265
# File 'lib/openlayer/models/governance/frameworks/subsection_list_rules_response.rb', line 265

required :enabled, Openlayer::Internal::Type::Boolean

#id ⇒ String

Returns the value of attribute id.

Returns:

  • (String)


194
195
196
# File 'sig/openlayer/models/governance/frameworks/subsection_list_rules_response.rbs', line 194

def id
  @id
end

#name ⇒ String

The framework name.

Parameters:

  • value (String)

Returns:

  • (String)


271
# File 'lib/openlayer/models/governance/frameworks/subsection_list_rules_response.rb', line 271

required :name, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


204
# File 'sig/openlayer/models/governance/frameworks/subsection_list_rules_response.rbs', line 204

def to_hash: -> {