Class: Twilio::REST::Video::V1::RecordingSettingsContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Video::V1::RecordingSettingsContext
- Defined in:
- lib/twilio-ruby/rest/video/v1/recording_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
-
#create(friendly_name: nil, aws_credentials_sid: :unset, encryption_key_sid: :unset, aws_s3_url: :unset, aws_storage_enabled: :unset, encryption_enabled: :unset) ⇒ RecordingSettingsInstance
Retrieve a single page of RecordingSettingsInstance records from the API.
-
#fetch ⇒ RecordingSettingsInstance
Fetch a RecordingSettingsInstance.
-
#initialize(version) ⇒ RecordingSettingsContext
constructor
Initialize the RecordingSettingsContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ RecordingSettingsContext
Initialize the RecordingSettingsContext
72 73 74 75 76 77 78 |
# File 'lib/twilio-ruby/rest/video/v1/recording_settings.rb', line 72 def initialize(version) super(version) # Path Solution @solution = {} @uri = "/RecordingSettings/Default" end |
Instance Method Details
#create(friendly_name: nil, aws_credentials_sid: :unset, encryption_key_sid: :unset, aws_s3_url: :unset, aws_storage_enabled: :unset, encryption_enabled: :unset) ⇒ RecordingSettingsInstance
Retrieve a single page of RecordingSettingsInstance records from the API. Request is executed immediately.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/twilio-ruby/rest/video/v1/recording_settings.rb', line 112 def create(friendly_name: nil, aws_credentials_sid: :unset, encryption_key_sid: :unset, aws_s3_url: :unset, aws_storage_enabled: :unset, encryption_enabled: :unset) data = Twilio::Values.of({ 'FriendlyName' => friendly_name, 'AwsCredentialsSid' => aws_credentials_sid, 'EncryptionKeySid' => encryption_key_sid, 'AwsS3Url' => aws_s3_url, 'AwsStorageEnabled' => aws_storage_enabled, 'EncryptionEnabled' => encryption_enabled, }) payload = @version.create( 'POST', @uri, data: data ) RecordingSettingsInstance.new(@version, payload, ) end |
#fetch ⇒ RecordingSettingsInstance
Fetch a RecordingSettingsInstance
83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/twilio-ruby/rest/video/v1/recording_settings.rb', line 83 def fetch params = Twilio::Values.of({}) payload = @version.fetch( 'GET', @uri, params, ) RecordingSettingsInstance.new(@version, payload, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
140 141 142 143 |
# File 'lib/twilio-ruby/rest/video/v1/recording_settings.rb', line 140 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Video.V1.RecordingSettingsContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
133 134 135 136 |
# File 'lib/twilio-ruby/rest/video/v1/recording_settings.rb', line 133 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Video.V1.RecordingSettingsContext #{context}>" end |