lib/twilio-ruby/rest/content/v1/content/approval_create.rb in twilio-ruby-7.0.0.pre.rc.3 vs lib/twilio-ruby/rest/content/v1/content/approval_create.rb in twilio-ruby-7.0.0
- old
+ new
@@ -39,15 +39,15 @@
##
# Initialize the ApprovalCreateList
# @param [Version] version Version that contains the resource
# @return [ApprovalCreateList] ApprovalCreateList
- def initialize(version, sid: nil)
+ def initialize(version, content_sid: nil)
super(version)
# Path Solution
- @solution = { sid: sid }
- @uri = "/Content/#{@solution[:sid]}/ApprovalRequests/whatsapp"
+ @solution = { content_sid: content_sid }
+ @uri = "/Content/#{@solution[:content_sid]}/ApprovalRequests/whatsapp"
end
##
# Create the ApprovalCreateInstance
# @param [ContentApprovalRequest] content_approval_request
@@ -58,11 +58,11 @@
headers = Twilio::Values.of({"Content-Type"=> "application/json"})
payload = @version.create('POST', @uri, data: content_approval_request.to_json, headers: headers)
ApprovalCreateInstance.new(
@version,
payload,
- sid: @solution[:sid],
+ content_sid: @solution[:content_sid],
)
end
@@ -90,11 +90,11 @@
##
# Build an instance of ApprovalCreateInstance
# @param [Hash] payload Payload response from the API
# @return [ApprovalCreateInstance] ApprovalCreateInstance
def get_instance(payload)
- ApprovalCreateInstance.new(@version, payload, sid: @solution[:sid])
+ ApprovalCreateInstance.new(@version, payload, content_sid: @solution[:content_sid])
end
##
# Provide a user friendly representation
def to_s
@@ -109,10 +109,10 @@
# @param [String] account_sid The SID of the
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ApprovalCreate
# resource.
# @param [String] sid The SID of the Call resource to fetch.
# @return [ApprovalCreateInstance] ApprovalCreateInstance
- def initialize(version, payload , sid: nil)
+ def initialize(version, payload , content_sid: nil)
super(version)
# Marshaled Properties
@properties = {
'name' => payload['name'],