Class: Openlayer::Models::Governance::RuleResultCreateEvidenceResponse

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

Overview

See Also:

  • Openlayer::Resources::Governance::RuleResults#create_evidence

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:, creator_id:, date_created:, date_updated:, description: nil, name: nil, storage_uri: nil, text: nil, url: nil) ⇒ Object

Some parameter documentations has been truncated, see Openlayer::Models::Governance::RuleResultCreateEvidenceResponse for more details.

Parameters:

  • id (String) —

    The evidence id.

  • creator_id (String, nil) —

    The user who attached the evidence.

  • date_created (Time) —

    The creation date.

  • date_updated (Time) —

    The last update date.

  • description (String, nil) (defaults to: nil) —

    A description of what the evidence shows.

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

    The evidence name.

  • storage_uri (String, nil) (defaults to: nil) —

    Where the uploaded file is stored. Set when the rule's evidenceType is `docume

  • text (String, nil) (defaults to: nil) —

    The evidence text. Set when the rule's evidenceType is text.

  • url (String, nil) (defaults to: nil) —

    A link to the evidence. Set when the rule's evidenceType is url.



# File 'lib/openlayer/models/governance/rule_result_create_evidence_response.rb', line 65

Instance Attribute Details

#creator_id ⇒ String?

Returns the value of attribute creator_id.

Returns:

  • (String, nil)


30
31
32
# File 'sig/openlayer/models/governance/rule_result_create_evidence_response.rbs', line 30

def creator_id
  @creator_id
end

#date_created ⇒ Time

Returns the value of attribute date_created.

Returns:

  • (Time)


32
33
34
# File 'sig/openlayer/models/governance/rule_result_create_evidence_response.rbs', line 32

def date_created
  @date_created
end

#date_updated ⇒ Time

Returns the value of attribute date_updated.

Returns:

  • (Time)


34
35
36
# File 'sig/openlayer/models/governance/rule_result_create_evidence_response.rbs', line 34

def date_updated
  @date_updated
end

#description ⇒ String?

A description of what the evidence shows.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


12
# File 'lib/openlayer/models/governance/rule_result_create_evidence_response.rb', line 12

optional :description, String, nil?: true

#id ⇒ String

Returns the value of attribute id.

Returns:

  • (String)


28
29
30
# File 'sig/openlayer/models/governance/rule_result_create_evidence_response.rbs', line 28

def id
  @id
end

#name ⇒ String?

The evidence name.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


18
# File 'lib/openlayer/models/governance/rule_result_create_evidence_response.rb', line 18

optional :name, String, nil?: true

#storage_uri ⇒ String?

Where the uploaded file is stored. Set when the rule's evidenceType is document.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


25
# File 'lib/openlayer/models/governance/rule_result_create_evidence_response.rb', line 25

optional :storage_uri, String, api_name: :storageUri, nil?: true

#text ⇒ String?

The evidence text. Set when the rule's evidenceType is text.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


31
# File 'lib/openlayer/models/governance/rule_result_create_evidence_response.rb', line 31

optional :text, String, nil?: true

#url ⇒ String?

A link to the evidence. Set when the rule's evidenceType is url.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


37
# File 'lib/openlayer/models/governance/rule_result_create_evidence_response.rb', line 37

optional :url, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


48
# File 'sig/openlayer/models/governance/rule_result_create_evidence_response.rbs', line 48

def to_hash: -> {