Class: Amocrm::Models::RoleCreateParams::Body::Rights

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/role_create_params.rb,
sig/amocrm/models/role_create_params.rbs

Overview

See Also:

  • Amocrm::Models::RoleCreateParams::Body#rights

Defined Under Namespace

Classes: StatusRight

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 ⇒ Object



114
# File 'sig/amocrm/models/role_create_params.rbs', line 114

def initialize: (

Instance Attribute Details

#catalog_access ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


45
# File 'lib/amocrm/models/role_create_params.rb', line 45

optional :catalog_access, Amocrm::Internal::Type::Boolean

#companies ⇒ Object?

Parameters:

  • (top)

Returns:

  • (Object, nil)


50
# File 'lib/amocrm/models/role_create_params.rb', line 50

optional :companies, Amocrm::Internal::Type::Unknown

#contacts ⇒ Object?

Parameters:

  • (top)

Returns:

  • (Object, nil)


55
# File 'lib/amocrm/models/role_create_params.rb', line 55

optional :contacts, Amocrm::Internal::Type::Unknown

#group_id ⇒ Integer?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


60
# File 'lib/amocrm/models/role_create_params.rb', line 60

optional :group_id, Integer, nil?: true

#is_active ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


65
# File 'lib/amocrm/models/role_create_params.rb', line 65

optional :is_active, Amocrm::Internal::Type::Boolean

#is_admin ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


70
# File 'lib/amocrm/models/role_create_params.rb', line 70

optional :is_admin, Amocrm::Internal::Type::Boolean

#is_free ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


75
# File 'lib/amocrm/models/role_create_params.rb', line 75

optional :is_free, Amocrm::Internal::Type::Boolean

#leads ⇒ Object?

Parameters:

  • (top)

Returns:

  • (Object, nil)


80
# File 'lib/amocrm/models/role_create_params.rb', line 80

optional :leads, Amocrm::Internal::Type::Unknown

#mail_access ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


85
# File 'lib/amocrm/models/role_create_params.rb', line 85

optional :mail_access, Amocrm::Internal::Type::Boolean

#role_id ⇒ Integer?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


90
# File 'lib/amocrm/models/role_create_params.rb', line 90

optional :role_id, Integer, nil?: true

#status_rights ⇒ Array<Amocrm::Models::RoleCreateParams::Body::Rights::StatusRight>?

Parameters:

  • value (::Array[Amocrm::RoleCreateParams::Body::Rights::StatusRight], nil)

Returns:



95
96
97
98
99
# File 'lib/amocrm/models/role_create_params.rb', line 95

optional :status_rights,
-> {
  Amocrm::Internal::Type::ArrayOf[Amocrm::RoleCreateParams::Body::Rights::StatusRight]
},
nil?: true

#tasks ⇒ Object?

Parameters:

  • (top)

Returns:

  • (Object, nil)


104
# File 'lib/amocrm/models/role_create_params.rb', line 104

optional :tasks, Amocrm::Internal::Type::Unknown

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


129
# File 'sig/amocrm/models/role_create_params.rbs', line 129

def to_hash: -> {