lib/twilio-ruby/rest/video/v1/composition_settings.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/video/v1/composition_settings.rb in twilio-ruby-6.11.0
- old
+ new
@@ -16,10 +16,11 @@
module Twilio
module REST
class Video < VideoBase
class V1 < Version
class CompositionSettingsList < ListResource
+
##
# Initialize the CompositionSettingsList
# @param [Version] version Version that contains the resource
# @return [CompositionSettingsList] CompositionSettingsList
def initialize(version)
@@ -56,11 +57,11 @@
##
# Create the CompositionSettingsInstance
# @param [String] friendly_name A descriptive string that you create to describe the resource and show to the user in the console
# @param [String] aws_credentials_sid The SID of the stored Credential resource.
# @param [String] encryption_key_sid The SID of the Public Key resource to use for encryption.
- # @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
+ # @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the [RFC 3986](https://tools.ietf.org/html/rfc3986#section-2).
# @param [Boolean] aws_storage_enabled Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
# @param [Boolean] encryption_enabled Whether all compositions should be stored in an encrypted form. The default is `false`.
# @return [CompositionSettingsInstance] Created CompositionSettingsInstance
def create(
friendly_name: nil,
@@ -78,10 +79,11 @@
'AwsS3Url' => aws_s3_url,
'AwsStorageEnabled' => aws_storage_enabled,
'EncryptionEnabled' => encryption_enabled,
})
+
payload = @version.create('POST', @uri, data: data)
CompositionSettingsInstance.new(
@version,
payload,
)
@@ -90,10 +92,11 @@
##
# Fetch the CompositionSettingsInstance
# @return [CompositionSettingsInstance] Fetched CompositionSettingsInstance
def fetch
+
payload = @version.fetch('GET', @uri)
CompositionSettingsInstance.new(
@version,
payload,
)
@@ -201,11 +204,11 @@
def aws_credentials_sid
@properties['aws_credentials_sid']
end
##
- # @return [String] The URL of the AWS S3 bucket where the compositions are stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
+ # @return [String] The URL of the AWS S3 bucket where the compositions are stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the [RFC 3986](https://tools.ietf.org/html/rfc3986#section-2).
def aws_s3_url
@properties['aws_s3_url']
end
##
@@ -235,10 +238,10 @@
##
# Create the CompositionSettingsInstance
# @param [String] friendly_name A descriptive string that you create to describe the resource and show to the user in the console
# @param [String] aws_credentials_sid The SID of the stored Credential resource.
# @param [String] encryption_key_sid The SID of the Public Key resource to use for encryption.
- # @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
+ # @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the [RFC 3986](https://tools.ietf.org/html/rfc3986#section-2).
# @param [Boolean] aws_storage_enabled Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
# @param [Boolean] encryption_enabled Whether all compositions should be stored in an encrypted form. The default is `false`.
# @return [CompositionSettingsInstance] Created CompositionSettingsInstance
def create(
friendly_name: nil,