Class: ZoomUs::Models::UserSettingsMeetingSettings
- Inherits:
-
Object
- Object
- ZoomUs::Models::UserSettingsMeetingSettings
- Defined in:
- lib/zoom_us/models/user_settings_meeting_settings.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#audio_type ⇒ Object
Determine how participants can join the audio portion of the meeting:
‘both` - Telephony and VoIP.
`telephony` - Audio PSTN telephony only.
`voip` - VoIP only.
`thirdParty` - Third party audio conference. -
#default_password_for_scheduled_meetings ⇒ Object
Password for already scheduled meetings.
-
#force_pmi_jbh_password ⇒ Object
Require a password for personal meetings if attendees can join before host.
-
#host_video ⇒ Object
Start meetings with host video on.
-
#join_before_host ⇒ Object
Join the meeting before host arrives.
-
#participants_video ⇒ Object
Start meetings with participants video on.
-
#pmi_password ⇒ Object
PMI password.
-
#pstn_password_protected ⇒ Object
Generate and require password for participants joining by phone.
-
#require_password_for_instant_meetings ⇒ Object
Require a password for instant meetings.
-
#require_password_for_pmi_meetings ⇒ Object
Require a password for Personal Meeting ID (PMI).
-
#require_password_for_scheduled_meetings ⇒ Object
Require a password for meetings which have already been scheduled.
-
#require_password_for_scheduling_new_meetings ⇒ Object
Require a password when scheduling new meetings.
-
#use_pmi_for_instant_meetings ⇒ Object
Use Personal Meeting ID (PMI) when starting an instant meeting.
-
#use_pmi_for_scheduled_meetings ⇒ Object
Use Personal Meeting ID (PMI) when scheduling a meeting.
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 = {}) ⇒ UserSettingsMeetingSettings
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 = {}) ⇒ UserSettingsMeetingSettings
Initializes the object
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 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 125 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?(:'host_video') self.host_video = attributes[:'host_video'] end if attributes.has_key?(:'participants_video') self.participants_video = attributes[:'participants_video'] end if attributes.has_key?(:'audio_type') self.audio_type = attributes[:'audio_type'] else self.audio_type = 'voip' end if attributes.has_key?(:'join_before_host') self.join_before_host = attributes[:'join_before_host'] end if attributes.has_key?(:'force_pmi_jbh_password') self.force_pmi_jbh_password = attributes[:'force_pmi_jbh_password'] end if attributes.has_key?(:'pstn_password_protected') self.pstn_password_protected = attributes[:'pstn_password_protected'] end if attributes.has_key?(:'use_pmi_for_scheduled_meetings') self.use_pmi_for_scheduled_meetings = attributes[:'use_pmi_for_scheduled_meetings'] end if attributes.has_key?(:'use_pmi_for_instant_meetings') self.use_pmi_for_instant_meetings = attributes[:'use_pmi_for_instant_meetings'] end if attributes.has_key?(:'require_password_for_scheduling_new_meetings') self.require_password_for_scheduling_new_meetings = attributes[:'require_password_for_scheduling_new_meetings'] end if attributes.has_key?(:'require_password_for_scheduled_meetings') self.require_password_for_scheduled_meetings = attributes[:'require_password_for_scheduled_meetings'] end if attributes.has_key?(:'default_password_for_scheduled_meetings') self.default_password_for_scheduled_meetings = attributes[:'default_password_for_scheduled_meetings'] end if attributes.has_key?(:'require_password_for_instant_meetings') self.require_password_for_instant_meetings = attributes[:'require_password_for_instant_meetings'] end if attributes.has_key?(:'require_password_for_pmi_meetings') self.require_password_for_pmi_meetings = attributes[:'require_password_for_pmi_meetings'] end if attributes.has_key?(:'pmi_password') self.pmi_password = attributes[:'pmi_password'] end end |
Instance Attribute Details
#audio_type ⇒ Object
Determine how participants can join the audio portion of the meeting:
‘both` - Telephony and VoIP.
`telephony` - Audio PSTN telephony only.
`voip` - VoIP only.
`thirdParty` - Third party audio conference.
26 27 28 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 26 def audio_type @audio_type end |
#default_password_for_scheduled_meetings ⇒ Object
Password for already scheduled meetings
50 51 52 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 50 def default_password_for_scheduled_meetings @default_password_for_scheduled_meetings end |
#force_pmi_jbh_password ⇒ Object
Require a password for personal meetings if attendees can join before host.
32 33 34 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 32 def force_pmi_jbh_password @force_pmi_jbh_password end |
#host_video ⇒ Object
Start meetings with host video on.
20 21 22 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 20 def host_video @host_video end |
#join_before_host ⇒ Object
Join the meeting before host arrives.
29 30 31 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 29 def join_before_host @join_before_host end |
#participants_video ⇒ Object
Start meetings with participants video on.
23 24 25 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 23 def participants_video @participants_video end |
#pmi_password ⇒ Object
PMI password
59 60 61 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 59 def pmi_password @pmi_password end |
#pstn_password_protected ⇒ Object
Generate and require password for participants joining by phone.
35 36 37 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 35 def pstn_password_protected @pstn_password_protected end |
#require_password_for_instant_meetings ⇒ Object
Require a password for instant meetings. If you use PMI for your instant meetings, this option will be disabled.
53 54 55 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 53 def require_password_for_instant_meetings @require_password_for_instant_meetings end |
#require_password_for_pmi_meetings ⇒ Object
Require a password for Personal Meeting ID (PMI)
56 57 58 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 56 def require_password_for_pmi_meetings @require_password_for_pmi_meetings end |
#require_password_for_scheduled_meetings ⇒ Object
Require a password for meetings which have already been scheduled
47 48 49 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 47 def require_password_for_scheduled_meetings @require_password_for_scheduled_meetings end |
#require_password_for_scheduling_new_meetings ⇒ Object
Require a password when scheduling new meetings
44 45 46 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 44 def require_password_for_scheduling_new_meetings @require_password_for_scheduling_new_meetings end |
#use_pmi_for_instant_meetings ⇒ Object
Use Personal Meeting ID (PMI) when starting an instant meeting
41 42 43 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 41 def use_pmi_for_instant_meetings @use_pmi_for_instant_meetings end |
#use_pmi_for_scheduled_meetings ⇒ Object
Use Personal Meeting ID (PMI) when scheduling a meeting
38 39 40 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 38 def use_pmi_for_scheduled_meetings @use_pmi_for_scheduled_meetings end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 84 def self.attribute_map { :'host_video' => :'host_video', :'participants_video' => :'participants_video', :'audio_type' => :'audio_type', :'join_before_host' => :'join_before_host', :'force_pmi_jbh_password' => :'force_pmi_jbh_password', :'pstn_password_protected' => :'pstn_password_protected', :'use_pmi_for_scheduled_meetings' => :'use_pmi_for_scheduled_meetings', :'use_pmi_for_instant_meetings' => :'use_pmi_for_instant_meetings', :'require_password_for_scheduling_new_meetings' => :'require_password_for_scheduling_new_meetings', :'require_password_for_scheduled_meetings' => :'require_password_for_scheduled_meetings', :'default_password_for_scheduled_meetings' => :'default_password_for_scheduled_meetings', :'require_password_for_instant_meetings' => :'require_password_for_instant_meetings', :'require_password_for_pmi_meetings' => :'require_password_for_pmi_meetings', :'pmi_password' => :'pmi_password' } end |
.swagger_types ⇒ Object
Attribute type mapping.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 104 def self.swagger_types { :'host_video' => :'BOOLEAN', :'participants_video' => :'BOOLEAN', :'audio_type' => :'String', :'join_before_host' => :'BOOLEAN', :'force_pmi_jbh_password' => :'BOOLEAN', :'pstn_password_protected' => :'BOOLEAN', :'use_pmi_for_scheduled_meetings' => :'BOOLEAN', :'use_pmi_for_instant_meetings' => :'BOOLEAN', :'require_password_for_scheduling_new_meetings' => :'BOOLEAN', :'require_password_for_scheduled_meetings' => :'BOOLEAN', :'default_password_for_scheduled_meetings' => :'String', :'require_password_for_instant_meetings' => :'BOOLEAN', :'require_password_for_pmi_meetings' => :'String', :'pmi_password' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 229 def ==(o) return true if self.equal?(o) self.class == o.class && host_video == o.host_video && participants_video == o.participants_video && audio_type == o.audio_type && join_before_host == o.join_before_host && force_pmi_jbh_password == o.force_pmi_jbh_password && pstn_password_protected == o.pstn_password_protected && use_pmi_for_scheduled_meetings == o.use_pmi_for_scheduled_meetings && use_pmi_for_instant_meetings == o.use_pmi_for_instant_meetings && require_password_for_scheduling_new_meetings == o.require_password_for_scheduling_new_meetings && require_password_for_scheduled_meetings == o.require_password_for_scheduled_meetings && default_password_for_scheduled_meetings == o.default_password_for_scheduled_meetings && require_password_for_instant_meetings == o.require_password_for_instant_meetings && require_password_for_pmi_meetings == o.require_password_for_pmi_meetings && pmi_password == o.pmi_password end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 284 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
350 351 352 353 354 355 356 357 358 359 360 361 362 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 350 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
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 263 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
250 251 252 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 250 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
256 257 258 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 256 def hash [host_video, participants_video, audio_type, join_before_host, force_pmi_jbh_password, pstn_password_protected, use_pmi_for_scheduled_meetings, use_pmi_for_instant_meetings, require_password_for_scheduling_new_meetings, require_password_for_scheduled_meetings, default_password_for_scheduled_meetings, require_password_for_instant_meetings, require_password_for_pmi_meetings, pmi_password].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
192 193 194 195 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 192 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
330 331 332 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 330 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
336 337 338 339 340 341 342 343 344 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 336 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
324 325 326 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 324 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
199 200 201 202 203 204 205 |
# File 'lib/zoom_us/models/user_settings_meeting_settings.rb', line 199 def valid? audio_type_validator = EnumAttributeValidator.new('String', ['both', 'telephony', 'voip', 'thirdParty']) return false unless audio_type_validator.valid?(@audio_type) require_password_for_pmi_meetings_validator = EnumAttributeValidator.new('String', ['jbh_only', 'all', 'none']) return false unless require_password_for_pmi_meetings_validator.valid?(@require_password_for_pmi_meetings) true end |