Class: ZoomUs::Models::RecordingSettings1
- Inherits:
-
Object
- Object
- ZoomUs::Models::RecordingSettings1
- Defined in:
- lib/zoom_us/models/recording_settings_1.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#approval_type ⇒ Object
Approval type for the registration.
‘0`- Automatically approve the registration when a user registers.
`1` - Manually approve or deny the registration of a user.
`2` - No registration required to view the recording. -
#authentication_domains ⇒ Object
Authentication domains.
-
#authentication_option ⇒ Object
Authentication Options.
-
#on_demand ⇒ Object
Determine whether registration isrequired to view the recording.
-
#password ⇒ Object
Enable password protection for the recording by setting a password.
-
#recording_authentication ⇒ Object
Only authenticated users can view.
-
#send_email_to_host ⇒ Object
Send an email to host when someone registers to view the recording.
-
#share_recording ⇒ Object
Determine how the meeting recording is shared.
-
#show_social_share_buttons ⇒ Object
Show social share buttons on registration page.
-
#viewer_download ⇒ Object
Determine whether a viewer can download the recording file 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 = {}) ⇒ RecordingSettings1
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 = {}) ⇒ RecordingSettings1
Initializes the object
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 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 104 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?(:'share_recording') self.share_recording = attributes[:'share_recording'] end if attributes.has_key?(:'recording_authentication') self.recording_authentication = attributes[:'recording_authentication'] end if attributes.has_key?(:'authentication_option') self.authentication_option = attributes[:'authentication_option'] end if attributes.has_key?(:'authentication_domains') self.authentication_domains = attributes[:'authentication_domains'] end if attributes.has_key?(:'viewer_download') self.viewer_download = attributes[:'viewer_download'] end if attributes.has_key?(:'password') self.password = attributes[:'password'] end if attributes.has_key?(:'on_demand') self.on_demand = attributes[:'on_demand'] end if attributes.has_key?(:'approval_type') self.approval_type = attributes[:'approval_type'] end if attributes.has_key?(:'send_email_to_host') self.send_email_to_host = attributes[:'send_email_to_host'] end if attributes.has_key?(:'show_social_share_buttons') self. = attributes[:'show_social_share_buttons'] end end |
Instance Attribute Details
#approval_type ⇒ Object
Approval type for the registration.
‘0`- Automatically approve the registration when a user registers.
`1` - Manually approve or deny the registration of a user.
`2` - No registration required to view the recording.
40 41 42 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 40 def approval_type @approval_type end |
#authentication_domains ⇒ Object
Authentication domains.
28 29 30 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 28 def authentication_domains @authentication_domains end |
#authentication_option ⇒ Object
Authentication Options.
25 26 27 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 25 def authentication_option @authentication_option end |
#on_demand ⇒ Object
Determine whether registration isrequired to view the recording.
37 38 39 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 37 def on_demand @on_demand end |
#password ⇒ Object
Enable password protection for the recording by setting a password.
34 35 36 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 34 def password @password end |
#recording_authentication ⇒ Object
Only authenticated users can view.
22 23 24 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 22 def recording_authentication @recording_authentication end |
#send_email_to_host ⇒ Object
Send an email to host when someone registers to view the recording. This applies for On-demand recordings only.
43 44 45 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 43 def send_email_to_host @send_email_to_host end |
#share_recording ⇒ Object
Determine how the meeting recording is shared.
19 20 21 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 19 def share_recording @share_recording end |
#show_social_share_buttons ⇒ Object
Show social share buttons on registration page. This applies for On-demand recordings only.
46 47 48 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 46 def @show_social_share_buttons end |
#viewer_download ⇒ Object
Determine whether a viewer can download the recording file or not.
31 32 33 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 31 def viewer_download @viewer_download end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 71 def self.attribute_map { :'share_recording' => :'share_recording', :'recording_authentication' => :'recording_authentication', :'authentication_option' => :'authentication_option', :'authentication_domains' => :'authentication_domains', :'viewer_download' => :'viewer_download', :'password' => :'password', :'on_demand' => :'on_demand', :'approval_type' => :'approval_type', :'send_email_to_host' => :'send_email_to_host', :'show_social_share_buttons' => :'show_social_share_buttons' } end |
.swagger_types ⇒ Object
Attribute type mapping.
87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 87 def self.swagger_types { :'share_recording' => :'String', :'recording_authentication' => :'BOOLEAN', :'authentication_option' => :'String', :'authentication_domains' => :'String', :'viewer_download' => :'BOOLEAN', :'password' => :'String', :'on_demand' => :'BOOLEAN', :'approval_type' => :'Integer', :'send_email_to_host' => :'BOOLEAN', :'show_social_share_buttons' => :'BOOLEAN' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 193 def ==(o) return true if self.equal?(o) self.class == o.class && share_recording == o.share_recording && recording_authentication == o.recording_authentication && authentication_option == o.authentication_option && authentication_domains == o.authentication_domains && viewer_download == o.viewer_download && password == o.password && on_demand == o.on_demand && approval_type == o.approval_type && send_email_to_host == o.send_email_to_host && == o. end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 244 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
310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 310 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
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 223 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
210 211 212 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 210 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
216 217 218 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 216 def hash [share_recording, recording_authentication, authentication_option, authentication_domains, viewer_download, password, on_demand, approval_type, send_email_to_host, ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
153 154 155 156 157 158 159 160 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 153 def list_invalid_properties invalid_properties = Array.new if !@password.nil? && @password.to_s.length > 10 invalid_properties.push('invalid value for "password", the character length must be smaller than or equal to 10.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
290 291 292 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 290 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
296 297 298 299 300 301 302 303 304 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 296 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
284 285 286 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 284 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
164 165 166 167 168 169 |
# File 'lib/zoom_us/models/recording_settings_1.rb', line 164 def valid? share_recording_validator = EnumAttributeValidator.new('String', ['publicly', 'internally', 'none']) return false unless share_recording_validator.valid?(@share_recording) return false if !@password.nil? && @password.to_s.length > 10 true end |