class ZoomUs::Models::InlineResponse20047

Attributes

account_id[RW]

User's account ID.

cms_user_id[RW]

CMS ID of user, only enabled for Kaltura integration.

company[RW]

User's company.

created_at[RW]

User create time.

dept[RW]

Department.

email[RW]

User's email address.

first_name[RW]

User's first name.

group_ids[RW]

IDs of the web groups user belongs to.

host_key[RW]

User's host key.

id[RW]

User ID.

im_group_ids[RW]

IM IDs of the groups user belongs to.

jid[RW]
job_title[RW]

User's job title.

language[RW]

Default language for the Zoom Web Portal.

last_client_version[RW]

User last login client version.

last_login_time[RW]

User last login time.

last_name[RW]

User's last name.

location[RW]

User's location.

personal_meeting_url[RW]

User's personal meeting url.

phone_country[RW]

User's country for Company Phone Number.

phone_number[RW]

User's phone number.

pic_url[RW]

The URL for user's profile picture.

pmi[RW]

Personal meeting ID.

status[RW]

Status of user's account.

timezone[RW]

The time zone of the user.

type[RW]

User's plan type:
`1` - Basic.
`2` - Licensed.
`3` - On-prem.

use_pmi[RW]

Displays `true` if user has enabled PMI for instant meetinsgs, `false` otherwise.

vanity_url[RW]

Personal meeting room URL, if the user has one.

verified[RW]

Displays whether user is verified or not.
`1` - Account verified.
`0` - Account not verified.

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# 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
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# 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 = 'john.doe@email.com'
  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
swagger_types() click to toggle source

Attribute type mapping.

# 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

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# 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) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# 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) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# 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) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# 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) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/zoom_us/models/inline_response_200_47.rb, line 442
def eql?(o)
  self == o
end
first_name=(first_name) click to toggle source

Custom attribute writer method with validation @param [Object] first_name Value to be assigned

# File lib/zoom_us/models/inline_response_200_47.rb, line 375
def first_name=(first_name)
  if !first_name.nil? && first_name.to_s.length > 64
    fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 64.'
  end

  @first_name = first_name
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# 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
last_name=(last_name) click to toggle source

Custom attribute writer method with validation @param [Object] last_name Value to be assigned

# File lib/zoom_us/models/inline_response_200_47.rb, line 385
def last_name=(last_name)
  if !last_name.nil? && last_name.to_s.length > 64
    fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 64.'
  end

  @last_name = last_name
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# 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
status=(status) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned

# File lib/zoom_us/models/inline_response_200_47.rb, line 395
def status=(status)
  validator = EnumAttributeValidator.new('String', ['pending', 'active', 'inactive'])
  unless validator.valid?(status)
    fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
  end
  @status = status
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/zoom_us/models/inline_response_200_47.rb, line 522
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# 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() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/zoom_us/models/inline_response_200_47.rb, line 516
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# 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