Class: Amocrm::Models::RoleUpdateByIDParams::Rights

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/role_update_by_id_params.rb

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(id:, name: nil, request_id: nil, rights: nil, request_options: {}) ⇒ Object

Parameters:



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 37

class Rights < Amocrm::Internal::Type::BaseModel
  # @!attribute catalog_access
  #
  #   @return [Boolean, nil]
  optional :catalog_access, Amocrm::Internal::Type::Boolean

  # @!attribute companies
  #
  #   @return [Object, nil]
  optional :companies, Amocrm::Internal::Type::Unknown

  # @!attribute contacts
  #
  #   @return [Object, nil]
  optional :contacts, Amocrm::Internal::Type::Unknown

  # @!attribute group_id
  #
  #   @return [Integer, nil]
  optional :group_id, Integer, nil?: true

  # @!attribute is_active
  #
  #   @return [Boolean, nil]
  optional :is_active, Amocrm::Internal::Type::Boolean

  # @!attribute is_admin
  #
  #   @return [Boolean, nil]
  optional :is_admin, Amocrm::Internal::Type::Boolean

  # @!attribute is_free
  #
  #   @return [Boolean, nil]
  optional :is_free, Amocrm::Internal::Type::Boolean

  # @!attribute leads
  #
  #   @return [Object, nil]
  optional :leads, Amocrm::Internal::Type::Unknown

  # @!attribute mail_access
  #
  #   @return [Boolean, nil]
  optional :mail_access, Amocrm::Internal::Type::Boolean

  # @!attribute role_id
  #
  #   @return [Integer, nil]
  optional :role_id, Integer, nil?: true

  # @!attribute status_rights
  #
  #   @return [Array<Amocrm::Models::RoleUpdateByIDParams::Rights::StatusRight>, nil]
  optional :status_rights,
           -> { Amocrm::Internal::Type::ArrayOf[Amocrm::RoleUpdateByIDParams::Rights::StatusRight] },
           nil?: true

  # @!attribute tasks
  #
  #   @return [Object, nil]
  optional :tasks, Amocrm::Internal::Type::Unknown

  # @!method initialize(catalog_access: nil, companies: nil, contacts: nil, group_id: nil, is_active: nil, is_admin: nil, is_free: nil, leads: nil, mail_access: nil, role_id: nil, status_rights: nil, tasks: nil)
  #   @param catalog_access [Boolean]
  #   @param companies [Object]
  #   @param contacts [Object]
  #   @param group_id [Integer, nil]
  #   @param is_active [Boolean]
  #   @param is_admin [Boolean]
  #   @param is_free [Boolean]
  #   @param leads [Object]
  #   @param mail_access [Boolean]
  #   @param role_id [Integer, nil]
  #   @param status_rights [Array<Amocrm::Models::RoleUpdateByIDParams::Rights::StatusRight>, nil]
  #   @param tasks [Object]

  class StatusRight < Amocrm::Internal::Type::BaseModel
    # @!attribute entity_type
    #
    #   @return [String, nil]
    optional :entity_type, String

    # @!attribute pipeline_id
    #
    #   @return [Integer, nil]
    optional :pipeline_id, Integer

    # @!attribute rights
    #
    #   @return [Object, nil]
    optional :rights, Amocrm::Internal::Type::Unknown

    # @!attribute status_id
    #
    #   @return [Integer, nil]
    optional :status_id, Integer

    # @!method initialize(entity_type: nil, pipeline_id: nil, rights: nil, status_id: nil)
    #   @param entity_type [String]
    #   @param pipeline_id [Integer]
    #   @param rights [Object]
    #   @param status_id [Integer]
  end
end

Instance Attribute Details

#catalog_accessBoolean?

Returns:

  • (Boolean, nil)


41
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 41

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

#companiesObject?

Returns:

  • (Object, nil)


46
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 46

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

#contactsObject?

Returns:

  • (Object, nil)


51
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 51

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

#group_idInteger?

Returns:

  • (Integer, nil)


56
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 56

optional :group_id, Integer, nil?: true

#is_activeBoolean?

Returns:

  • (Boolean, nil)


61
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 61

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

#is_adminBoolean?

Returns:

  • (Boolean, nil)


66
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 66

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

#is_freeBoolean?

Returns:

  • (Boolean, nil)


71
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 71

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

#leadsObject?

Returns:

  • (Object, nil)


76
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 76

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

#mail_accessBoolean?

Returns:

  • (Boolean, nil)


81
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 81

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

#role_idInteger?

Returns:

  • (Integer, nil)


86
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 86

optional :role_id, Integer, nil?: true

#status_rightsArray<Amocrm::Models::RoleUpdateByIDParams::Rights::StatusRight>?



91
92
93
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 91

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

#tasksObject?

Returns:

  • (Object, nil)


98
# File 'lib/amocrm/models/role_update_by_id_params.rb', line 98

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