Class: Twilio::REST::Video::V1::CompositionSettingsInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/video/v1/composition_settings.rb

Overview

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ CompositionSettingsInstance

Initialize the CompositionSettingsInstance



154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 154

def initialize(version, payload)
  super(version)

  # Marshaled Properties
  @properties = {
      'account_sid' => payload['account_sid'],
      'friendly_name' => payload['friendly_name'],
      'aws_credentials_sid' => payload['aws_credentials_sid'],
      'aws_s3_url' => payload['aws_s3_url'],
      'aws_storage_enabled' => payload['aws_storage_enabled'],
      'encryption_key_sid' => payload['encryption_key_sid'],
      'encryption_enabled' => payload['encryption_enabled'],
      'url' => payload['url'],
  }

  # Context
  @instance_context = nil
  @params = {}
end

Instance Method Details

#account_sidString



187
188
189
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 187

def 
  @properties['account_sid']
end

#aws_credentials_sidString



199
200
201
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 199

def aws_credentials_sid
  @properties['aws_credentials_sid']
end

#aws_s3_urlString



205
206
207
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 205

def aws_s3_url
  @properties['aws_s3_url']
end

#aws_storage_enabledBoolean



211
212
213
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 211

def aws_storage_enabled
  @properties['aws_storage_enabled']
end

#contextCompositionSettingsContext

Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context



178
179
180
181
182
183
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 178

def context
  unless @instance_context
    @instance_context = CompositionSettingsContext.new(@version, )
  end
  @instance_context
end

#create(friendly_name: nil, aws_credentials_sid: :unset, encryption_key_sid: :unset, aws_s3_url: :unset, aws_storage_enabled: :unset, encryption_enabled: :unset) ⇒ CompositionSettingsInstance

Retrieve a single page of CompositionSettingsInstance records from the API. Request is executed immediately.



257
258
259
260
261
262
263
264
265
266
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 257

def create(friendly_name: nil, aws_credentials_sid: :unset, encryption_key_sid: :unset, aws_s3_url: :unset, aws_storage_enabled: :unset, encryption_enabled: :unset)
  context.create(
      friendly_name: friendly_name,
      aws_credentials_sid: aws_credentials_sid,
      encryption_key_sid: encryption_key_sid,
      aws_s3_url: aws_s3_url,
      aws_storage_enabled: aws_storage_enabled,
      encryption_enabled: encryption_enabled,
  )
end

#encryption_enabledBoolean



223
224
225
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 223

def encryption_enabled
  @properties['encryption_enabled']
end

#encryption_key_sidString



217
218
219
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 217

def encryption_key_sid
  @properties['encryption_key_sid']
end

#fetchCompositionSettingsInstance

Fetch a CompositionSettingsInstance



236
237
238
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 236

def fetch
  context.fetch
end

#friendly_nameString



193
194
195
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 193

def friendly_name
  @properties['friendly_name']
end

#inspectObject

Provide a detailed, user friendly representation



277
278
279
280
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 277

def inspect
  values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
  "<Twilio.Video.V1.CompositionSettingsInstance #{values}>"
end

#to_sObject

Provide a user friendly representation



270
271
272
273
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 270

def to_s
  values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
  "<Twilio.Video.V1.CompositionSettingsInstance #{values}>"
end

#urlString



229
230
231
# File 'lib/twilio-ruby/rest/video/v1/composition_settings.rb', line 229

def url
  @properties['url']
end