Class: Openlayer::Models::Governance::RuleStatRetrieveResponse::Rules

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

Overview

See Also:

  • Openlayer::Models::Governance::RuleStatRetrieveResponse#rules

Defined Under Namespace

Classes: ByScope, ByType

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(project: nil, workspace: nil) ⇒ Object

Rule counts by scope.

Parameters:

  • project (Integer) (defaults to: nil)
  • workspace (Integer) (defaults to: nil)


# File 'lib/openlayer/models/governance/rule_stat_retrieve_response.rb', line 454

Instance Attribute Details

#by_scope ⇒ Openlayer::Models::Governance::RuleStatRetrieveResponse::Rules::ByScope?

Rule counts by scope.



436
437
438
# File 'lib/openlayer/models/governance/rule_stat_retrieve_response.rb', line 436

optional :by_scope,
-> { Openlayer::Models::Governance::RuleStatRetrieveResponse::Rules::ByScope },
api_name: :byScope

#by_type ⇒ Openlayer::Models::Governance::RuleStatRetrieveResponse::Rules::ByType?

Rule counts by type.



444
445
446
# File 'lib/openlayer/models/governance/rule_stat_retrieve_response.rb', line 444

optional :by_type,
-> { Openlayer::Models::Governance::RuleStatRetrieveResponse::Rules::ByType },
api_name: :byType

#total ⇒ Integer?

The total number of rules.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


452
# File 'lib/openlayer/models/governance/rule_stat_retrieve_response.rb', line 452

optional :total, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


393
# File 'sig/openlayer/models/governance/rule_stat_retrieve_response.rbs', line 393

def to_hash: -> {