lib/twilio-ruby/rest/video/v1/composition_settings.rb in twilio-ruby-5.38.0 vs lib/twilio-ruby/rest/video/v1/composition_settings.rb in twilio-ruby-5.39.0
- old
+ new
@@ -70,27 +70,20 @@
@solution = {}
@uri = "/CompositionSettings/Default"
end
##
- # Fetch a CompositionSettingsInstance
+ # Fetch the CompositionSettingsInstance
# @return [CompositionSettingsInstance] Fetched CompositionSettingsInstance
def fetch
- params = Twilio::Values.of({})
+ payload = @version.fetch('GET', @uri)
- payload = @version.fetch(
- 'GET',
- @uri,
- params,
- )
-
CompositionSettingsInstance.new(@version, payload, )
end
##
- # Retrieve a single page of CompositionSettingsInstance records from the API.
- # Request is executed immediately.
+ # 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.
@@ -102,26 +95,22 @@
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
# @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] Newly created CompositionSettingsInstance
+ # @return [CompositionSettingsInstance] Created CompositionSettingsInstance
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
- )
+ payload = @version.create('POST', @uri, data: data)
CompositionSettingsInstance.new(@version, payload, )
end
##
@@ -223,19 +212,18 @@
def url
@properties['url']
end
##
- # Fetch a CompositionSettingsInstance
+ # Fetch the CompositionSettingsInstance
# @return [CompositionSettingsInstance] Fetched CompositionSettingsInstance
def fetch
context.fetch
end
##
- # Retrieve a single page of CompositionSettingsInstance records from the API.
- # Request is executed immediately.
+ # 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.
@@ -247,10 +235,10 @@
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
# @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] Newly created CompositionSettingsInstance
+ # @return [CompositionSettingsInstance] Created CompositionSettingsInstance
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,
\ No newline at end of file