Class: ZoomUs::Models::InlineResponse20047
- Inherits:
-
Object
- Object
- ZoomUs::Models::InlineResponse20047
- Defined in:
- lib/zoom_us/models/inline_response_200_47.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#account_id ⇒ Object
User’s account ID.
-
#cms_user_id ⇒ Object
CMS ID of user, only enabled for Kaltura integration.
-
#company ⇒ Object
User’s company.
-
#created_at ⇒ Object
User create time.
-
#dept ⇒ Object
Department.
-
#email ⇒ Object
User’s email address.
-
#first_name ⇒ Object
User’s first name.
-
#group_ids ⇒ Object
IDs of the web groups user belongs to.
-
#host_key ⇒ Object
User’s host key.
-
#id ⇒ Object
User ID.
-
#im_group_ids ⇒ Object
IM IDs of the groups user belongs to.
-
#jid ⇒ Object
Returns the value of attribute jid.
-
#job_title ⇒ Object
User’s job title.
-
#language ⇒ Object
Default language for the Zoom Web Portal.
-
#last_client_version ⇒ Object
User last login client version.
-
#last_login_time ⇒ Object
User last login time.
-
#last_name ⇒ Object
User’s last name.
-
#location ⇒ Object
User’s location.
-
#personal_meeting_url ⇒ Object
User’s personal meeting url.
-
#phone_country ⇒ Object
User’s country for Company Phone Number.
-
#phone_number ⇒ Object
User’s phone number.
-
#pic_url ⇒ Object
The URL for user’s profile picture.
-
#pmi ⇒ Object
Personal meeting ID.
-
#role_name ⇒ Object
User’s [role](support.zoom.us/hc/en-us/articles/115001078646-Role-Based-Access-Control) name.
-
#status ⇒ Object
Status of user’s account.
-
#timezone ⇒ Object
The time zone of the user.
-
#type ⇒ Object
User’s plan type:
‘1` - Basic.
`2` - Licensed.
`3` - On-prem. -
#use_pmi ⇒ Object
Displays ‘true` if user has enabled PMI for instant meetinsgs, `false` otherwise.
-
#vanity_url ⇒ Object
Personal meeting room URL, if the user has one.
-
#verified ⇒ Object
Displays whether user is verified or not.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ InlineResponse20047
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ InlineResponse20047
Initializes the object
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 203 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'account_id') self.account_id = attributes[:'account_id'] end if attributes.has_key?(:'cms_user_id') self.cms_user_id = attributes[:'cms_user_id'] end if attributes.has_key?(:'company') self.company = attributes[:'company'] end if attributes.has_key?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.has_key?(:'dept') self.dept = attributes[:'dept'] end if attributes.has_key?(:'email') self.email = attributes[:'email'] else self.email = '[email protected]' end if attributes.has_key?(:'first_name') self.first_name = attributes[:'first_name'] end if attributes.has_key?(:'group_ids') if (value = attributes[:'group_ids']).is_a?(Array) self.group_ids = value end end if attributes.has_key?(:'host_key') self.host_key = attributes[:'host_key'] end if attributes.has_key?(:'id') self.id = attributes[:'id'] end if attributes.has_key?(:'im_group_ids') if (value = attributes[:'im_group_ids']).is_a?(Array) self.im_group_ids = value end end if attributes.has_key?(:'jid') self.jid = attributes[:'jid'] end if attributes.has_key?(:'job_title') self.job_title = attributes[:'job_title'] end if attributes.has_key?(:'language') self.language = attributes[:'language'] end if attributes.has_key?(:'last_client_version') self.last_client_version = attributes[:'last_client_version'] end if attributes.has_key?(:'last_login_time') self.last_login_time = attributes[:'last_login_time'] end if attributes.has_key?(:'last_name') self.last_name = attributes[:'last_name'] end if attributes.has_key?(:'location') self.location = attributes[:'location'] end if attributes.has_key?(:'personal_meeting_url') self.personal_meeting_url = attributes[:'personal_meeting_url'] end if attributes.has_key?(:'phone_country') self.phone_country = attributes[:'phone_country'] end if attributes.has_key?(:'phone_number') self.phone_number = attributes[:'phone_number'] end if attributes.has_key?(:'pic_url') self.pic_url = attributes[:'pic_url'] end if attributes.has_key?(:'pmi') self.pmi = attributes[:'pmi'] end if attributes.has_key?(:'role_name') self.role_name = attributes[:'role_name'] end if attributes.has_key?(:'status') self.status = attributes[:'status'] end if attributes.has_key?(:'timezone') self.timezone = attributes[:'timezone'] end if attributes.has_key?(:'type') self.type = attributes[:'type'] end if attributes.has_key?(:'use_pmi') self.use_pmi = attributes[:'use_pmi'] else self.use_pmi = false end if attributes.has_key?(:'vanity_url') self.vanity_url = attributes[:'vanity_url'] end if attributes.has_key?(:'verified') self.verified = attributes[:'verified'] end end |
Instance Attribute Details
#account_id ⇒ Object
User’s account ID.
19 20 21 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 19 def account_id @account_id end |
#cms_user_id ⇒ Object
CMS ID of user, only enabled for Kaltura integration.
22 23 24 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 22 def cms_user_id @cms_user_id end |
#company ⇒ Object
User’s company.
25 26 27 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 25 def company @company end |
#created_at ⇒ Object
User create time.
28 29 30 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 28 def created_at @created_at end |
#dept ⇒ Object
Department.
31 32 33 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 31 def dept @dept end |
#email ⇒ Object
User’s email address.
34 35 36 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 34 def email @email end |
#first_name ⇒ Object
User’s first name.
37 38 39 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 37 def first_name @first_name end |
#group_ids ⇒ Object
IDs of the web groups user belongs to.
40 41 42 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 40 def group_ids @group_ids end |
#host_key ⇒ Object
User’s host key.
43 44 45 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 43 def host_key @host_key end |
#id ⇒ Object
User ID.
46 47 48 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 46 def id @id end |
#im_group_ids ⇒ Object
IM IDs of the groups user belongs to.
49 50 51 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 49 def im_group_ids @im_group_ids end |
#jid ⇒ Object
Returns the value of attribute jid.
51 52 53 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 51 def jid @jid end |
#job_title ⇒ Object
User’s job title.
54 55 56 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 54 def job_title @job_title end |
#language ⇒ Object
Default language for the Zoom Web Portal.
57 58 59 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 57 def language @language end |
#last_client_version ⇒ Object
User last login client version.
60 61 62 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 60 def last_client_version @last_client_version end |
#last_login_time ⇒ Object
User last login time.
63 64 65 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 63 def last_login_time @last_login_time end |
#last_name ⇒ Object
User’s last name.
66 67 68 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 66 def last_name @last_name end |
#location ⇒ Object
User’s location.
69 70 71 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 69 def location @location end |
#personal_meeting_url ⇒ Object
User’s personal meeting url.
72 73 74 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 72 def personal_meeting_url @personal_meeting_url end |
#phone_country ⇒ Object
User’s country for Company Phone Number.
75 76 77 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 75 def phone_country @phone_country end |
#phone_number ⇒ Object
User’s phone number.
78 79 80 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 78 def phone_number @phone_number end |
#pic_url ⇒ Object
The URL for user’s profile picture.
81 82 83 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 81 def pic_url @pic_url end |
#pmi ⇒ Object
Personal meeting ID.
84 85 86 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 84 def pmi @pmi end |
#role_name ⇒ Object
User’s [role](support.zoom.us/hc/en-us/articles/115001078646-Role-Based-Access-Control) name.
87 88 89 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 87 def role_name @role_name end |
#status ⇒ Object
Status of user’s account.
90 91 92 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 90 def status @status end |
#timezone ⇒ Object
The time zone of the user.
93 94 95 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 93 def timezone @timezone end |
#type ⇒ Object
User’s plan type:
‘1` - Basic.
`2` - Licensed.
`3` - On-prem.
96 97 98 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 96 def type @type end |
#use_pmi ⇒ Object
Displays ‘true` if user has enabled PMI for instant meetinsgs, `false` otherwise.
99 100 101 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 99 def use_pmi @use_pmi end |
#vanity_url ⇒ Object
Personal meeting room URL, if the user has one.
102 103 104 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 102 def vanity_url @vanity_url end |
#verified ⇒ Object
Displays whether user is verified or not.
‘1` - Account verified.
`0` - Account not verified.
105 106 107 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 105 def verified @verified end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 130 def self.attribute_map { :'account_id' => :'account_id', :'cms_user_id' => :'cms_user_id', :'company' => :'company', :'created_at' => :'created_at', :'dept' => :'dept', :'email' => :'email', :'first_name' => :'first_name', :'group_ids' => :'group_ids', :'host_key' => :'host_key', :'id' => :'id', :'im_group_ids' => :'im_group_ids', :'jid' => :'jid', :'job_title' => :'job_title', :'language' => :'language', :'last_client_version' => :'last_client_version', :'last_login_time' => :'last_login_time', :'last_name' => :'last_name', :'location' => :'location', :'personal_meeting_url' => :'personal_meeting_url', :'phone_country' => :'phone_country', :'phone_number' => :'phone_number', :'pic_url' => :'pic_url', :'pmi' => :'pmi', :'role_name' => :'role_name', :'status' => :'status', :'timezone' => :'timezone', :'type' => :'type', :'use_pmi' => :'use_pmi', :'vanity_url' => :'vanity_url', :'verified' => :'verified' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 166 def self.swagger_types { :'account_id' => :'String', :'cms_user_id' => :'String', :'company' => :'String', :'created_at' => :'DateTime', :'dept' => :'String', :'email' => :'String', :'first_name' => :'String', :'group_ids' => :'Array<String>', :'host_key' => :'String', :'id' => :'String', :'im_group_ids' => :'Array<String>', :'jid' => :'String', :'job_title' => :'String', :'language' => :'String', :'last_client_version' => :'String', :'last_login_time' => :'DateTime', :'last_name' => :'String', :'location' => :'String', :'personal_meeting_url' => :'String', :'phone_country' => :'String', :'phone_number' => :'String', :'pic_url' => :'String', :'pmi' => :'Integer', :'role_name' => :'String', :'status' => :'String', :'timezone' => :'String', :'type' => :'Integer', :'use_pmi' => :'BOOLEAN', :'vanity_url' => :'String', :'verified' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 405 def ==(o) return true if self.equal?(o) self.class == o.class && account_id == o.account_id && cms_user_id == o.cms_user_id && company == o.company && created_at == o.created_at && dept == o.dept && email == o.email && first_name == o.first_name && group_ids == o.group_ids && host_key == o.host_key && id == o.id && im_group_ids == o.im_group_ids && jid == o.jid && job_title == o.job_title && language == o.language && last_client_version == o.last_client_version && last_login_time == o.last_login_time && last_name == o.last_name && location == o.location && personal_meeting_url == o.personal_meeting_url && phone_country == o.phone_country && phone_number == o.phone_number && pic_url == o.pic_url && pmi == o.pmi && role_name == o.role_name && status == o.status && timezone == o.timezone && type == o.type && use_pmi == o.use_pmi && vanity_url == o.vanity_url && verified == o.verified end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 476 def _deserialize(type, value) case type.to_sym when :DateTime ::DateTime.parse(value) when :Date ::Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = Models.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
542 543 544 545 546 547 548 549 550 551 552 553 554 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 542 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 455 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
442 443 444 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 442 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
448 449 450 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 448 def hash [account_id, cms_user_id, company, created_at, dept, email, first_name, group_ids, host_key, id, im_group_ids, jid, job_title, language, last_client_version, last_login_time, last_name, location, personal_meeting_url, phone_country, phone_number, pic_url, pmi, role_name, status, timezone, type, use_pmi, vanity_url, verified].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 340 def list_invalid_properties invalid_properties = Array.new if @email.nil? invalid_properties.push('invalid value for "email", email cannot be nil.') end if !@first_name.nil? && @first_name.to_s.length > 64 invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 64.') end if !@last_name.nil? && @last_name.to_s.length > 64 invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 64.') end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
522 523 524 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 522 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
528 529 530 531 532 533 534 535 536 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 528 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
516 517 518 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 516 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
363 364 365 366 367 368 369 370 371 |
# File 'lib/zoom_us/models/inline_response_200_47.rb', line 363 def valid? return false if @email.nil? return false if !@first_name.nil? && @first_name.to_s.length > 64 return false if !@last_name.nil? && @last_name.to_s.length > 64 status_validator = EnumAttributeValidator.new('String', ['pending', 'active', 'inactive']) return false unless status_validator.valid?(@status) return false if @type.nil? true end |