Class: Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role
- Defined in:
- lib/amocrm/models/role_list_response.rb
Defined Under Namespace
Instance Attribute Summary collapse
- #_embedded ⇒ Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Embedded?
- #_links ⇒ Object?
- #id ⇒ Integer?
- #name ⇒ String?
- #rights ⇒ Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Rights?
Instance Method Summary collapse
- #initialize(id: nil) ⇒ Object constructor
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: nil) ⇒ Object
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 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'lib/amocrm/models/role_list_response.rb', line 57 class Role < Amocrm::Internal::Type::BaseModel # @!attribute id # # @return [Integer, nil] optional :id, Integer # @!attribute _embedded # # @return [Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Embedded, nil] optional :_embedded, -> { Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Embedded } # @!attribute _links # # @return [Object, nil] optional :_links, Amocrm::Internal::Type::Unknown # @!attribute name # # @return [String, nil] optional :name, String # @!attribute rights # # @return [Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Rights, nil] optional :rights, -> { Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Rights } # @!method initialize(id: nil, _embedded: nil, _links: nil, name: nil, rights: nil) # @param id [Integer] # @param _embedded [Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Embedded] # @param _links [Object] # @param name [String] # @param rights [Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Rights] # @see Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role#_embedded class Embedded < Amocrm::Internal::Type::BaseModel # @!attribute users # # @return [Array<Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Embedded::User>, nil] optional :users, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Embedded::User] } # @!method initialize(users: nil) # @param users [Array<Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Embedded::User>] class User < Amocrm::Internal::Type::BaseModel # @!attribute id # # @return [Integer, nil] optional :id, Integer # @!method initialize(id: nil) # @param id [Integer] end end # @see Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role#rights 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::RoleListResponse::RoleListResponse::Embedded::Role::Rights::StatusRight>, nil] optional :status_rights, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::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::RoleListResponse::RoleListResponse::Embedded::Role::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 end |
Instance Attribute Details
#_embedded ⇒ Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Embedded?
66 |
# File 'lib/amocrm/models/role_list_response.rb', line 66 optional :_embedded, -> { Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Embedded } |
#_links ⇒ Object?
71 |
# File 'lib/amocrm/models/role_list_response.rb', line 71 optional :_links, Amocrm::Internal::Type::Unknown |
#id ⇒ Integer?
61 |
# File 'lib/amocrm/models/role_list_response.rb', line 61 optional :id, Integer |
#name ⇒ String?
76 |
# File 'lib/amocrm/models/role_list_response.rb', line 76 optional :name, String |
#rights ⇒ Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Rights?
81 |
# File 'lib/amocrm/models/role_list_response.rb', line 81 optional :rights, -> { Amocrm::Models::RoleListResponse::RoleListResponse::Embedded::Role::Rights } |