-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Librarian] Regenerated @ 5eb406c4977c9f6976e6053cb5b581056f541a59
- Loading branch information
Showing
7 changed files
with
481 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
187 changes: 187 additions & 0 deletions
187
lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
## | ||
# This code was generated by | ||
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
# | ||
# Twilio - Flex | ||
# This is the public Twilio REST API. | ||
# | ||
# NOTE: This class is auto generated by OpenAPI Generator. | ||
# https://openapi-generator.tech | ||
# Do not edit the class manually. | ||
# | ||
|
||
|
||
module Twilio | ||
module REST | ||
class FlexApi < FlexApiBase | ||
class V1 < Version | ||
class ProvisioningStatusList < ListResource | ||
## | ||
# Initialize the ProvisioningStatusList | ||
# @param [Version] version Version that contains the resource | ||
# @return [ProvisioningStatusList] ProvisioningStatusList | ||
def initialize(version) | ||
super(version) | ||
# Path Solution | ||
@solution = { } | ||
|
||
|
||
end | ||
|
||
|
||
|
||
# Provide a user friendly representation | ||
def to_s | ||
'#<Twilio.FlexApi.V1.ProvisioningStatusList>' | ||
end | ||
end | ||
|
||
|
||
## | ||
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution. | ||
class ProvisioningStatusContext < InstanceContext | ||
## | ||
# Initialize the ProvisioningStatusContext | ||
# @param [Version] version Version that contains the resource | ||
# @return [ProvisioningStatusContext] ProvisioningStatusContext | ||
def initialize(version) | ||
super(version) | ||
|
||
# Path Solution | ||
@solution = { } | ||
@uri = "/account/provision/status" | ||
|
||
|
||
end | ||
## | ||
# Fetch the ProvisioningStatusInstance | ||
# @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance | ||
def fetch | ||
|
||
payload = @version.fetch('GET', @uri) | ||
ProvisioningStatusInstance.new( | ||
@version, | ||
payload, | ||
) | ||
end | ||
|
||
|
||
## | ||
# Provide a user friendly representation | ||
def to_s | ||
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') | ||
"#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>" | ||
end | ||
|
||
## | ||
# Provide a detailed, user friendly representation | ||
def inspect | ||
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') | ||
"#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>" | ||
end | ||
end | ||
|
||
class ProvisioningStatusPage < Page | ||
## | ||
# Initialize the ProvisioningStatusPage | ||
# @param [Version] version Version that contains the resource | ||
# @param [Response] response Response from the API | ||
# @param [Hash] solution Path solution for the resource | ||
# @return [ProvisioningStatusPage] ProvisioningStatusPage | ||
def initialize(version, response, solution) | ||
super(version, response) | ||
|
||
# Path Solution | ||
@solution = solution | ||
end | ||
|
||
## | ||
# Build an instance of ProvisioningStatusInstance | ||
# @param [Hash] payload Payload response from the API | ||
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance | ||
def get_instance(payload) | ||
ProvisioningStatusInstance.new(@version, payload) | ||
end | ||
|
||
## | ||
# Provide a user friendly representation | ||
def to_s | ||
'<Twilio.FlexApi.V1.ProvisioningStatusPage>' | ||
end | ||
end | ||
class ProvisioningStatusInstance < InstanceResource | ||
## | ||
# Initialize the ProvisioningStatusInstance | ||
# @param [Version] version Version that contains the resource | ||
# @param [Hash] payload payload that contains response from Twilio | ||
# @param [String] account_sid The SID of the | ||
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ProvisioningStatus | ||
# resource. | ||
# @param [String] sid The SID of the Call resource to fetch. | ||
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance | ||
def initialize(version, payload ) | ||
super(version) | ||
|
||
# Marshaled Properties | ||
@properties = { | ||
'status' => payload['status'], | ||
'url' => payload['url'], | ||
} | ||
|
||
# Context | ||
@instance_context = nil | ||
@params = { } | ||
end | ||
|
||
## | ||
# Generate an instance context for the instance, the context is capable of | ||
# performing various actions. All instance actions are proxied to the context | ||
# @return [ProvisioningStatusContext] CallContext for this CallInstance | ||
def context | ||
unless @instance_context | ||
@instance_context = ProvisioningStatusContext.new(@version ) | ||
end | ||
@instance_context | ||
end | ||
|
||
## | ||
# @return [Status] | ||
def status | ||
@properties['status'] | ||
end | ||
|
||
## | ||
# @return [String] The absolute URL of the resource. | ||
def url | ||
@properties['url'] | ||
end | ||
|
||
## | ||
# Fetch the ProvisioningStatusInstance | ||
# @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance | ||
def fetch | ||
|
||
context.fetch | ||
end | ||
|
||
## | ||
# Provide a user friendly representation | ||
def to_s | ||
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") | ||
"<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>" | ||
end | ||
|
||
## | ||
# Provide a detailed, user friendly representation | ||
def inspect | ||
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") | ||
"<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>" | ||
end | ||
end | ||
|
||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.